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
What is truncate command?
What happens if null values are involved in expressions?
Can you tell how to find the number of rows in a resultset using php?
What is the difference between unix timestamp and mysql timestamp?
Can u give the example by taking an unnormalized table and make that 1nf and then 25nf, and then 3 nf?
Does mysql support nosql?
How to check server status with 'mysqladmin'?
What is the difference between char and varchar?
How to run 'mysql' commands from a batch file?
How to store binary data in mysql?
Is there a free mysql?
How do I show all mysql databases?
What is a crosstab query?
What are the 'mysql' command line options?
What is the command line end user interface - mysql?