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.

Answer Posted / srilekha

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

Is This Answer Correct ?    27 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are inner and outer joins examples of both?

691


Can a select statement fire a trigger?

888


what is a primary key? : Sql dba

750


What is compilation error in pl sql?

699


Can we join same table in sql?

738






Mention what is the use of function "module procedure" in pl/sql?

784


Is big data nosql?

693


What are stored procedures used for?

731


Does inner join remove duplicates?

699


What is memory optimized table?

764


What is the plv (pl/vision) package offers?

796


what are date and time data types? : Sql dba

704


Does view store data in sql?

702


What is data types in sql?

705


What is materialized view in sql?

652