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 |
How does postgresql compare to mysql?
in table there r so many rows write a query which two rows r updated last two day befor?
how to get a list of indexes of an existing table? : Sql dba
Where is all the data on the internet stored?
How do I copy a table in sql?
What programs use sql?
Can any one tell me how to increase the performance of a sql query ie what are the performance tips in creating or writing a sql query !!?
What is delimiter in pl sql?
How to get the procedure's, function's name from a package if it is wrapped(both spec & body).
Can a view be mutating? If yes, then how?
What is a trigger ?
11 Answers Accenture, BirlaSoft,
What is program debugging?
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)