write the query for find the top 2 highest salary in sql
server
Answer Posted / priyanka
select salary from emp where rowno=3 order by sal desc.
but this query works only when you have to create index.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the third normal form(3nf)?
How do I change my passwords (database, LDAP, and so on) without causing an outage?
Can you index views?
How extra digits are handled with numeric data type literals?
What is an identity column in insert statements?
Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture
How to create a simple stored procedure in ms sql server?
Explain nested join?
Explain about builtinadministrator?
Write an SQL query to obtain the 2nd highest salary.
Which tcp/ip port does the sql server run on? How can it be changed?
List some advantages and disadvantages of stored procedure?
What protocol does sql server use?
What is a trigger in sql server?
What is the purpose of optimization?