Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MYSQL question URGENT

 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a SELECT statement that looks like the following:
SELECT *
FROM products LEFT OUTER JOIN grouping
ON (products.itemNum = grouping.itemNum)
LEFT OUTER JOIN english
ON (products.itemNum = english.itemNum)
WHERE products.category = pictures
AND products.subCategory = framed
GROUP BY grouping.groupingWith
ORDER BY products.displaySequence;
Can ayone tell me how I can incorporate a aggregate function into this
select so as to be able to get the rowcount of just the GROUP BY ?
Thanx
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!