I'm fairly new to SQL and phpmyadmin, but in my query I have an error at intersect and I am wondering how to change that so it will print my table.
SELECT cust_code, cust_fname, cust_lname FROM lgcustomer join lginvoice
USING (cust_code) WHERE employee_id = 83649
INTERSECT
SELECT cust_code, cust_fname, cust_lname FROM lgcustomer join lginvoice
USING (cust_code) WHERE employee_id = 83677
ORDER BY cust_lname, cust_fname;