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

please give me the answer for this:
query which generates the second highest integer in the table?

Answer Posted / salil

Without using LIMIT

SELECT max( t1.col )
FROM `table` t1
WHERE t1.col < (SELECT max( t2.col ) FROM `table` t2);

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between function and procedure in mysql?

900


Does insert statement lock the table?

892


Write command to import an mysql file?

979


Where is the mysql config file?

939


How many rows can be inserted in mysql at a time?

973


Where is mysql data stored linux?

944


What port is mysql running on?

884


State the differences between mongodb and mysql.

1100


How do you create a schema?

892


What is delimiter $$?

919


How do you create a table in mysql workbench?

880


What is new mysqli?

866


How do I setup mysql?

860


How to drop an existing index in mysql?

1041


What is slow query log in mysql?

1044