Professional Documents
Culture Documents
ADVBS - Tutorial 04 - Stored Procedures Statements
ADVBS - Tutorial 04 - Stored Procedures Statements
Stored Procedures
2) Alter the SPmembers to view first name and last names only.
4) Create stored procedure SPcategory to list full details of all favourite category and
category tables.
5) Create stored procedure to list all films names and categories using one input
parameter (film rating).
6) Create stored procedure SPfilm_rating to get the rating number as an output parameter
and FilmName as input parameter from FILMS table.
7) Execute the SPfilm_rating stored procedure by checking the rating number. If the
rating number is less than 3 print a message "Poor film" else print a message "Good
film".