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
Is sqlite thread safe?
what is column? : Sql dba
How can you tell the difference between an index and a view?
Explain commit, rollback and savepoint.
How to call a javascript function from pl sql?
Why are aggregate functions called so?
Can we join more than 2 tables in sql?
How to select 10 records from a table?
What is benefit of creating memory optimized table?
What is case function?
Can we create clustered index without primary key?
What are primary key and foreign key and how they work?
How can we link a sql database to an existing android app?
What are the three forms of normalization?
How to read/write files from pl/sql?