You are on page 1of 1

In the design for the Fresher Training Management, given the Trainee table with

below initial attributes / fields:

TraineeID: trainee identifier, auto increment field


Full_Name: full name of the trainee
Birth_Date: trainee birth date
Gender: only have one of two value male, female
ET_IQ: entry test point (IQ) of trainee, integer, value range from 0 to 20
ET_Gmath: entry test point (GMath) of trainee, integer, value range from 0
to 20
ET_English: entry test point (English) of trainee, integer, value range from
0 to 50
Training_Class: the class code that trainee is joining
Evaluation_Notes: trainee evaluation notes, free text.

For the following requests, print out respectively the screenshots to show test
data (the table data that you create to test each query), the query results, and
pack them into the zip file Assignment2_AccountName.zip along with your
answers, then handle to the evaluator via email (XYZ@fsoft.com.vn)
Q1: Create the tables (with the most appropriate/economic field/column
constraints & types) and add at least 10 records into each created table.
Q2: Change the table TRAINEE to add one more field named Fsoft_Account which
is a not-null & unique field.
Q3: Create a VIEW which includes all the ET-passed trainees. One trainee is
considered as ET-passed when he/she has the entry test points satisfied below
criteria:

ET_IQ + ET_Gmath >=20


ET_IQ>=8
ET_Gmath>=8
ET_English>=18

Q4: Query all the trainees who is passed the entry test, group them into different
birth months.
Q5: Query the trainee who has the longest name, showing his/her age along with
his/her basic information (as defined in the table)
Barem chm im:

Q1:
Q2:
Q3:
Q4:
Q5:

40% (4)
10%(1)
15%(1.5)
15%(1.5)
20%(2)

You might also like