Sunteți pe pagina 1din 1

Government Polytechnic, Porbandar

Computer Engineering Department

Semester: 6 Subject: PPD

Practical Exercise – 8

AIM: MySQL CURSOR.

1. Give brief overview of cursor.


2. Use below tables:
Product_mstr
Product_id Product_name Price

Product_price_history
Product_id New_price Old_price Change_Date

I. Write a cursor to display all product name.


II. Write a cursor that check new price of all product if new price is less than 500 than give
10% discount on that product.
III. Write a cursor that display product name and new price if new price of product in range
of 500 to 5000.

S-ar putea să vă placă și