take one table is t1 and in that column name is f1
f1 column values are
200
5000
3000
7000
300
600
100
400
800
400
i want display the values asc and desc in a single output.
sample output is
f1.a
100
200
300
400
500
600
etc......
and f1.d is
5000
4000
3000
2000
1000
etc...
Answer Posted / sowmya
select a.f1 f1.a,b.f1 f1.b
from t1 a t1 b
order by a.f1 asc,b.f1 desc;
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
what is the difference between clustered and non clustered index in sql? : Sql dba
how would you enter characters as hex numbers? : Sql dba
What is the difference between function and procedure in pl/sql?
Which are the different case manipulation functions in sql?
Which normal form is best?
What is crud stand for?
What is substitution variable in pl sql?
What does cursor do in sql?
What is clause in sql?
Is postgresql a nosql database?
What is partition by in sql?
What is rowtype?
What are literals in sql server?
how to drop an existing index in mysql? : Sql dba
What is plpgsql language?