



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An Entity Relationship Model for a library database design, including the definition of entities such as Library_Branch, Books, Staff, Authors, and Members. It also includes SQL code for creating the corresponding tables in the database. The entities are defined with their respective attributes and constraints, such as primary keys and foreign keys.
Typology: Essays (university)
1 / 6
This page cannot be seen from the preview
Don't miss anything!




BID VarChar(5), BName VarChar(20)NOT NULL, NO_OF_Copies integer, LBID VarChar(5), Constraint pk_BkID PRIMARY KEY (BID), Constraint fk_LBID FOREIGN KEY (LBID) REFERENCES LIBRARY_BRANCH (LBID) )
MID varchar(5), MName varchar(20) NOT NULL, Gender varchar(6) NOT NULL, Address varchar(30) NOT NULL, CellNO Varchar(11) NOT NULL, Constraint pk_MID primary key (MID) )
AID VarChar(5), AName VarChar(20) NOT NULL, CELLNO VarChar(11) NOT NULL, Constraint pk_AID PRIMARY KEY (AID) )
SID Varchar(5), SName Varchar(20) NOT NULL, Gender Varchar(6) NOT NULL, Designation Varchar(25) NOT NULL, Salary integer, Address varchar(30), CellNO varchar(11) NOT NULL, LBID Varchar(2), Constraint pk_SID primary key (SID), Constraint fk_libID foreign key (LBID) REFERENCES library_branch(LBID) )
BID Varchar(5), AID varchar(5), Constraint fk_BkID foreign key (BID) REFERENCES BOOKS (BID), Constraint fk_AuID foreign key (AID) REFERENCES AUTHORS (AID) )
MID varchar(5), BID varchar(5),