DBI202_-_PE1_-_FA2020_3483.webp
I

DBI202_-_PE1_-_FA2020_3483.webp

☑Kizspy.me
4. (2 points) Write a trigger Trg_UpdateBookStatus to automatically update the book
status from "Available" to "Borrowed" when a book is assigned to a loan ticket. If
the book status is "Borrowed", then perform a rollback.
5. (2 points) Write a VIEW vw_OverdueBorrowHistory to display the list of borrowed
Book and add an extra column "Note" at the end of the list.


If the borrowed book has not been returned after the due date (ReturnDate <
GETDATE()), the "Note" column should display "Overdue".
Otherwise, it should display "Returned".
Zoom
+ 100%
End
Close
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom