aspose file tools
The moose likes JDBC and the fly likes query for maximum marks Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "query for maximum marks" Watch "query for maximum marks" New topic
Author

query for maximum marks

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
this is my question
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2343

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.



OCUP UML fundamental
ITIL foundation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: query for maximum marks
 
Similar Threads
SQL query for top ten students
how to select using check box
WA #1.....word association
Passed but 44/80 on locking
Re: Urgent with this program, Pls help