Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 579 Bytes

class_18_5.md

File metadata and controls

5 lines (4 loc) · 579 Bytes

Exercises

  1. Write a function that returns the amount of copies of a film in a store in sakila-db. Pass either the film id or the film name and the store id.
  2. Write a stored procedure with an output parameter that contains a list of customer first and last names separated by ";", that live in a certain country. You pass the country it gives you the list of people living there. USE A CURSOR, do not use any aggregation function (ike CONTCAT_WS.
  3. Review the function inventory_in_stock and the procedure film_in_stock explain the code, write usage examples.