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

write a non recursive shell script that accepts any number of arguments and prints them in the reverse order

3 Answers  


What is meant by $1 in shell script?

0 Answers  


determine the output of the following command: echo ${new:-variable}

0 Answers  


Write a shell script to get current date, time, user name and current working directory.

0 Answers  


What is bash used for?

0 Answers  






What is .sh file in mac?

0 Answers  


What is an inode block?

0 Answers  


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

1 Answers   Wipro,


I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?

1 Answers  


How to enable the shell to know what program should be run to interpret the script?

3 Answers  


What are scripts in psychology?

0 Answers  


Is shell a scripting language?

0 Answers  


Categories