In the next exercises, you will need the Library-database, which is described in Here . You can initialize the Library database like this:
+----------+----------------------------------------------------+ | author | books | +----------+----------------------------------------------------+ | Albrecht | Accounting Concepts | | Manz | Leadership Wisdom of Jesus | | Marakas | Management Info Systems,Management Info Systems | | Miller | Business Law Today | | Speight | Shaping Space,Art Since 1940 | | Stice | Intermediate Accounting | | Stokstad | Make it in Clay,Art History Vol II & ala carte lab | | Upton | Everything You Ever Wanted to Know | | Vilppu | Photography | | Williams | Management | | Zelanshi | Drawing Manual Vilppu,TBA | +----------+----------------------------------------------------+
+------------+---------------------+ | postalcode | amount of borrowers | +------------+---------------------+ | 90100 | 4 | | 90101 | 4 | | 90102 | 4 | | 90103 | 4 | | 90104 | 4 | +------------+---------------------+
+-----------+----------+------------------------------------+ | firstname | lastname | name | +-----------+----------+------------------------------------+ | Kay | Naquin | TBA | | Leonard | Rowden | Art Since 1940 | | Leonard | Rowden | Art History Vol II & ala carte lab | | Leonard | Rowden | Drawing Manual Vilppu | | Ralph | Shane | Everything You Ever Wanted to Know | | Marvin | Heflin | Intermediate Accounting | | Marvin | Heflin | Management | | Marvin | Heflin | Business Law Today | | Marvin | Heflin | Management Info Systems | +-----------+----------+------------------------------------+
+----------------+------------------------------------+ | borrower name | book name | +----------------+------------------------------------+ | Kay Naquin | TBA | | Leonard Rowden | Art Since 1940 | | Leonard Rowden | Art History Vol II & ala carte lab | | Leonard Rowden | Drawing Manual Vilppu | | Ralph Shane | Everything You Ever Wanted to Know | | Marvin Heflin | Intermediate Accounting | | Marvin Heflin | Management | | Marvin Heflin | Business Law Today | | Marvin Heflin | Management Info Systems | +----------------+------------------------------------+
+----------------+--------------------------------------------------------------------------------+ | borrower name | books | +----------------+--------------------------------------------------------------------------------+ | Kay Naquin | TBA | | Leonard Rowden | Art Since 1940,Art History Vol II & ala carte lab,Drawing Manual Vilppu | | Ralph Shane | Everything You Ever Wanted to Know | | Marvin Heflin | Intermediate Accounting ,Management,Business Law Today,Management Info Systems | +----------------+--------------------------------------------------------------------------------+
+----------+-----------------+ | author | amount of books | +----------+-----------------+ | Upton | 1 | | Vilppu | 1 | | Zelanshi | 2 | | Speight | 2 | | Stokstad | 2 | | Albrecht | 1 | | Stice | 1 | | Marakas | 2 | | Williams | 1 | | Manz | 1 | | Miller | 1 | | TOTAL | 15 | +----------+-----------------+
name=SQL tutorial author=Jim Jones isbn=12345678x
Read the examples about procedures and transactions from here
Make a procedure named borrowBook, which work this way