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

Why do we use dynamic where conditions?

865


Update types in Call transaction method. What is the difference?

596


Explain the structure of a bdc sessions?

550


Explain different types of locks?

558


What is the reserve command?

660






what are the 2 other types of views, which are not allowed in release 3.0? : abap data dictionary

603


Lock objects and what are parameters of ENQUEUE FM?

1239


What is the difference between the function module and a normal abap/4 subroutine? : abap modularization

688


How do you write a function module in sap?

610


What is a view in sap? : abap data dictionary

618


What is the use of the raising exception? : abap modularization

509


What are the basic objects of the data dictionary? : abap data dictionary

605


Is it possible to pass data to and from include programs explicitly? : abap modularization

738


What are pool tables?

649


Explain what is the step-by-step process to create a table in data dictionary?

621