DBI202_-_PE1_-_FA_2024_2929.webp
M

DBI202_-_PE1_-_FA_2024_2929.webp

  • Media owner Mimosa94
  • Ngày thêm
corresponding to the entity added in the diagram. The statement needs to show
maximum data constraints on the table fields. Enter 5 appropriate rows of data for the table just created. Add foreign key constraints to related tables if any (Othertables are already available).
Note: The AuthorsID should be set to auto-increment (use the IDENTITY(1,1)keyword when creating the table) and "Insert a total of 5 rows of data into the Authors table with auto-incremented AuthorsID, and then create the foreign key relationship."
3. (2 points) Write a stored procedure with an input parameter BorrowerID that displays information about all borrowed books and also lists the books that have not been returned by that specific borrower.
4. (2 points) Write a trigger that executes when a row is inserted into the DetailLoans table. If the number of AvailableCopies is 0, it should display a message that the book is out of stock and cannot be borrowed. Otherwise, it should decrement the AvailableCopies by one.

+ 134%
Zoom
Close
Chưa có bình luận nào.

Thông tin

Category
DBI202
Thêm bởi
Mimosa94
Ngày thêm
Lượt xem
3,172
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
DBI202_-_PE1_-_FA_2024_2929.webp
File size
291.6 KB
Dimensions
1920px x 867px

Share this media

Back
Bên trên Bottom