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 to dump a table to a file with 'mysqldump'? : Sql dba
what are the types of subquery? : Sql dba
What is a relationship and what are they?
Explain autonomous transaction.
Can %notfound return null after a fetch?
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
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
What is the different between Stored Procedure and Procedure?
what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba
What are sql data types?
Who is the owner of mysql database?
What are pl/sql packages?