Professional Documents
Culture Documents
AS2 by Swam Pyae Maung Maung
AS2 by Swam Pyae Maung Maung
Student ID – MG16573
1
HND-42 Swam Pyae Maung Maung
Contents
Table Name: Staff.CategoryDetails ............................................................................................................................3
Table Name: “Admin“.Staff ........................................................................................................................................6
Table Name: Staff.Customer ......................................................................................................................................7
Table Name: Staff.Item............................................................................................................................................ 10
Table Name: “Admin“.Branch ................................................................................................................................. 13
Table Name: Staff .OrderDetail ............................................................................................................................... 14
Table Name: Staff.Orders ........................................................................................................................................ 16
REFERENCES: ........................................................................................................................................................... 18
2
HND-42 Swam Pyae Maung Maung
-In No.2, CategoryID is tested for PRIMARY KEY. Main key has been rejected
because of data duplication of “A001“.
-In No.3, CategoryID is tested for check constraint. When unrelated data is inserted
with the wrong format to check constraint is added, the database doesn’t allow as
follows.
3
HND-42 Swam Pyae Maung Maung
Test 1
Test 2
4
HND-42 Swam Pyae Maung Maung
Test 3
5
HND-42 Swam Pyae Maung Maung
-In No.2, StaffID is tested for PRIMARY KEY. When we add repetitive data is inserted,
the database doesn’t allow to add new section and it will show the rejection of data
duplication “1001“
Test 1
6
HND-42 Swam Pyae Maung Maung
Test 2
7
HND-42 Swam Pyae Maung Maung
-In No.2, CustomerID is tested for PRIMARY KEY and the data is inserted, the
database doesn’t allow to add new section and it will show the rejection of data
duplication.
-In No.3, CustomerPhNum is tested for check constraint. When the data is inserted
in right format, the database will allow and accept in adding new section.
8
HND-42 Swam Pyae Maung Maung
-In No.2, ItemID “B001“ is tested for PRIMARY KEY and there is data duplication, so
it’s in reject stage.
-In No.3, ItemID is tested for check constraint. When unrelated data is inserted with
the wrong format to check constraint is added, the database doesn’t allow as follows.
10
HND-42 Swam Pyae Maung Maung
Test 1
11
HND-42 Swam Pyae Maung Maung
Test 2
Test 3
12
HND-42 Swam Pyae Maung Maung
-In No.2, BranchID ‘1‘is tested for PRIMARY KEY and there is data duplication, so
it’s in reject stage.
13
HND-42 Swam Pyae Maung Maung
Test 2, data exists
-In No.1, DeliveryDate is inserted and it’s in accept stage because formatting is
correct.
-In No.2, DeliveryDate is inserted and it’s in reject stage because of wrong
formatting.
14
HND-42 Swam Pyae Maung Maung
Test 1, data correct
15
HND-42 Swam Pyae Maung Maung
-In No.2, OrderNumber ‘IVN0017’ is tested and the data is inserted, the database
doesn’t allow to add new section and it will show the rejection of wrong formatting.
16
HND-42 Swam Pyae Maung Maung
17
HND-42 Swam Pyae Maung Maung
REFERENCES:
-Teacher’s Lecture Notes
18