Challenge

Project 1

1a)select cust_city,no_of_orders from customer order by no_of_orders;

2a)alter table product rename column product_id to prod_id;
alter table product rename column prodct_name to prod_name;
alter table product rename column product_type to prod_type;
alter table product rename column product_price to prod_price;
alter table product rename column product_review to prod_review;
alter table product rename column product_warrenty to prod_warrenty;
alter table product rename column product_coupon to prod_coupon;
alter table product rename column product_discount to prod_discount;

3a)select * from customer where no_of_orders >=1;

4a)SELECT * FROM customer WHERE cust_name LIKE "%A" and cust_name LIKE "A%" AND no_of_orders >1;

5a)select * from orders where order_price > 10000 and order_status ="delivered" and product.prod_no_of_customer > 1 ;

6a)DELIMITER $$
CREATE PROCEDURE Getcustomer()
BEGIN
SELECT * FROM customer;
END$$
DELIMITER ;
call Getcustomer();

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.