The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
member(memb_no, name, age)
book(isbn, title, authors, publisher)
borrowed(memb_no, isbn, date)
Â
1.    Consider the bank database above. Answer the following questions:
a.    Print the average number of books borrowed per member. Take into account that if a member does not borrow any books, then that member does not appear in the borrowed relation at all. Insure that all members  are included in the result.
b.    Create a view that shows all books borrowed by members that does not include personal identifying information (name, age).
c.    Add the following constraints to these tables:
                                              i.    Name- not null
                                            ii.    Age- not null, between 18 and 120
                                           iii.    Isbn- not null
                                           iv.    Authors
                                             v.    Publisher- can be one of three publishers (your choice)
                                           vi.    Date- not null
d.    If you have not already done so, insert the appropriate foreign key constraints for all tables
e.    Set a default value of "Not known" for Authors.
f.     Create a role "clerk".
g.    Grant select access to the "clerk" role to the view from b.