csiwa28
Programmer
- Apr 12, 2001
- 177
Joining 2 tables, I use the DISTINCT keyword to eliminate redundant information however it doesn't seem to work. Does the DISTINCT keyword only work on one table at a time and not with joined tables?
SELECT DISTINCT company_companyname, product_productname FROM company INNER JOIN product ON company_companyid = product_companyid
SELECT DISTINCT company_companyname, product_productname FROM company INNER JOIN product ON company_companyid = product_companyid