130 likes | 236 Vues
AN_Najah national university. Data base project. (For alloban primary school ). Falasteen nobane. Eman abuzaid. Description. Entity Relationship Diagram. Description for Student’s Entity and Attributes. Student’s entity :
E N D
AN_Najah national university Data base project (For alloban primary school ) Falasteen nobane Eman abuzaid
Description Entity Relationship Diagram
Description for Student’s Entity and Attributes Student’s entity: Each student will have various of attributes , on which we choose the primarykey 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.
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 . Student’s religion ( Religion) . Student’s address : Address { city , street , apart_no}. Student’s class : class {type} type represent the type of the class . Student’s age : (Age ) derived attribute . student’s class : class{ first class , second class , third class , forth , class , fifth class}. Class’s type: type { A , B , C }.
Description for Employee’s 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 primarykey 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 } .
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 .
Description for Subject’s Entity and Attributes Subject’s entity: Both student’s entity and employee’s entity have it’s own relation with subject ’s entity . Subject’s 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)
x Sex YOE faname Serial_no lname grname fname B B_Date STU_ID STU_ID Nameme Age Age student B Tel.me subject Tel. Ac class A Address Ac Ac type Religion AparNO city street
faname grname laname fname Serial no Name Hours subjects College_ degree s employee Age position Address Tel.me B_Date Tel. city ApartNO. street
v S_name Subject level
Administrative N Employee 1 Class 1 Date M day Give teach Time P N N student Subject
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,apartno) 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 )