Guest_imported
New member
- Jan 1, 1970
- 0
Can any one help, sql statement below produces an error
SELECT customer_id, customer_name, reg_no
FROM customer c1
WHERE EXISTS (SELECT * FROM customer c2 WHERE customer_id <> c2.customer_id AND customer_name = c2.customer_name AND customer.reg_no = c2.reg_no;
Cheers
Chas
SELECT customer_id, customer_name, reg_no
FROM customer c1
WHERE EXISTS (SELECT * FROM customer c2 WHERE customer_id <> c2.customer_id AND customer_name = c2.customer_name AND customer.reg_no = c2.reg_no;
Cheers
Chas