table -
new_no old_no
2345 1234
3456 2345
5678 4567
output sud be -new_no
1234
2345
3456
4567
5678
Answers were Sorted based on User's Feedback
Answer / bibhu
select new_no as new_noz
from t01
union
select old_no as new_noz
from t01
order by new_noz
Is This Answer Correct ? | 10 Yes | 0 No |
Is it mandatory for the primary key to be given a value when a new record is inserted?
What are hotfixes and patches?
Why you are not able to create a table using select command,if it is having a LONG column? for eg:create table test as select * from test1 here test1 containg a column having LONG datatype...
is it necessary to write group by and order by clause together
How do you delete duplicates in sql query using rowid?
How to recompile a already made trigger?
what is global temporary tables and how use that tables in pl/sql packages
How to revise and re-run the last sql command?
I have a Employee table with columns ename,eid,salary,deptno. How to retrieve sum of salary for each deptno?
What is the function that is used to transfer a pl/sql table log to a database table?
2. Select A.A from ( select 1 as from dual Union select 1 as from dual)A Full outer join ( select 1 B from dual Union select 2 B from dual)B On A.A=B.B
What are the features of pl sql?