Hello,
I want to run a query like the following...
SELECT UNIX_TIMESTAMP(l.DATE), l.ACTION l.EVENT_ID, l.OPERATOR_ID, l.ORGANISER_ID
FROM log l
ORDER BY l.DATE DESC
LIMIT 200
but I would also like to relate the operator, organiser and event ids to their own tables so I can present the name of the item in the result rather than the ID. The only problem is that often there may not be a related organiser or event in which case they will be set to null and so be left out in a relational query which I really don't want to happen.
Any ideas?
I want to run a query like the following...
SELECT UNIX_TIMESTAMP(l.DATE), l.ACTION l.EVENT_ID, l.OPERATOR_ID, l.ORGANISER_ID
FROM log l
ORDER BY l.DATE DESC
LIMIT 200
but I would also like to relate the operator, organiser and event ids to their own tables so I can present the name of the item in the result rather than the ID. The only problem is that often there may not be a related organiser or event in which case they will be set to null and so be left out in a relational query which I really don't want to happen.
Any ideas?