Elizabeth C. answered 12/22/24
Hi Terra!
Your SQL query is not working because you have a syntax error. On the third line you have "InnerJoin" when it should be "INNER JOIN" with the space included! Lmk if you have any other issues!
The DISTINCT keyword in SQL is used to identify unique results. So if we take your query from the first part and add DISTINCT:
This would then result in only unique EmployeeIDs being displayed, any duplicates would be removed from the result set.
Terra R.
Thank you so much for your help! what if I had two things under select but only wanted to distinct one of them Such as Select Distinct Prices, Departments From Employees I only want Departments to be distinct not price, but price is what ends up being distinct do you have any advice? Thank you so much again12/22/24