https://i.stack.imgur.com/PommS.jpg
The above image shows my first table called events.
https://i.stack.imgur.com/xSBKX.jpg
This above table is linked to the events table and is used to check if a user logs an event. I want to obtain a count of how much each event was logged while displaying the event details. The problem I've encountered is that if an event has 0 logs it will not appear in the output.
This is the sql ive used:
SELECT event.`eventid`,
       event.`name`,
       `eventtime`,
       `location`,
       `datecreated`,
       `dateofevent`,
       `categoryname`,
       `description`,
       Count(participantlogs.eventid)
FROM   event,
       recreationalcategory,
       participantlogs
WHERE  recreationalcategory.categoryid = event.categoryid
       AND participantlogs.eventid = event.eventid
GROUP  BY event.eventid 
Any help would be greatly appreciated!
 
     
     
    