


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
this document contains detailed explanation for beginners..it has covered each and every topic in details for those who are eager to learn data base management system.
Typology: Exercises
1 / 4
This page cannot be seen from the preview
Don't miss anything!



from customer as c inner join orders as o on c.customer_id = o.customer_id group by o.customer_id order by COUNT(o.customer_id) desc Query 5 select c.customer_name, p.product_name from customer as c inner join orders as o on c.customer_id = o.customer_id inner join orderproduct as op on o.order_id = op.order_id inner join product as p on p.product_id = op.product_id Query 6 select c.customer_id, SUM(op.product_qty) from customer as c inner join orders as o on c.customer_id = o.customer_id inner join orderproduct as op on o.order_id = op .order_id group by c.customer_id Query 7 select c.customer_id, COUNT(o.order_id) from customer as c inner join orders as o on c.customer_id = o.customer_id group by c.customer_id Query 8 select o.order_id,p.product_name,p.product_price,op.product_qty from orders as o inner join orderproduct as op on o.order_id = op.order_id inner join product as p on op.product_id = p.product_id