You are on page 1of 1

196170307143 3360702

Practical – 10.b
Aim: Implement precise events such as create an event that checks
the product which has been sold maximum in a day and same exercises
can be performed.

➢ Query:
CREATE EVENT p_sold
ON SCHEDULE
EVERY 10 MINUTE
COMMENT 'Clears out sessions table each 10 minutes.'
DO
SELECT *FROM products HAVING MAX(p_sold_in)=1;

➢ Output:

1|Page

You might also like