This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android 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: 32318
    
213

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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
 
Consider Paul's rocket mass heater.
 
subject: Please help with db query
 
It's not a secret anymore!