Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to list all dsn entries on your local machine using odbc_data_source()?

1091


How to modify existing triggers using "alter trigger"?

1068


Name three of the features managed by the surface area configuration tool? : sql server security

1034


How to use union to merge outputs from two queries together in ms sql server?

1136


explain declarative management framework (dmf) in sql server 2008?

1044


How would we use distinct statement? What is its use?

1125


Explain few of the new features of sql server 2008 management studio

979


Where are full-text indexes stored?

1036


You want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition?

1132


What is the difference between clustered index and primary key?

974


How can a database be repaired?

1034


How to list all field names in the result set using mssql_field_name()?

952


which backup strategy you are following at ur company

2195


How do you rename a table in sql server?

1102


What is meant by indexing files?

1098