Skip to content
Advertisement

How to make this Query without using UNION?

I am not very good at making query’s. So could someone explain and help me with this query?

I need to inner join 2 tables ‘Slaap’ And ‘Eten’. i need all ‘eten’ where ID = 5 and i need all ‘Slaap’ where ID = 5. I could only achieve this with a UNION but that is what i dont want because this query is for making the latest activity so i can use ORDER BY but i can’t because of the UNION.

This is my current Query:

With as result

query

I want the same result but without using UNION so someone explain this for me and how can i achieve this?

Advertisement

Answer

this worked for me

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement