Professional Documents
Culture Documents
Lab Task
Lab Task
Rollno.: 22101001-051
Q#1
name varchar(20),
price int,
category varchar(20)
);
Q#2
Find total number of orders for each customer
from customer
left join
orderr on customer.customerId=orderr.customerId
group by customer.customerId,customer.name;
Q#3
Q#4
from orderr
Q#5
update menuitems
set price=1500
Q#6
from orderr
join customer on orderr.customerId = customer.customerId
Q#7
where itemId not in (select distinct menuitems.itemId from menuitems left join orderDetails on
menuitems.itemId = orderDetails.itemId where orderDetails.itemId is NULL);