• 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: 2588
11
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.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic