I have a project table with projectId as primary key:
**projectId**, projectName, dateCreated, etc.
Then, I have a userAccess table using a composite primary key:
**userId**, **projectId**
Only the users listed in the userAccess table for each project will be able to view the projects.
Now, I am trying to write a MySQL query which will allow me to get a list of projects from the project table to which the user with id USER_ID has access to.. I have been trying this for a few hours now, and although I am guessing I have to do a join here, I am not able to get my mind to wrap around this. Any help greatly appreciated :)