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 / pratdeor
Select ename from table where sal IN
(select Max(sal) over (partition by Deptno) as mxs from table) and Deptno IN (10,20);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is coalesce sql?
What is transaction control language (tcl)?
Explain the difference in execution of triggers and stored procedures?
Is left join same as inner join?
What is package in pl sql with an examples?
How do you drop a trigger?
What is query syntax?
What are different clauses used in sql?
what is the difference between union and union all? : Sql dba
Which is better stored procedure or query?
how to decrement dates by 1 in mysql? : Sql dba
What are the different types of database management systems?
How is data stored in sql?
How do you run a query?
Which query operators in sql is used for pattern matching?