Changes between Version 7 and Version 8 of UseCase013


Ignore:
Timestamp:
01/21/25 07:06:19 (30 hours ago)
Author:
201205
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase013

    v7 v8  
    1717VALUES(4, 'Daisy Jones & The Six', 'Taylor Jenkins Reid', 'French', NULL)
    1818
    19 INSERT INTO BookISBN (BookId, ISBN)
    20 VALUES (4, '0-356-50257-0')
     19INSERT INTO BookISBN (BookISBNId, BookId, ISBN)
     20VALUES (4, 4, '0-356-50257-0')
    2121
    22 INSERT INTO Genre (BookId, Genre)
    23 VALUES (4, 'Historical Fiction')
    24  (4, 'Urban Fiction')
     22INSERT INTO Genre (GenreId, BookId, Genre)
     23VALUES  (1 ,4, 'Historical Fiction')
     24 (2,4, 'Urban Fiction')
    2525
    2626INSERT INTO Library (InventoryId, UserId, Availability, Condition)
    2727VALUES (4, 1, 'Available', 'Like New')
    2828
    29 INSERT INTO LibraryBook(LibraryBookId, InventoryId, BookId)
     29INSERT INTO ContainsLibraryBook(LibraryBookId, InventoryId, BookId)
    3030VALUES (4,4,4)
    3131}}}
     
    4242update Library L
    4343set condition='Poor'
    44 from LibraryBook LB
    45 where L.InventoryId=LB.InventoryId and LB.BookId=5;
     44from ContainsLibraryBook CLB
     45where L.InventoryId=CLB.InventoryId and CLB.BookId=5;
    4646}}}
    4747
     
    5353{{{
    5454delete from Library L
    55 using LibraryBook LB
    56 where L.InventoryId=LB.InventoryId and LB.BookId=5;
     55using ContainsLibraryBook CLB
     56where L.InventoryId=CLB.InventoryId and CLB.BookId=5;
    5757}}}