Large Order or Regular

Large Order or Regular

L. is flagging purchases that deserve a closer look in the journal. For every event where event_name = 'purchase', return event_id, revenue, and size: use крупный when revenue is greater than 2000 and обычный otherwise. Build the label with the compact two-branch conditional function.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables. Your answer must use the same column names as this sample — alias them with AS if needed.

event_idrevenuesize
31290обычный
74300крупный
10890обычный
PostgreSQLv16

Your query result will appear here

Focus radio
Paused · SomaFM · Fluid