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



table - new_no old_no 2345 1234 3456 2345 5678 4567 output sud be -new..

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

table - new_no old_no 2345 1234 3456 2345 5678 4567 output sud be -new..

Answer / lizamishra15

pls send me th answer

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

how to dump a table to a file with 'mysqldump'? : Sql dba

0 Answers  


what are the types of subquery? : Sql dba

0 Answers  


What is a relationship and what are they?

0 Answers  


Explain autonomous transaction.

0 Answers  


Can %notfound return null after a fetch?

0 Answers  






table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

2 Answers  


i have a customer table. trans_id trans_date trans_amt debit_credit_indicator 001 01-JAN-13 1099 cr 001 12-JAN-13 500 db 002 24-FEB-13 400 db 002 23-MAR-13 345 cr 001 18-APR-13 800 cr 002 15-MAR-13 600 db 001 12-FEB-13 200 cr i want like this output. trans_id trans_amt debit_credit_indicator i want get highest credit amount and lowest credit amount and highest debit amount and lowest debit amount for each trans_id. pls give me answer. i want urgent

3 Answers  


What is the different between Stored Procedure and Procedure?

7 Answers   Informatica, MIS,


what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba

0 Answers  


What are sql data types?

0 Answers  


Who is the owner of mysql database?

0 Answers  


What are pl/sql packages?

0 Answers  


Categories