I have a requirement to select all values from the table birds (basically all birds), and then joining with another table which tracks who likes that bird.
So I want the query to return all birds, and ids of records where people like that bird. And if there is no record of anyone liking this bird, then that field should be null.
My current query isn't getting the nulls. Here it is:
select bird_name, member_id
from birds
right join bird_likes on birds.bird_id = bird_likes.bird_id
where member_id = 2 ;
What could I do to make sure each row in the birds table is getting displayed once?