Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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
  • 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
  • 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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic