The code below works like it should, but now I want to add multiple dates like this:
reservationStartDate = 2018-07-16, 2018-07-17
SELECT
*,
SUM(IF(reservationId IS NULL,
0,
reservationStartDate = '2018-07-17')) AS ConflictingReservations
FROM
units
LEFT JOIN
reservations ON (unitsId = reservationSpace)
WHERE
unitsType = 'room1'
GROUP BY unitsId
HAVING ConflictingReservations = 0;
INclause.IFstatement?