Home > Software > Databases > PL-SQL
Interview Questions   Tutorials   Discussions   Programs   Videos   

PL-SQL - Consider a table which contain 4 columns,ename,eno,sal and deptno, from this table I want to know ename who having maximum salary in deptno 10 and 20?




319
views
asked mar January 20, 2015 12:13 PM  

Consider a table which contain 4 columns,ename,eno,sal and deptno, from this table I want to know ename who having maximum salary in deptno 10 and 20?


           

1 Answers



 
answered By   0  

select ename from table where sal=(select max(sal) from table) and deptno in (10,20);

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert