Answer Posted / shailesh j
SELECT * FROM (
SELECT DEPARTMENT_ID,SALARY,DENSE_RANK() OVER(PARTITION BY
DEPARTMENT_ID ORDER BY SALARY DESC) AS RK FROM EMPLOYEES)
WHERE RK<4;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Does truncate need commit?
Can we use distinct and group by together?
Which command is used to call a stored procedure?
Can we create table inside stored procedure?
How do you add a column to a table?
what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba
What is rtm stands for?
how to convert numeric values to character strings? : Sql dba
What is primary key secondary key alternate key candidate key?
What are the different types of tables in sql?
Which join is like inner join?
what is meant by urlencode and urldocode? : Sql dba
what happens if null values are involved in expressions? : Sql dba
Why do we use subquery?
What are the three pl sql block types?