Professional Documents
Culture Documents
Practical-8.b
Manipulate on routines such as write a routine for updating price of all
product by 5% and other such routines can be performed.
➢ Create an event that checks the product types having quantity less than 20 at
every ten minutes.
CREATE EVENT p_quantity
ON SCHEDULE
EVERY 10 MINUTES
COMMENT 'Clears out sessions table each 10 minutes.'
DO
Select p_type from products where p_quantity<20;
➢ Create an event that checks the product which has been sold maximum in a day.