This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes More than one orderyby Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "More than one orderyby" Watch "More than one orderyby" New topic
Author

More than one orderyby

bala rajesh
Greenhorn

Joined: Jul 31, 2006
Posts: 6
I want a "query" to retrive the data from one oracle table,
the conditions are one column orderby ascending order and another column orderby desc order. The two condition in a same query, is possible then reply me

Thanks in Advance

Bala
Stary Kapec
Ranch Hand

Joined: Dec 04, 2005
Posts: 81
SELECT *
FROM table_name
ORDER BY col_name1 ASC, col_name2 DSC
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: More than one orderyby
 
Similar Threads
Improving EJB performance
sorting problems in struts jsp
Once again JAVA-ORACLE
How to retain order of list?
Recent Transaction Records