0% found this document useful (1 vote)
1K views1 page

Day2 Ass2 Opt1

The document describes a Trainee table with attributes like trainee ID, name, date of birth, gender, and test scores. It provides 5 questions: Q1) create the table and add records, Q2) add a unique Fsoft_Account field, Q3) create a view for trainees passing entry tests based on score criteria, Q4) query trainees passing tests grouped by birth month, and Q5) query the longest named trainee with their age and details. The evaluator will check the test data, queries, and answers in a zip file and score each question out of 10 points total.

Uploaded by

BíMật
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
1K views1 page

Day2 Ass2 Opt1

The document describes a Trainee table with attributes like trainee ID, name, date of birth, gender, and test scores. It provides 5 questions: Q1) create the table and add records, Q2) add a unique Fsoft_Account field, Q3) create a view for trainees passing entry tests based on score criteria, Q4) query trainees passing tests grouped by birth month, and Q5) query the longest named trainee with their age and details. The evaluator will check the test data, queries, and answers in a zip file and score each question out of 10 points total.

Uploaded by

BíMật
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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 ([email protected])
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