Home
Interview Questions
12 May, 2010
Select second largest value in a column using SQL
The answer is pretty simple without jumping over hoops or thinking about taking MAX etc.
SELECT
value
FROM
table
ORDER
BY
value
DESC
LIMIT
1
,
1
Why LIMIT 1,1 ? Shouldnt it be 2,1
Think again. LIMIT 0,1 is the first record.
Related Searches
right click your address bar and select paste and hit enter.
Comments (0)
Post a comment
You may also like
Select random rows from a table in MySQL
10 cricket balls one is heavier or lighter. Find the ball in 3 weighing chances.
Bypass Screen lock on Xorg-1.11 Debian
Compare Dell Inspiron Laptop vs Sony Vaio
PHP file_get_contents giving garbled output
Tweet
×
Email Newsletter
Email:
Popular Posts
Windows 7 showing Different Installed (4 GB) and Usable Memory (2.96 GB)
Change Network adapter MAC address on Windows 7
Solve "Cannot modify header information - headers already sent by *.php"
Connecting Laptop to TV using HDMI Port
Change or Increase font size on Eclipse IDE
Recent Posts
Bypass Screen lock on Xorg-1.11 Debian
Tips to Improve your android battery life
Update Nvidia drivers on Sony Vaio
Boot Time comparison between Sony Vaio CW and Dell Inspiron
How to burn ISO files on Windows 7
How to easily unlock and root the Samsung Google Nexus S on Windows
How to access realtime google analytics
Wireless Laptop to TV Connection using Intel WiDi
How to Download Google App Engine Code
How to connect laptop to TV
Laptop to TV connection HDMI No Audio Fixed
Google Nexus S Wallpaper Size
Reset forgot unlock pattern on Android
Less CSS Compiler for Windows (lessc.exe)
How to Access Stock Quotes Realtime through Google Finance
Canon SX120 vs SX130 in Pictures
uTorrent 2.2 uTP means slower downloads
HDMI port on laptop
Dell Inspiron Laptop 14R Windows Experience Index
Compare Dell Inspiron Laptop vs Sony Vaio
Tags
Analytics
Android
Canon SX120
Canon SX130
Code Igniter
Cygwin
Dell Inspiron
Django
Drivers
Drupal
Google
HDMI
Intel
Javascript
Laptop
Linux
MySQL
Nexus S
Nokia E63
PERL
PHP
Python
Sony Vaio
TV
Ubuntu
Visual Studio
Windows
Random photo
Tropical Canopy @ Havelock
in
Havelock Island Andaman
On Facebook
Recent Comments
Thank you for the solution !!! This is ...
1 day, 10 hours ago
myQuest, you mesed up Jaweds question. You are ...
1 day, 23 hours ago
Hello, I have this report in my server's ...
1 week, 2 days ago
Is there a space before <?php tag?
1 week, 3 days ago
Hi there! It says that my tv is ...
1 week, 3 days ago
here is the code....this is showing warning:header already ...
1 week, 6 days ago
My HDMI won't give me HD unfortunately
2 weeks, 5 days ago
I have a Sony Vaio VGN-FZ340E with Windows ...
3 weeks, 2 days ago
I want to purchase a lappy and i ...
4 weeks, 1 day ago
checkout Technitium MAC Changer. Just used the new ...
1 month ago
Im having the same problem whilse connecting my ...
1 month ago
I think I had just encountered and spent ...
1 month, 1 week ago
i have the same problem, and want to ...
1 month, 1 week ago
Hi. Its working fine for me now. Looks ...
1 month, 1 week ago
This is awesome, it is exactly what I ...
1 month, 1 week ago