TABLE OF CONTENT 1. DETERMINE MAIN ENTITIES 3 2. DETERMINATION OF ATTRIBUTES AND PRIMARY KEY 4 3. ENTITY RELATIONSHIP DIAGRAM (ERD) 5 4. RELATIONAL SCHEMA 6 5. SAMPLE RECORD FOR EACH RELATION 7-8 6. SQL QUERIES 9 - 10 7. SQL QUERIES GENERATED RESULT 11 - 12 1 1. DETERMINE MAIN ENTITIES There are four main entities found from context which is student, course, class and the last one is trainer. Entity student determined from context “Evertrue Innovation Solution Sdn. Bhd. offering training courses to students from businesses and organizations of all sizes and at all levels”. Entity course determined from context “Evertrue Innovation Solution Sdn. Bhd. the type of courses together with the duration offered by them to the students”. Entity class determined from “the available time and date for each course offered by Evertrue Innovation Solution Sdn. Bhd”. Entity trainer determined from context “Evertrue Innovation Solution Sdn. Bhd has quite number of trainer with different specialization to train the students depend on the type of courses”. 2 2. DETERMINATION OF ATTRIBUTES AND PRIMARY KEYS Entity Attributes Student Student_ID (Primary Key) Student_Name Student_Age Student_Address Student_Email Student_Company Course Course_ID (Primary Key) Course_Name Course_Duration Course_Type Class_Code (Foreign Key) Trainer_ID (Foreign Key) Class Class_Code (Primary Key) Class_Date_Time Total_Class_Hours Class_Location Trainer Trainer_ID (Primary Key) Trainer_Name Trainer_Telephone Specialization 3 3. ENTITY RELATIONSHIP DIAGRAM (ERD) - BOLD WORDS = Primary Key ITALIC WORDS = Foreign Key 4 4. RELATIONAL SCHEMA Schema Relations Item Student Student_ID (Primary Key), Student_Name, Student_Age, Student_Address, Student_Email, Student_Company Course Course_ID (Primary Key), Course_Name, Course_Duration Course_Type, Class_Code (Foreign_Key), Trainer_ID (Foreign Key) Class Class_Code (Primary Key), Class_Date_Time, Class_Location Trainer Trainer_ID (Primary Key), Trainer_Name, Trainer_Telephone, Specialization 5 5. SAMPLE RECORDS FOR EACH RELATION i) Student ii) Course iii) Class 6 iv) Trainer 7 6. SQL QUERIES i) Simple Query ii) Query for Sorting Results iii) Aggregate Function 8 iv) Sub-Queries v) Alter Query 9 7. SQL QUERIES GENERATED RESULT i) Simple Query ii) Query for sorting results iii) Aggregate function 10 iv) Subqueries v) Alter Query Student table before executing Alter Query Executing Alter Query A new column named “DateOfBirth” successful added into the table by Alter Query 11