php, sql selection

Posted by cosy on Stack Overflow See other posts from Stack Overflow or by cosy
Published on 2010-05-04T10:53:41Z Indexed on 2010/05/04 10:58 UTC
Read the original article Hit count: 236

Filed under:
|

I have a stupid question, I have this table :

id_product    name        value
   1          price       10-20
   1          type        computer
   2          price       20-30
   3          price       100-200

and I want to select from this table GROUP BY id_product and ORDER BY value WHERE name='price'

how can i do this?

Thanks a lot

© Stack Overflow or respective owner

Related posts about sql

Related posts about php