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 |
What is dml statement?
what is 'trigger' in sql? : Sql dba
Is sql a backend?
what is the difference between trigger and storedprocedures
What are triggers and its uses?
Does a primary key have to be a number?
What is sql*loader and what is it used for?
How to display Row Number with Records in Oracle SQL Plus?
What is primary key secondary key alternate key candidate key?
What is difference between procedure and trigger?
Difference between NVL, NVL2 and NULLIF
My select statement is not working as expected, So, to overcome from such issues what are the steps needed to be taken care?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)