Click here to Skip to main content
15,867,870 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL Programming 


Sub-Queries & Self Join Question


Employees - Imgur: The magic of the Internet[^]

What I have tried:

SQL
<pre>SELECT MANAGE.FNAME,  MANAGE.LNAME,  MANAGE.DEPT
FROM Employees
WHERE EID IN (SELECT MANAGE FROM Employees);


How do I fix it?
Posted
Updated 13-Nov-18 19:41pm

1 solution

Come on - one basic SQL question is one thing, but just dumping your homework on us without thinking about it properly is another.

We aren't here to do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think! Without any idea of your data, probably what you need is a JOIN - and I know you are aware of them as you have asked about them before as well...

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900