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


Please Help Members By Posting Answers For Below Questions

Why plvtab is considered as the easiest way to access the pl/sql table?

617


What is the life of an sql statement?

523


What are the two characteristics of a primary key?

488


How do I remove duplicates in two columns?

507


what is an index? : Sql dba

520






What is the function that is used to transfer a pl/sql table log to a database table?

553


what is the command line end user interface - mysql? : Sql dba

501


How to write a query to show the details of a student from students table whose

540


What is the difference between a query and a report?

516


Explain the uses of a database trigger?

565


what are the different type of normalization? : Sql dba

554


Is sql port 1433 encrypted?

573


What does select * from mean in sql?

1986


What are the possible values for the boolean data field?

519


Explain the working of primary key?

604