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
Is it possible for a table to have more than one foreign key?
What is the most common sql injection tool?
What is the difference between microsoft sql and mysql?
What are different sql data types?
What is the use of partition by in sql?
What is blind sql injection?
Explain autonomous transaction.
How can I delete duplicate rows?
how to create a test table in your mysql server? : Sql dba
Why stored procedure is better than query?
is mysql query is case sensitive? : Sql dba
Does asenumerable execute the query?
What is auto increment feature in sql?
What is the process of debugging?
how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba