Online Library Management System
Online Library Management System
Online Library Management System
Assignment II
Student Name
Student ID
Batch BCS3A
Date 25/04/2017
Assignment - 2
Online Library Management System
Fig. Entity Relationship Diagram (ERD) for Online Library Management System
Tables
Table 1 employee
Table 2 readers
Table 3 books
Table 4 staff
Table 6 dba
Table 7 freereader
Table 8 paidreader
Table 9 freebook
Table 11 authentication
Notes
1. Employee is further divided into entities staff, librarian and dba, following the
specialization model (top-down design process) as they are distinctive from each other in
the employee set.
Hence these subgroups become lower-level entity sets that have attributes or participate in
relationships that do not apply to the higher-level entity set, i.e., employee.
2. Readers are further divided into entities Free Reader and Paid Reader, following the
specialization model (top-down design process) as they are distinctive from each other in
the employee set.
Hence these subgroups become lower-level entity sets that have attributes or participate in
relationships that do not apply to the higher-level entity set, i.e., readers.
3. Books are further divided into entities Free Book and Paid Book, following the
specialization model (top-down design process) as they are distinctive from each other in
the employee set.
Hence these subgroups become lower-level entity sets that have attributes or participate in
relationships that do not apply to the higher-level entity set, i.e., books.
Oracle SQL Commands
1. Creating Table employee