AI Coder
AI
Code Editor
Show Output
-- Create premium_customers table like customers then execute this query INSERT INTO premium_customers SELECT * FROM customers WHERE cust_id IN (SELECT DISTINCT cust_id FROM orders WHERE order_value > 5000);
Output Preview