Challenge

Project 1

1.SELECT * FROM customers ORDER BY city;

2.ALTER Table customers Rename id to prod_id

3.SELECT customer_name, COUNT(DISTINCT product_ID) as products_count FROM customer_table
INNER JOIN orders_table ON customer_table.customer_ID = orders_table.customer_ID
GROUP BY customer_table.customer_ID, customer_name
HAVING COUNT(DISTINCT product_ID) > 10

4.SELECT customer_name, COUNT(DISTINCT product_ID) as products_count FROM customer_table WHERE customer.name="%A%"INNER JOIN orders_table ON customer_table.customer_ID = orders_table.customer_ID GROUP BY customer_table.customer_ID, customer_name HAVING COUNT(DISTINCT product_ID) > 10

5.SELECT orders.status , order.amount from order where order.status="Success" and order.amount>10000

6.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.