mysql - intersect to inner join -
How to convert this query with internal add?
(Select the different tables Tables_id as the 'table id available from the table', where tables are. Table_id = reservation.table_id and ((start_time & reservation; table_id & lt; & gt ;?)) or condition = 1)
You can try this: (If you search for this answer I'm not sure if I'm not sure)
(Select individual tables. Include 'Table ID Available from Table' as Tables_id (tables.table_id = reservation.table_id) WHERE start_time & lt; & gt;? or (date & lt; & gt ;?)) or position = 1 intersect (choose separate table: Table_id AS 'tables included in Table Id reservation Tables.table_id = reservation towels_id) WHERE start_time & lt; & Gt; ? And date =? Or date & lt; & Gt; ? And reservation.table_id & lt; & Gt; ?) Or condition = 1
Comments
Post a Comment