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

How to open a read-only file in the shell?

640


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

528


How do I set bash as default shell mac?

554


Explain about gui scripting?

622


Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.

565






Is powershell a bash?

590


What are the various stages of a linux process it passes through?

624


How will you print the login names of all users on a system?

570


How are shells born?

552


Please give me example of " at command , contrab command " how to use

2325


Why should we use shell scripts?

587


Is scripting and coding the same thing?

561


What are the different types of variables used in shell script?

550


Calculate a real number calculation directly from the terminal and not any shell script.

656


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

1980