Library Case Study Answer
Library Case Study Answer
Authors
AUTH_ID AUTH_NAME AUTH_ADD
1 Samy Cairo
2 Ghada Alex
3 Amr Giza
B) Set the fields BOOK_ID & PUBL_ID & AUTH_ID as the primary keys.
C) Create a one-many relationship between Books and Publishers tables (Publisher can
publish many books & each book has one publisher).
D) Create a many-many relationship between Books and Authors tables (Authors can
have many books & each book can have many authors).
Part II: Create Forms
Use the Form Wizard to create a form having the following requirements:
• Select the BOOK_ID, BOOK_NAME, PUBL_ID, PUBL_Name, AUTH_ID and AUTH_Name
fields.
•Type Books_ PUBL_ as the form’s title.
1|Page
Library Case study Answer
Part I: Create Tables and Relationship:
Step 1: Create new table and open it in design view to add
the fields and select the data types
2|Page
Step 2: Switch to the datasheet view to add the records in
the three tables
3|Page
To create one-many relationship between books and
publishers tables
1- Add the primary key of publisher table as new field in
the books tables(publ_ID)
4|Page
2- Drag the Publisher_ID from the Publishers table to
the Publ_ID on the Books table
6|Page
7|Page
Part II: Create Forms
8|Page
Part III: Create Access Queries
A) List the Books ID & Books name for all Books Names that started with
‘M’ and save this query as BOOKS_M.
9|Page
10 | P a g e
B) List the AUTH ID & AUTH name for all Authors who’s live in Cairo and
save this query as Authors_Cairo.
11 | P a g e
Part IIII: Create Reports:
Use the Report wizard to create the below report:
• Add the Book_ ID, Book_NAME, PUBL_ID, PUBL_NAME fields to
the report.
•Type Books- Publishers as the report’s title.
12 | P a g e
13 | P a g e
14 | P a g e