Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

select row with max count per date  RSS feed

 
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 !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!