here is an example of my two table.

PROBLEM:
How can I create SQL Query using left join?
HERE IS THE SCENARIO
As I’ve said earlier, I have two table (TABLE1 and TABLE2),
I tried to use left join so that i can combine both UserID
in one table
so here is the code
select * from table1 a left join table2 on a.userid = b.userid
so two tables are now combined.
what i need to do is this:
if the status is all complete then ‘complete’
then if status contains complete and incomplete then ‘incomplete’
else ‘no status’
it should be look like this.

NOTE:
since UserID = 1 (table1) contains complete and incomplete status (table2)
then it display ‘incomplete’ (new column)
since UserID = 4 (table1) contains all complete status (table 2)
then it display ‘completed’ (new column)
———————————–
WHAT IF I CHANGE THE STATUS TO INTEGER?

same procedure. thanks
UPDATE 1
the only thing you’ll change is the
CASE