Backstage at a festival · Episode 1/4

Doors open in five minutes

NOVA is about to open. Return the ticket column for valid tickets (status OK) for this concert, in ascending code order.

Explore the data
tickets
ticketconcertstatuteuros
A17NOVAOK20
C08NOVAVOID20
B04NOVAOK20
F10NOVAOK25
D12NOVAOK35
E15NOVAOK15
G21NOVAOK30
H31NOVAOK18
J03NOVAOK22
K07NOVAOK24
M88NOVAOK40
L01LUNAOK15
SQL…
Solution and explanation
SELECT ticket FROM tickets
WHERE concert = 'NOVA' AND statut = 'OK'
ORDER BY ticket;

C08 is void and L01 is for LUNA. M88 belongs on the list even if its holder arrives later.