Postgres exists(EXPRESSION) so useful
select *, exists(select 1 from order_amenities where order_id = 4275) as checked from amenities where restaurant_id = 187;
Postgres exists(EXPRESSION) so useful
select *, exists(select 1 from order_amenities where order_id = 4275) as checked from amenities where restaurant_id = 187;