There are three departments A,B and C.Write a query to
display the names of all the persons( in departments other
than A) who are paid higher than the person receiving the
lowest salary in DEPT A



There are three departments A,B and C.Write a query to display the names of all the persons( in de..

Answer / ofss

select E.name from department D, emp E
where D.name = E.dname
and E.dname <> 'A'
and E.sal > (select min(E.sal) from department A, emp E
where A.name = E.dname
And E.dname = 'A')

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Shell Script Interview Questions

How to get the first line from a file using just the terminal?

0 Answers  


How to make userdefined variables to available for all other shells?

4 Answers  


Is shell script a programming language?

0 Answers  


What is "test"? How it is used in shell scripting?

2 Answers  


What is sudo command?

0 Answers  






What is the first line in every perl script called?

0 Answers  


When should shell programming/scripting not be used?

0 Answers  


How will you find the 99th line of a file using only tail and head command?

0 Answers  


I have 2 files and I want to print the records which are common to both.

0 Answers  


How do I run a shell script in powershell?

0 Answers  


What is the command to find out users on the system?

0 Answers  


What language is bash?

0 Answers  


Categories