how can i fetch the records of 3 tables with a single select
query,without using join.

Answer Posted / kiran kumar.b

select max(sal) as sal from
(select max(sal) as sal1 from emp1
union
select max(sal) as sal2 from emp2
union
select max(sal) as sal3 from emp3)
salary order by sal desc

u can get the max sal from three tables lets try to do this

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the disadvantages of different types of bdc's?

624


what is a text table ?

1814


How many structures can be created in a Ztable ?

3129


write a program for creation of customer quotation using BAPI 'BAPI_QUOTATION_CREATEFROMDATA'.

2779


What is the difference between collect and append statements?

565






What is get cursor field?

881


How can we declare a table control in the abap/4 program?

642


Explain what is sequence of event triggered in report?

556


What are the types of data types in the sap abap?

482


What are the difference between tables and structures? : abap data dictionary

662


Is it possible to bring select option in module pool screens?

541


Differentiate between static and dynamic step loops?

581


What happens when you post goods issue after delivery? How does the inventory get reduced after the delivery?

563


Difference between Insert, Update and Modify?

685


What are the data types of the external layer? : abap data dictionary

798