human
Schema:
device (Device_ID, Device, Carrier, Package_Version, Applications, Software_Platform)
shop (Shop_ID, Shop_Name, Location, Open_Date, Open_Year)
stock (Shop_ID, Device_ID, Quantity)
Please answer with SQL.
assistant
Sure, I understand.
human
List the shop names.
assistant
SELECT Shop_Name FROM shop;
human
Keep the names where there is a stock
assistant
SELECT T1.Shop_Name FROM shop AS T1 JOIN stock AS T2 ON T1.shop_id = T2.shop_id ;