0% found this document useful (0 votes)
187 views16 pages

School Management System ERD

Uploaded by

Javeria Fazal
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)
187 views16 pages

School Management System ERD

Uploaded by

Javeria Fazal
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/ 16

Chapter 4

School Management System

4.1 ER-Diagram

91
92 CHAPTER 4. SCHOOL MANAGEMENT SYSTEM

4.2 Database Development

1. Create Database named School Management System

2. Create Table named Attendance

• Attendance ID (PK, int, not null, auto-increment)

• Class (varchar(20))

• Session (varchar(10))

• Section (varchar(10))

• Subject Code (FK, varchar(20))

• Staff ID (varchar(15))

• Attendance Date (datetime)

• Admission Number (FK, varchar(15))

• Status (varchar(10))
4.2. DATABASE DEVELOPMENT 93

3. Create Table named Book

• Accession Number (PK, varchar(30), not null)

• Book Title (varchar(30))

• Author (varchar(30))

• Joint Authors (varchar(30))

• Subject (varchar(30))

• Department (varchar(30))

• Barcode (varchar(70))

• ISBN (varchar(30))

• Volume (varchar(30))

• Edition (varchar(30))

• Publisher (varchar(30))

• Place of Publisher (varchar(30))

• CD (varchar(10))

• Publishing Year (int)

• Reference (varchar(10))

• Almira Position (varchar(30))

• Price (int)

• Supplier Name (varchar(30))

• Bill Date (datetime)

• Remarks (varchar(max))
94 CHAPTER 4. SCHOOL MANAGEMENT SYSTEM

4. Create Table named Book Issue Staff


• Transaction ID (PK, varchar(15), not null)
• Issue Date (datetime)
• Due Date (datetime)
• Accession No (varchar(30))
• Staff ID (varchar(15))
• Status (varchar(30))

5. Create Table named Book Return Student


• Return ID (PK, varchar(15), not null)
• Transaction ID (varchar(15))
• Return Date (datetime)
4.2. DATABASE DEVELOPMENT 95

• Fine (int)

6. Create Table named Bus Holders

• Admission Number (varchar(15))

• Source Location (varchar(250))

• Starting Date (date)

7. Create Table named Class

• ID (PK, int, not null)

• Class Name (varchar(20))

• Section (varchar(20))
96 CHAPTER 4. SCHOOL MANAGEMENT SYSTEM

8. Create Table named Course Fee

• ID (PK, int, not null)

• Class ID (int)

• Fee ID (int)

• Fee (float)

• Month (varchar(30))

9. Create Table named Department

• ID (PK, int, not null)

• Department Name (varchar(250), not null)


4.2. DATABASE DEVELOPMENT 97

10. Create Table named Employee

• Staff ID (PK, varchar(50), not null)

• Staff Name (varchar(30))

• Father Name (varchar(30))

• Mother Name (varchar(30))

• Date of Birth (date)

• Permanent Address (varchar(100))

• Temporary Address (varchar(100))

• Phone Number (varchar(11))

• Mobile Number (varchar(11))

• Date of Joining (date)

• Qualification (varchar(70))

• Years of Experience (float)

• Designation (varchar(100))

• Email (varchar(30))

• Picture (image)

• Status (varchar(15))

• Basic Salary (int)

• Department (varchar(100))

• Gender (varchar(10))
98 CHAPTER 4. SCHOOL MANAGEMENT SYSTEM

11. Create Table named Event


• Event ID (PK, int, not null)
• Event Name (varchar(150))
• Starting Date and Time (datetime)
• Ending Date and Time (datetime)
• Managed By (varchar(250))
• Activities (varchar(max))

12. Create Table named Examination


• ID (PK, int, not null)
• Examination Name (varchar(30))
• Examination Type (varchar(30))
4.2. DATABASE DEVELOPMENT 99

13. Create Table named Fee

• ID (PK, int, not null)

• Fee Name (varchar(50))

