0% found this document useful (0 votes)
106 views15 pages

Library Case Study Answer

This document provides a case study on creating and querying a library database in Microsoft Access. It involves creating three tables - Books, Publishers, and Authors - and establishing relationships between them. Forms and queries are then generated to display and filter the data. Reports are created to output specific fields from the Books and Publishers tables. The steps show how to design the database tables, build the relationships, and generate various objects to interact with the data.

Uploaded by

hesham elmasry
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views15 pages

Library Case Study Answer

This document provides a case study on creating and querying a library database in Microsoft Access. It involves creating three tables - Books, Publishers, and Authors - and establishing relationships between them. Forms and queries are then generated to display and filter the data. Reports are created to output specific fields from the Books and Publishers tables. The steps show how to design the database tables, build the relationships, and generate various objects to interact with the data.

Uploaded by

hesham elmasry
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

2022

Library access database- Case


Study-Fall 2022

Future University in Egypt


FUE
12/25/2022
Part I: Create Tables and Relationship:
Open Access 2016 and create a Blank database named Library and change location to be
in E: drive (create new folder with your name and ID)
A) Create the below three tables called Books, Publishers and Authors with the following
structure:
Books Publishers
BOOK_ID BOOK_NAME Year Price PUBL_ID PUBL_NAME
1 Math 2010 200$ 1001 Ali
2 Programming 2015 450$ 1002 Ibrahim
3 English 2012 600$ 1003 Mona

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.

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.
B) List the AUTH ID & AUTH name for all Authors who’s live in Cairo and save this
query as Authors_Cairo.
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.

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

A)Create Books Table

B) Create Authors Table

C) Create Publishers Table

2|Page
Step 2: Switch to the datasheet view to add the records in
the three tables

Step 3: Create the relationship between tables


A) Create a one-many relationship between Books and Publishers tables
(Publisher can publish many books & each book has one publisher).
1- Save and Close all tables
2- From database tools tab select Relationship and
then press show 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

To create many-many relationship between books


and Authors tables
1- Create junction table named book_author and
put the primary key from Books and Authors
table in the new junction table.
5|Page
2- Drag the Author_ID from the Author table to the
Author_ID on the Book_Author table.

3- Drag the Book_ID from the Books table to the


Book_ID on the Book_Author 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.

1- Create Query design and add Books table


2- Under Book name column and with Criteria row type
Like”M*” and press run.
3- Right click on Query1 and press save then rename the
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.

1- Press report wizard

12 | P a g e
13 | P a g e
14 | P a g e

You might also like