mysql query to select the bottom values from a table
Posted
by S.PRATHIBA
on Stack Overflow
See other posts from Stack Overflow
or by S.PRATHIBA
Published on 2010-04-19T05:25:42Z
Indexed on
2010/04/19
5:33 UTC
Read the original article
Hit count: 176
mysql
Hi all,
I have the following table.
mysql> select * from consumer2;
SERVICE_ID SERVICE_TYPE CONSUMER_FEEDBACK
31 PRINTER 1
32 PRINTER -1
33 PRINTER 0
34 PRINTER -1
35 PRINTER 0
31 PRINTER 0
32 PRINTER 1
35 PRINTER 1
31 PRINTER 0
From the above table i need to select the bottom 4 values using mysql i need to get the output as follows
SERVICE_ID SERVICE_TYPE CONSUMER_FEEDBACK
31 PRINTER 0
32 PRINTER 1
35 PRINTER 1
31 PRINTER 0
Please help me.Thank u in advance.
© Stack Overflow or respective owner