Hello I have 2 tables:
Events (idEvent, eventName)
and
Registrations(idRegistration, idEvent, idPerson)
People register to events and I store their idPerson. Now let's say, we have 2 events (event1 and event2). I am person with id = 1 and I want to see all events and columns that will say me, if I am registered.
I mean output like :
idEvent eventName IamRegistered
1 event1 yes
2 event2 no
How can I write a query from these two tables to see similiar output?
PS: I know SQL syntax but can't figure it out, something with left join probably