Database_Report_01_Seada - This database is school management system that provides informations about students and their parent grades classrooms

Database_Report_01_Seada - This database is school...

This preview shows page 1 - 5 out of 9 pages.

Image of page 1
This database is school management system that provides informations about students and their parent, grades, classrooms, teachers, courses, exams, results and attendance. This database may be used for a website or other online or network service because it has log in informations and user`s ip address. There are many relations between tables, students and their parents, students and their attendance, students and their exam results, grades with classrooms and courses...etc. This i s the designer description… Following is how the system works: 1. A school has many students and teachers. It has also many courses(subjects) taught. A grade level can have many courses assigned. These courses in turn will be assigned to the students in that particular grade. 2. The levels of students are categorized into grades and sections. A student can be in Grade 5, but if grade 5 students are huge in number, they are divided into sections. eg: Grade 5 section A, Grade 5 section B. 3. Students are placed in unique classrooms. A classroom will be unique throughout. Classroom of Grade 5 Section A of year 2010 will be different from Classroom of Grade 5 Section A of year 2011. 4. Students are assigned parents. A parent can have more than one student in the school. 5. One or more classrooms can be assigned to a teacher. 6. Attendance for students are taken by their teacher on a daily basis 7. There will be many types of exams. Exam results are stored for each subject (course). Source: - management-system
Image of page 2
DataBase Creation
Image of page 3
1 -- create database 2 Create Database [ MIS _ Report 1 ] ; 3 GO 4 5 -- Select the default database 6 use [ MIS _ Report 1 ] ; 7 8 -- Parent table 9 CREATE TABLE [ parent ]( 10 [ parent _ id ] INT PRIMARY KEY , 11 [ email ] VARCHAR ( 45 ) NOT NULL CHECK ([ email ] LIKE ' % @ %.% ' ) , 12 [ password ] VARCHAR ( 45 ) NOT NULL , 13 [ fname ] nVARCHAR ( 45 ) NOT NULL , 14 [ lname ] nVARCHAR ( 45 ) , 15 [ dob ] DATE , -- Date of birth 16 [ phone ] VARCHAR ( 15 ) , 17 [ mobile ] VARCHAR ( 15 ) , 18 [ status ] BIT DEFAULT ' 0 ', 19 [ last _ login _ date ] DATE , 20 [ last _ login _ ip ] VARCHAR ( 45 ) 21 ) ; 22 23 -- Student table 24 CREATE TABLE [ student ]( 25 [ student _ id ]
Image of page 4
Image of page 5

You've reached the end of your free preview.

Want to read all 9 pages?

  • Spring '16
  • mohamed attia
  • Foreign key, int PRIMARY KEY, foreign key references, int foreign key

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes