Changes between Version 7 and Version 8 of UseCase013
- Timestamp:
- 01/21/25 07:06:19 (30 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCase013
v7 v8 17 17 VALUES(4, 'Daisy Jones & The Six', 'Taylor Jenkins Reid', 'French', NULL) 18 18 19 INSERT INTO BookISBN (BookI d, ISBN)20 VALUES (4, '0-356-50257-0')19 INSERT INTO BookISBN (BookISBNId, BookId, ISBN) 20 VALUES (4, 4, '0-356-50257-0') 21 21 22 INSERT INTO Genre ( BookId, Genre)23 VALUES (4, 'Historical Fiction')24 ( 4, 'Urban Fiction')22 INSERT INTO Genre (GenreId, BookId, Genre) 23 VALUES (1 ,4, 'Historical Fiction') 24 (2,4, 'Urban Fiction') 25 25 26 26 INSERT INTO Library (InventoryId, UserId, Availability, Condition) 27 27 VALUES (4, 1, 'Available', 'Like New') 28 28 29 INSERT INTO LibraryBook(LibraryBookId, InventoryId, BookId)29 INSERT INTO ContainsLibraryBook(LibraryBookId, InventoryId, BookId) 30 30 VALUES (4,4,4) 31 31 }}} … … 42 42 update Library L 43 43 set condition='Poor' 44 from LibraryBookLB45 where L.InventoryId= LB.InventoryId andLB.BookId=5;44 from ContainsLibraryBook CLB 45 where L.InventoryId=CLB.InventoryId and CLB.BookId=5; 46 46 }}} 47 47 … … 53 53 {{{ 54 54 delete from Library L 55 using LibraryBookLB56 where L.InventoryId= LB.InventoryId andLB.BookId=5;55 using ContainsLibraryBook CLB 56 where L.InventoryId=CLB.InventoryId and CLB.BookId=5; 57 57 }}}