LCNANCY
asked on
DISTINCT MYSQL QUERY
SELECT DISTINCT serv_nam, serv_lab FROM ANI_SIT_ARC WHERE serv_nam != \"\" ORDER BY id
Doesnt work, do U see why ?
Thank you
Doesnt work, do U see why ?
Thank you
Not equal to in SQL is written as <> not !=
Hi there,
assuming you want to select non empty values try this.
-TheDoctor
assuming you want to select non empty values try this.
-TheDoctor
SELECT DISTINCT serv_nam, serv_lab FROM ANI_SIT_ARC WHERE serv_nam IS NOT NULL AND serv_nam <> '' ORDER BY id
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
no