Initial commit

This commit is contained in:
user
2026-07-12 13:47:34 +04:00
commit 51e2e789d0
37 changed files with 2005 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
SELECT -- Incorrect table reservations
Left.reservation,
datetime (Left.reservation, Left.time_reserve) AS reserved_until,
Right.reservation
from
Bookings AS Left
LEFT JOIN Bookings AS Right ON Left.id != Right.id
AND Left.id_tables = Right.id_tables
WHERE
datetime (Right.reservation) BETWEEN datetime (Left.reservation) AND datetime (Left.reservation, Left.time_reserve)