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

When you login to a c shell, which script would be run first?

2 Answers  


What does echo mean in scripting?

0 Answers  


What is shell terminal?

0 Answers  


How to write an Auto scripting for deleting old files using shell script and made a cron job to run on daily basis

1 Answers  


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

0 Answers  






Differentiate between ‘ and ” quotes.

0 Answers  


how will you find the total disk space used by a specific user?

0 Answers  


Is shell a scripting language?

0 Answers  


how to find weblogic version through linux cammand

1 Answers   L&T,


How do you print the output the same string which is typed in command line. how do you write the shell script or command for this. if i entered "Hello" in command line, it should print 'Hello', if i say "Hello Welcome", i should get the "Hello Welcome" as output.?

3 Answers   IBM, Symphony,


How to write a function?

0 Answers  


how do you write sql queries using shell script for eg:- we have databae table like EMPNO,ENAME,SAL,DEPTNO columns in EMP table how you display EMPNO,SAL FIELDS from emp in SHELL SCRIPT please explain with an example

4 Answers  


Categories