You are on page 1of 1

Database Lab Work

1. Create a blank MS Access Database


2. Create Tables with following definitions
a. Table Name: BOOK

Field Name Data type Key Type Constraint


BOOK_CODE Numeric Primary Key
TITLE Alphabets Not Null
AUTHOR Alphabets Not Null
AUTHOR_2 Alphabets
PUBLISHED_DATE Date
PUBLISHED Alphabets
PRICE Numeric Should be > 0
ISBN Numeric

b. Table Name: MEMBER

Field Name Data type Key Type Constraint


MEMBER_CODE Numeric Primary Key
MEMBER_NAME Alphabets Not Null
MEMBERSHIP_TYPE Alphabets Not Null
EXPIRY_DATE DATE
PHONE Alphabets
ADDRESS Alphabets
PHOTO Object
COUNT_BOOK_ISSUE Numeric Should be less than 5

c. Table Name: BOOKS_ISSUE

Field Name Data type Key Type Constraint


BOOK_ISSUE_ID Numeric Primary Key
MEMBER_CODE Numeric Foreign Key Not Null
BOOK_ID Numeric Foreign Key Not Null
ISSUE_DATE DATE Not Null
RETURN_DATE DATE
LATE_FINE Numeric

3. Add 5 rows in each table.

You might also like