Vehicles Currently Parked
Easy
Parking Lot Records
Return plates that are still in the lot (no time_out), ordered by time_in.
Table schema
Parking(id INT PRIMARY KEY, plate VARCHAR(8), time_in DATETIME, time_out DATETIME)Sample data
id | plate | time_in | time_out
1 | A1 | 2026-06-01 08:00:00 | 2026-06-01 10:30:00
2 | B2 | 2026-06-01 09:00:00 | 2026-06-01 09:45:00
3 | A1 | 2026-06-01 13:00:00 | 2026-06-01 14:00:00
4 | C3 | 2026-06-01 15:00:00 | NULL
5 | D4 | 2026-06-01 16:00:00 | NULL
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.