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 a left join?
Is join an inner join?
What is the cause of mutating table error and how can we solve it?
What is exception? What are the types of exceptions?
What version is sql?
what is a database transaction? : Sql dba
how to show all tables with 'mysql'? : Sql dba
How exception handling is done in advance pl/sql?
what is a database? : Sql dba
Is coalesce faster than isnull?
How do you write a complex sql query?
what is timestamp in mysql? : Sql dba
Why is the cursor important?
What is full join?
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?