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...

Find 2nd Highest salery in emp table

Select* from emp where &n=
select * count from emp where (salery >=emp.salery)


Enter n value 2


These query is correct or not. Tell me any other methods.

Answer Posted / r.rajivgandhi

Select max(salary) from emp where salary <(select max
(salary) from emp)

These Query is correct.Try It

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention the 3 ways to get a count of the number of records in a table.

919


What is difference between table aliases and column aliases? Do they affect performance?

913


Explain various On-Delete options in a DB table. Which is the default option?

1406


Define self join in sql server joins?

902


Explain what is the difference between a local and a global temporary table?

938


What are the advantages of log shipping?

931


How to see the event list of an existing trigger using sys.trigger_events?

1026


What are the restraints imposed on the table design by a merge replication?

984


what are user defined datatypes and when you should go for them? : Sql server database administration

964


What is 3nf normalization?

928


You have a table ‘test’ which is a copy of northwind employee table you have written a trigger to update the field ‘hiredate’ with the current date

992


What is open database communication (odbc)?

1005


Tell me what do you mean by an execution plan? Why is it used? How would you view it?

839


How many types of attribute relationships are there? : sql server analysis services, ssas

1002


How do you create type- insensitive operator?

995