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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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

574


How do I set bash as default shell mac?

559


What are the advantages of shell script?

524


What shell is bin sh?

534


How do scripts work?

610






What does path stand for?

640


What is the first line in every perl script called?

557


What is @echo off?

569


What is the use of echo in shell script?

543


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

1716


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

556


What is the use of a shebang line?

620


What is shift command in shell script?

529


Is powershell a bash?

590


Explain about gui scripting?

626