1. Update factsalesproduct f inner join product p on f.product_id = p.product_id set f.highestsales_product=p.product_sales; SELECT * FROM `factproductsales` WHERE highestsales_product in (select max(highestsales_product) from factproductsales) SELECT * from factproductsales f join product p on f.product_id = p.product_id join stores s on s .store_id=f.store_id where s.store_loc='Mumbai' 2. update factproductsales f join product p on f.product_id = p.product_id join stores s on s.store_id=f.store_id set f.sales_mumbai=p.product_sales where s.store_loc='Mumbai'; 3. update factproductsales f join product p on f.product_id = p.product_id join time t on t.time_id=f.time_id set f.2018_sales=p.product_sales where t.year='2018'; update factflightsales f inner join passenger p on f. Passenger_id=p.Passenger_id set f.passenger_age_20=1 where p.Passenger_age=20 update factflightsales f inner join flight g on f.Flight_id=g.Flight_id INNER JOIN time_table t on f.Time_id=t.Time_id set f.no_booking_2018=g.bookings WHERE t.Year=2018 SELECT OrderID, Quantity, IF(Quantity>10, "MORE", "LESS") FROM OrderDetails; update factflightsales f inner join flight g on f.Flight_id=g.Flight_id INNER JOIN passenger p on f.Passenger_id=p.Passenger_id set IF(p.class='B',g.Fair_business* UPDATE factproductsales f inner join product p on f.product_id=p.product_id set f.product_year=p. product_name Roll up: 1. select product_id,customer_id,sum(highestsales_product) totalmostsold f rom factproductsales group by product_id,customer_id with rollup Slice: SELECT time_id,product_year from factproductsales where time_id=4 Dice: SELECT time_id,product_year from factproductsales where time_id=4 or time_id=3;