• Post Reply Bookmark Topic Watch Topic
  • New Topic

query for maximum marks

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my question
 
Jan Cumps
Bartender
Posts: 2619
14
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. Hope this is not your homework.


In your sql statement,
use the "max()" aggregation function to find the maximum marks,

and
to make the max() function aggregate on subject level,
group by subjectid by adding a "group by" clause.


 
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!