How can I make postgreSQL query like this:
SELECT event_id, user_id FROM public."point"
WHERE user_id = (SELECT id FROM public."user"
WHERE email='test@gmail.com')
with JOIN
statement and without nested SELECT
statement. Above works but I think it is not optimal. Thanks for your answers.