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 / pooja gupta
select f1.a, f2.d from
(select f1 as a from t order by 1) f1,
(select f1 as d from t order by 1 desc)f2
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is procedure function?
What is trigger in sql?
What is the purpose of cursors in pl/sql?
What is crud stand for?
What does 0 mean in sql?
Why do we need sharding?
Which one is better subquery or joins?
What is Materialized View? In What Scenario we Use Materialized View?
How much does sql cost?
what is the syntax for using sql_variant_property? : Transact sql
What is the maximum number of rows in sql table?
Which is better trigger or stored procedure?
Explain character-manipulation functions?
What is loop in pl sql?
What is the use of sql trace?