wood burning stoves 2.0*
The moose likes JDBC and the fly likes Ordering according to values of the fields. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Ordering according to values of the fields." Watch "Ordering according to values of the fields." New topic
Author

Ordering according to values of the fields.

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629


I want these records to be displayed as
1 | 3
1 | 2

If the f value is same then you should get the ordering based on t value.

I am also attaching the second case.

In this case I want the output like this.
2|4
1|10
1|3
1|2

How to form the query for the same.
Thanks in advance.


http://www.androcid.com/
Ireneusz Kordal
Ranch Hand

Joined: Jun 21, 2008
Posts: 423
chetan dhumane wrote:
I want these records to be displayed as
1 | 3
1 | 2



chetan dhumane wrote:
In this case I want the output like this.
2|4
1|10
1|3
1|2

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ordering according to values of the fields.