please how to convert this query with inner join ?
(SELECT DISTINCT tables.table_id AS 'Available table ID'
FROM tables, reservation
WHERE tables.table_id = reservation.table_id
AND ((start_time <> ? AND date = ?)
OR (date <> ?))
OR status = 1)
INTERSECT
(SELECT DISTINCT tables.table_id AS 'Available table ID'
FROM tables, reservation
WHERE tables.table_id = reservation.table_id
AND ((start_time <> ? AND date = ?)
OR (date <> ? AND reservation.table_id <> ?))
OR status=1)