File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ordering according to values of the fields.

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Ireneusz Kordal
Ranch Hand
Posts: 423
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic