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 |
i have a word ***********hello********world******. I require a o/p **********hello world**********, Need to delete the middle stars.
What is the result, when NULL is compared with NULL?
What is sql character function?
Why do we use subquery?
Explain the usage of WHERE CURRENT OF clause in cursors ?
How does left join work in sql?
What is the usage of nvl function?
what is online transaction processing (oltp)? : Sql dba
In table a 1lakh data is present,in table b 20 thousand data is present, to get unique data from table a and b which join to be considered. whether right outer join or left inner join.
If 100 tables are there in user_tables.I want to find in which table zero records are there with table name.Is it possible?
what is the difference between myisam static and myisam dynamic? : Sql dba
what is inline command?
Oracle (3253)
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)