android_catalogue1-2 Exercise 3: Rows and Deletes ================================================== item_type (seeded in Chapter 3) item id | name id | title | itemTypeId 1 | Book 1 | Dune | 1 2 | CD 2 | Alien | 3 3 | DVD 4 | Blu-ray tag item_tag id | name itemId | tagId 1 | sci-fi 1 | 1 2 | classic 1 | 2 2 | 1 Delete the tag "sci-fi" (id 1): - tag row 1 is removed. - item_tag rows (1,1) and (2,1) are removed (CASCADE on tagId). - Both items remain; Dune still has "classic". Delete "Dune" (item 1): - item row 1 is removed. - item_tag rows (1,1) and (1,2) are removed (CASCADE on itemId). - Tags "sci-fi" and "classic" remain; "classic" is now unused, which is allowed. Trying to delete the type "DVD" while "Alien" exists is refused (RESTRICT).