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 / sp
select top 2 ename, salary, dept from dbo.employee where
dept in(10,20) order by salary desc
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
explain advantages of innodb over myisam. : Sql dba
What is difference between primary and secondary key?
If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????
Can I learn sql in a week?
What is flag in sql?
What is the maximum number of rows in sql table?
What is the difference between numeric and autonumber?
What do you understand by case manipulation functions?
Why do we need sharding?
Are stored procedures compiled?
What is varchar used for?
What are pl/sql packages?
Is sql between inclusive?
What does cursor do in sql?
what are aggregate and scalar functions? : Sql dba