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 pise
select top 1 * from table where dept_no in(10,20) order by
sal desc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a sql schema used for?
What do we need to check in database testing?
What is the sql query to display the current date?
how many tables will create when we create table, what are they? : Sql dba
Explain the difference between sql and mysql.
What is posting?
How to run pl/sql statements in sql*plus?
How many disk partitions should I have?
What are different types of sql commands?
How many triggers can be applied on a table?
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
How many row comparison operators are used while working with a subquery?
What is the use of index in sql?
Can you have a foreign key without a primary key?
Can you skip header records while loading? : aql loader