human
Schema:
shop (Shop_ID, Address, Num_of_staff, Score, Open_Year)
member (Member_ID, Name, Membership_card, Age, Time_of_purchase, Level_of_membership, Address)
happy_hour (HH_ID, Shop_ID, Month, Num_of_shaff_in_charge)
happy_hour_member (HH_ID, Member_ID, Total_amount)
Please answer with SQL.
assistant
Sure, I understand.
human
show the id of the shops that have a happy hour.
assistant
SELECT shop_id FROM happy_hour;
human
just show those that have happy hours in May.
assistant
SELECT shop_id FROM happy_hour WHERE MONTH = "May" ;