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 does inner join mean?
What is pivot query?
what is sql server agent? : Sql dba
How do you create a db file?
State few characteristics of pl/sql?
What is the current version of postgresql?
How to use distinct and count in sql query? Explain
explain advantages of myisam over innodb? : Sql dba
What are different types of indexes?
What is string join?
What is sqlservr exe?
Is mariadb a nosql database?
What is data type in sql?
what is a relationship and what are they? : Sql dba
what happens if you no create privilege in a database? : Sql dba