find the customer numbers, customer names, and sales rep numbers for all customers that have open orders. Use the alias O for the Open Orders table and C for the Customer table. Each customer should appear only once.
This is what I have tried but doesn't work. I am lost!
SELECT O.[Customer Number], O.[Customer Name, O.[sales rep number, C.[Customer Number], C.[Customer Name], C.[sales rep number]
FROM [Open Orders] O, [Customer] C
WHERE O.[Customer Number] = C.[Customer Number]
AND O.[Customer Name]= C.[Customer Name]
AND O.[sales rep number]=C.[sales rep number]
;