Presentation is loading. Please wait.

Presentation is loading. Please wait.

Data base project (For alloban primary school ) AN_Najah national university Falasteen nobane Eman abuzaid.

Similar presentations


Presentation on theme: "Data base project (For alloban primary school ) AN_Najah national university Falasteen nobane Eman abuzaid."— Presentation transcript:

1 Data base project (For alloban primary school ) AN_Najah national university Falasteen nobane Eman abuzaid

2 Description Entity Relationship Diagram

3 Description for Students Entity and Attributes Students entity : Each student will have various of attributes, on which we choose the primary key depending on collection of attributes that distinct all together the entity. Student number (STU_ID) which composite three attributes : Serial number (serial_no) : contain six digits. Sex: contain one digit either 1 for male or 2 for female. YOE (year of entering) : contain 2 digit representing in which year the student enter the school. Previous three attributes are gathered in one attribute compound key, (STU_ID ) which represent primary key.

4 Student name containing the full name of each student represented by (Name) : first name (fname), father name (faname), grandfather name (grname), last name(lname). Birth date (B_Date) : represented by month / day / year. student Subject, which subjects each student take represented by (subject) which is a multi_valued attribute it values are Subject { Arabic, English, History, Art, Geographic, Science, Sport, Technology, Math, Religion, National, Civic }. Telephone number (Tel) : represent telephone (house) number, telephone (mobile) number. Students religion ( Religion). Students address : Address { city, street, apart_no}. Students class : class {type} type represent the type of the class. Students age : (Age ) derived attribute. students class : class{ first class, second class, third class, forth, class, fifth class}. Classs type: type { A, B, C }.

5 Description for Employees Entity and attributes: Employee entity: Employee name containing the full name of each employee represented by (Name) : first name (fname), father name (faname), grandfather name (grname), last name(lname). Serial number (serial_no) : contain three digits which represent primary key for each employee within the school. Employee identification number represented by ( empid). Birth date (B_Date) : represented by month / day / year. Employee Subject, which subjects each employee teach some employee subject could be NULL represented by (subject) which is a multi_valued attribute it values are Subject { Arabic, English, History, Art, Geographic, Science, Sport, Technology, Math, Religion, National, Civic }. Telephone number (Tel) : represent Tel{ telephone (house) number, telephone (mobile) number }.

6 Employee address : Address { city, street, apart_no}. Employee age : (Age ) derived attribute. Employee work hours ( Hours ): calculating teaching hours for that each teacher and administrator do weekly. Employee college degree (college_degree) for each employee specific college degree or more than one. Employee position (position) which specify if the employee work in the school full time job Which means that he does not for another school or part time job means that he work for another school.

7 Description for Subjects Entity and Attributes Subjects entity: Both students entity and employees entity have its own relation with subject s entity. Subjects attributes : S_name :subject name Level :level of the class (first,second,third,forth,fifth,sixth) Techers who belong to employee teach many students and many subjects Many student take many subjects and teach by many teachers Every student must teach by teacher Teach relation ship: Attribute (date,day,time) Give relation ship : Attribute (class)

8 STU_ID A Nameme B STU_ID B_Date student Address AparNO street city Age Tel.me Tel. Serial_no x YOE Sex lname grname faname fname Ac Religion B subject Ac class type

9 s employee Serial no Name B_Date Address ApartNO. street city Age Tel.me Tel. fname faname grname laname College_ degree position Hours subjects

10 Subject level v S_name

11 Subject Employee student teach Give 1 P N 1 N Administrative N M day Date Time Class

12 Relational schema

13 Employee(serial num, fname,faname,laname,hours,position,city,street,apart_no, b_date, admid) Emp subject(subject,serial num) Emp tel (tel,serial num) Emp collage _degree(collage degree,serial num) Student (serialno, sex, yoe, fname, faname, grname, lname, class, type, religion, b_date, city,street,apart no) Stu subject(subject, serialno,sex,yoe) Stu telephone(tele, serialno,sex,yoe) subject(level,s_name,seial_num,class) teach (date,time,day,serial num,serialno,sex,yoe,level,s_name )


Download ppt "Data base project (For alloban primary school ) AN_Najah national university Falasteen nobane Eman abuzaid."

Similar presentations


Ads by Google