Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic