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 are some emotional triggers?
mention if it is possible to import data directly from t-sql commands without using sql server integration services? If yes, what are the commands? : Transact sql
Why do we use subquery?
What is raid? How does it help storage of databases?
Is hadoop a nosql?
What is sqlservr exe?
What are the methods of filing?
What is varchar example?
What is the difference between sql and mysql?
What is the difference between a primary key and a unique key?
What are the built in functions of sql?
What is auto increment in sql?
Does sqlite need a server?
what is bdb (berkeleydb)? : Sql dba
what are rollup and cube in t-sql? : Transact sql