14. Create Table named Grades

• Grade ID (PK, int, not null)

• Grade (varchar(50))

• Score From (float)

• Score To (float)

• Remark (varchar(max))

• Grade Points (float)


100 CHAPTER 4. SCHOOL MANAGEMENT SYSTEM

15. Create Table named Hostel Fee Payment


• Hostel Fee Payment ID (PK, varchar(15), not null)
• Admission Number (varchar(15))
• Total Paid (int)
• Mode of Payment (varchar(50))
• Payment Mode details (varchar(200))
• Fine (int)
• Due Fees (int)
• Date and Time of Payment (datetime)
• Hostel Fees (int)

16. Create Table named Hostel Information


4.2. DATABASE DEVELOPMENT 101

• ID (PK, int, not null)

• Hostel Name (varchar(150), not null)

• Hostel Address (varchar(150), not null)

• Managed By (varchar(100))

• Hostel Phone Number (varchar(11), not null)

• Hostel Mobile Number (varchar(11))

• Hostel Fees (int)

17. Create Table named Marks Entry

• Marks Entry ID (PK, int, not null)

• Admission Number (varchar(15))

• Student School (varchar(250))

• Session (varchar(100))

• Student Class (varchar(150))

• Student Section (varchar(100))

• Entry Date (datetime)

• Result (varchar(20))
102 CHAPTER 4. SCHOOL MANAGEMENT SYSTEM

18. Create Table named Scholarship


• Scholarship ID (PK, int, not null)
• Scholarship Name (varchar(30))
• Description (varchar(max))
• Amount (int)

19. Create Table named School


• School ID (PK, int, not null)
• School Name (varchar(250))
• Address (varchar(250))
• Contact Number (varchar(11))
• Email (varchar(30))
4.2. DATABASE DEVELOPMENT 103

• Website (varchar(60))

20. Create Table named Student


• Admission Number (PK, varchar(15), not null)
• Enrollment Number (varchar(15))
• Student Name (varchar(100))
• Father Name (varchar(100))
• Mother Name (varchar(100))
• Father Contact Number (varchar(11))
• Permanent Address (varchar(250))
• Temporary Address (varchar(250))
• Student Contact Number (varchar(11))
• Email ID (varchar(60))
• Date of Birth (date)
• Gender (varchar(10))
• Admission Date (date)
• Session (varchar(15))
• Caste (varchar(15))
• Religion (varchar(15))
• Photo (image)
• Status(varchar(15))
• Nationality (varchar(50))
• Class (varchar(20))
• Section (varchar(30))
• School ID (int)
104 CHAPTER 4. SCHOOL MANAGEMENT SYSTEM

21. Create Table named Subject

• Subject Code (PK, varchar(20), not null)

• Subject Name (varchar(250))

• Class Name (varchar(20))

22. Create Table named Supplier

• ID (PK, varchar(15), not null)

• Supplier Name (varchar(30))

• Address (varchar(200))

• Contact No (varchar(15))
4.2. DATABASE DEVELOPMENT 105

• Email ID (varchar(50))

23. Create Table named Transportation


• Route ID (PK, int, not null)
• Source Location (varchar(250))
• Bus Charges (int)

24. Add Foreign Key Constraints to following Columns


• Attendance (Subject Code) with Subject (Subject Code)
• Attendance (Admission Number) with Student (Admission Number)
• Book Issue Staff (Accession Number) with Book (Accession Number)
• Book Issue Staff (Staff ID) with Employee (Staff ID)
• Bus Holder (Admission Number) with Student (Admission Number)
106 CHAPTER 4. SCHOOL MANAGEMENT SYSTEM

• Course Fee (Class ID) with Class (ID)

• Course Fee (Fee ID) with Fee (ID)

• Hostel Fee Payment (Admission Number) with Student (Admission Number)

• Student (School ID) with School (school ID)

4.3 User Interface


1. Connect Database to your Visual Studio

You might also like