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

select row with max count per date

 
Grace Green
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This query will return as many rows as there are VALUEs and COUNTs for a given date, but I am not interested in all VALUEs, only in the one with the max(COUNT) on a given date. Can you please help me build the sql statement I need ?



I tried with the sql below but I basically got the same results.



Hope some sql expert can help. Thanks !
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!