Meaningless Drivel is fun!
The moose likes JDBC and Relational Databases and the fly likes Please help with db query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Please help with db query" Watch "Please help with db query" New topic
Author

Please help with db query

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 833


I am able to display records on the basis of the above queries but trying to display records according to companies ranks of the posts in descending order

I am working with oracle XE and Java Servlet

Thanks & best regards
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32609
    
215

Farakh,
Take a look at the group by and order by clauses. They let you sort within an aggregate function.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 833
Originally posted by Jeanne Boyarsky:
Farakh,
Take a look at the group by and order by clauses. They let you sort within an aggregate function.


Thanks a lot the problem solved
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help with db query
 
It's not a secret anymore!