Professional Documents
Culture Documents
The test must be saved in the file ‘hoten - test2.sql’ in the unicode form. Where hoten is
the full name of the test taker, for example ‘Nguyen Van An - test2.sql’
The test file must be compressed into ‘hoten - test2.zip’ or ‘hoten - test2.rar’ before being
attached into Yahoo mail (for the reason of inline attachment).
1
Apply constraints to tables
4. Apply the referential constraint from Diem(MaSV) to SinhVien(MaSV)
5. Apply the referential constraint from Diem(MaMH) to MonHoc(MaMon)
6. Apply the check constraint that DiemThi must be between 0 and 10
Create index
7. Create the index idxTheoTen for the table SinhVien on the field TenSV
8. Create the index idxTheoTenMon for the table MonHoc on the field TenMon
Create view
9. Create the view SinhVienChuaThi that displays all students that do not appear in the
table Diem
10. Create the view SinhVienChuaThiHTML that displays all students that do not take
the exam on the subject HTML
Create trigger
13. Create the trigger KiemTraNgayThang that fires whenever the test date (NgayThi) of
the inserted record is greater than the current date
14. Create the trigger KiemTraHomThu that fires whenever the email (ThuDienTu) of the
inserted recored is not of the email format.