aspose file tools
The moose likes JDBC and Relational Databases 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


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 631


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.


Author @ http://www.ideasforideas.org/
Moody blogger who do not like to behave like target setting machines work.
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.