hey
i was wondering if there is a way to select more then on field using the DISTINCT keyword
i have a query like this:
$str_sql = "SELECT id, product_id, name, description, price FROM products ORDER BY name ASC";
However i know adding the Distinct keyword like this won't work
$str_sql = "SELECT id, product_id, DISTINCT(name), description, price FROM products ORDER BY name ASC";
any help would be appreciated
thanks
i was wondering if there is a way to select more then on field using the DISTINCT keyword
i have a query like this:
$str_sql = "SELECT id, product_id, name, description, price FROM products ORDER BY name ASC";
However i know adding the Distinct keyword like this won't work
$str_sql = "SELECT id, product_id, DISTINCT(name), description, price FROM products ORDER BY name ASC";
any help would be appreciated
thanks