Sorry if my title is odd, but I'm not even sure how to word my problem in this description let alone a short title.
We have 1000 users. 400 of them are new. 500 of them have updated their profiles with the new fields we added. 100 have not updated their profiles.
When I try to pull data on a specific field I get 900 results.
Select j1.question, j1.response
FROM table1 t1
JOIN table2 j1 on t1.id_user = j1.iduser AND j1.idquestion IN (26)
This is missing the 100 users that haven't updated their profile using the new profile questions.
When I try to pull data on that specific field to include the old profile question that was similar I get 1500 results.
Select j1.question, j1.response
FROM table1 t1
JOIN table2 j1 on t1.id_user = j1.iduser AND (j1.idquestion IN (26) OR j1.idquestion IN (8))
This pulls the 900 results from 26 as well as the original 600 users result from 8.
So my question is, how do I only get the data of the idquestion IN (26) and then the 100 left over from idquestion IN (8)?
left joinand it would appear as null instead of not appear at all