To find second largest salary in Employee table
Answer Posted / ela tiku
Select Max(SAL) FROM emp WHERE sal<(SELECT MAX(SAL) FROM
emp)
<<<assuming sal is the column name and emp is the table
name>>>
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is instead of trigger sql server?
What is temporary table in sql server? Why we use temp table?
How to list all columns in a table using odbc_columns()?
What do you mean by 'normalization'?
What is difference between sql and sql server?
What is global temp table?
What does indexation mean?
Define Unique Key?
what is the different types of backups available in sql server? : Sql server database administration
Write an sql query for deleting duplicate rows?
What are truncate options available in sql server? : sql server database administration
How to modify existing triggers using "alter trigger"?
What are sql dirty pages?
Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.
Why we need sql server?