You are on page 1of 18

HND-42 Swam Pyae Maung Maung

Name - 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

Table Name: Staff.CategoryDetails


-In No.1, CategoryID is tested for PRIMARY KEY. It will allow and accept to add
new section when we add the correct data formation “A001“.

-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

Table Name: “Admin“.Staff


-In No.1, StaffID is tested for PRIMARY KEY. It will allow and accept to add new
section when we add the correct data “1001“.
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

Test 2

6
HND-42 Swam Pyae Maung Maung

Table Name: Staff.Customer


-In No.1, CustomerID is tested for PRIMARY KEY. It accept when saving “C001“
without duplication as primary key.

-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.

7
HND-42 Swam Pyae Maung Maung

Test 1, data correct

8
HND-42 Swam Pyae Maung Maung

Test 2, data exists

Test 4, data correct


9
HND-42 Swam Pyae Maung Maung

Table Name: Staff.Item


-In No.1, ItemID “B001“is tested for PRIMARY KEY and so it’s in accept stage
because there’s no data duplication.

-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

Table Name: “Admin“.Branch


-In No.1, BranchID ‘1‘is tested for PRIMARY KEY and so it’s in accept stage
because there’s no data duplication.

-In No.2, BranchID ‘1‘is tested for PRIMARY KEY and there is data duplication, so
it’s in reject stage.

Test 1, data correct

13
HND-42 Swam Pyae Maung Maung
Test 2, data exists

Table Name: Staff .OrderDetail

-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

Test 2, Wrong format

15
HND-42 Swam Pyae Maung Maung

Table Name: Staff.Orders


-In No.1, OrderNumber ‘IVN001’is inserted to check its primary key and it’s in
accept stage because there’s no any data duplication.

-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.

Test 1, data correct

16
HND-42 Swam Pyae Maung Maung

Test 2, wrong format

17
HND-42 Swam Pyae Maung Maung

REFERENCES:
-Teacher’s Lecture Notes

18

You might also like