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 / anjum
select * from (select f1 from t1 order by f1 asc)
union all
select * from (select f1 from t1 order by f1 desc)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is java sql drivermanager?
Define implicit and explicit cursors.
What is pl sql block structure?
What is sql query optimization?
what are date and time intervals? : Sql dba
is it possible to pass an object or table to a procedure as an argument?
How many sql databases can you have on one server?
What is a primary key sql?
Explain what is sql?
What is the maximum number of rows in sql table?
What is normalization in a database?
What is gpt format?
what are myisam tables? : Sql dba
What are conditional predicates?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba