hi, there is a Q about MySQL
When i use this:
SELECT DISTINCT id FROM table
this works! but... when i want to filter only one column i try to do this:
SELECT DISTINCT prod_id, id, prod_picture FROM products
this gives me all table... i just need 1 picture for each product, like:
1 | 1 | asd.jpg
2 | 3 | weq.jph
not
1 | 1 | asd.jpg
1 | 2 | qwe.jpg
2 | 3 | weq.jpg
actually i try to use this:
SELECT DISTINCT
prod_list.id,
prod_list.prodname,
prod_pict.pict_file
FROM
prod_list
INNER JOIN urun_pict ON (prod_list.id = prod_pict_prod_id)
i have to filter just "prod_list.id"...
thanks