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 / sonal
select * from (select ename, deptno,sal
from emp where deptno in(10 , 20)
order by sal desc)
where rownum < =1
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What are analytical functions in sql?
Can we use pl sql in sql server?
Why we use triggers in mysql?
What is a record in pl/sql?
Will truncate release space?
what is blob? : Sql dba
Can a varchar be a primary key?
Explain the significance of the & and && operators in pl sql.
How many unique keys can a table have?
Is sql port 1433 encrypted?
Which are sql * plus commands?
What are the basic sql commands?
What is sql in oracle?
Why do we create stored procedures & functions in pl/sql and how are they different?
What is the advantage of nosql?