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 / swati
select top 1 ename from emp where deptno in(10,20) order by
sal desc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between hql and native sql?
What is a unique key?
What is crud diagram?
How to get list of all tables from a database?
How can I get the number of records affected by a stored procedure?
What is the difference between a procedure and a function?
How do I run sql?
What is the difference between instead of trigger and after trigger?
What is varchar used for?
Can we join same table in sql?
what is oracle database ? : Sql dba
How will you distinguish a global variable with a local variable in pl/sql?
What is a memo field?
What is join view in sql?
What is a table?