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
How can we link a sql database to an existing android app?
How many sql commands are there?
What is constant in pl sql?
How is a PL/SQL code compiled?
What is the current version of postgresql?
Are sql database names case sensitive?
How do you bind variables in pl sql?
What is the difference between database trigger and stored procedure?
What do you understand by case manipulation functions?
what is log shipping? : Sql dba
what is a composite primary key ? : Sql dba
Is pl sql still used?
What is varchar example?
What is difference between mysql and postgresql?
What is write ahead logging in sql server?