Select case when exists sql. It uses the below given syntax to execute the query.

Select case when exists sql. Let's call it: SEATS and SEAT_ALLOCATION_RULE table.