I have two databases
"Employees" has names and ids, "Events" lists specific events and has a column that can contain employee ids.
I want to select a list of employees from the "Employees" table limited to only those who have been associated with an event.
I thought the syntax was "SELECT * FROM employees WHERE empID IN (SELECT empID FROM events)" but that gives me no results.
Any suggestions would be much appreciated.
Thank you,
-Nm
"Employees" has names and ids, "Events" lists specific events and has a column that can contain employee ids.
I want to select a list of employees from the "Employees" table limited to only those who have been associated with an event.
I thought the syntax was "SELECT * FROM employees WHERE empID IN (SELECT empID FROM events)" but that gives me no results.
Any suggestions would be much appreciated.
Thank you,
-Nm