0% found this document useful (0 votes)
62 views12 pages

Ais Final Exam

The document contains tables representing data about a company's products, customers, sales, inventory, suppliers, employees, and shipping. The tables include attributes and primary/foreign keys defining the relationships between entities. Requirements ask to find specific data values from the tables, such as product names, customer addresses, employee IDs, shipping rates, and payment amounts.

Uploaded by

Earl Crystal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views12 pages

Ais Final Exam

The document contains tables representing data about a company's products, customers, sales, inventory, suppliers, employees, and shipping. The tables include attributes and primary/foreign keys defining the relationships between entities. Requirements ask to find specific data values from the tables, such as product names, customer addresses, employee IDs, shipping rates, and payment amounts.

Uploaded by

Earl Crystal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 12

PROBLEM 1

BCD ELECTRONICS
PRODUCT TABLE
Primary Keys Foreign Keys Attributes
Product ID Product Name Unit Price

PURCHASES
Primary Keys Foreign Keys
Raw Materials ID Raw material Name Supplier

SUPPLIER
Primary Keys Attributes
Supplier ID Supplier Name Address

PRODUCTION LINE
Primary Keys Foreign Keys Attributes
Production Line Employee ID Description

CUSTOMER TABLE
Primary Key Attributes
Customer ID Customer Name Contact Number

SALES TABLE

Attributes Primary Key Foreign keys


Date Invoice Number Customer Number
5/11/2023 10001 CU-5894310
5/12/2023 10002 CU-2679534
5/13/2023 10003 CU-7164089
5/14/2023 10004 CU-3947062
5/15/2023 10005 CU-8251796

REQUIREMENT 2: What invoice number has the largest amount sold?


PRODUCT TABLE
Primary keys Foreign Keys Attributes
Product ID Product Name Description
PR-001 Mascara Mascara
PR-002 Foundation Foundation
PR-003 Lipstick Lipstick
PR-004 Eyeshadow palette Eyeshadow palette
PR-005 Blush Blush

REQUIREMENT 2: What is the name of the product that has 12 quantity?

CUSTOMER TABLE
Primary Key Foreign keys Foreign keys
Customer Number Customer Name Address
CU-5894310 Ethan Sablay 18, rizal ave. Rosario santiago City
CU-2679534 Hanna Guillermo 19 Del Pilar st. Rosario Santiago, Isabela
CU-7164089 Liam Gamazon 11 Roque St, Santiago, 3311 Isabela
CU-3947062 Olivia Obra Camacam St, Santiago, 3311 Isabela
CU-8251796 AK Vinoya 25 zamora St, Santiago, 3311 Isabela

REQUIREMENT 2: What is the account status of Ethan Sablay?

SALES AGENT
Primary Keys Foreign Keys Attributes
Sales Person Employee ID Address
Oliver Thompson EM-5738291 Rosario, Santiago City, 3311 Isabela
Ava Rodriguez EM-1947520 Victory Sur, Santiago City, 3311 Isabela
Ethan Collins EM-8629134 Victory Norte, Santiago City, 3311 Isabela
Mia Johnson EM-3984217 Villasis, Santiago City, 3311 Isabela
Benjamin Martinez EM-7265981 Patul, Santiago City, 3311 Isabela

REQUIREMENT 2: What is the employee ID of Olivia Thompson?

SHIPPING
Primary Keys Foreign Keys Attributes
COMPANY NAME COMPANY ID Address
LBC 123-237-927 Rosario, Santiago City, 3311 Isabela
SHOPPEE EXPRESS 972-876-738 Victory Sur, Santiago City, 3311 Isabela
J&T 745-648-699 Camacam St, Santiago, 3311 Isabela
JRS 632-867-993 25 zamora St, Santiago, 3311 Isabela
NINJA VAN 763-376-373 Malvar, Santiago City, 3311 Isabela

REQUIREMENT 2: What is the shipping rate of Shoppee Express?

RECEIVE PAYMENT
Primary Key Foreign Keys
Remittance Number Invoice Number Customer Number
RN-019277 10001 CU-5894310
RN-927763 10002 CU-2679534
RN-092655 10003 CU-7164089
RN-124526 10004 CU-3947062
RN-14442 10005 CU-8251796

REQUIREMENT 2: What customer number did have paid 22,250?

Inventory - Sales
Primary Keys Foreign Keys Attributes
Inventory ID Product ID Product Name
Fn-4929-Sy PR-001 Mascara
Fn-1693-Sy PR-002 Foundation
Fn-8439-Sy PR-003 Lipstick
Fn-9547-Sy PR-004 Eyeshadow palette
Fn-9430-Sy PR-005 Blush

REQUIREMENT 2: How may quantity has been sold in PR-002?


ELECTRONICS

Attributes
Unit Price

Attributes
Quantity on Stock

Attributes
Supervisor Name Position

PROBLEM 2

Foreign keys Foreign Keys Attributes


Product ID Quantity Sold
Inventory ID
Fn-4929-Sy PR-001 7
Fn-1693-Sy PR-002 11
Fn-8439-Sy PR-003 18
Fn-9547-Sy PR-004 13
Fn-9430-Sy PR-005 6
Unit Cost Unit Price Quantity
1,000.00 1,200.00 12
500.00 700.00 16
1,500.00 1,700.00 18
1,500.00 1,700.00 15
1,200.00 1,400.00 15

Attributes
Email ad contact number registration date
[email protected] +63 912 345 6789 12/11/2022
[email protected] +63 917 987 6543 12/12/2022
liam73mail.com +63 925 123 4567 12/13/2022
[email protected] +63 933 456 7890 12/14/2022
[email protected] +63 938 765 4321 12/15/2022

Phone Email Position


0974 382 4175 [email protected] Sales Person
0932 165 8439 [email protected] Sales Person
0953 923 7741 [email protected] Sales Person
0985 301 5482 [email protected] Sales Person
0913 267 0054 [email protected] Sales Person

PHONE Shipping Rates


0965 578 6733 100.00
0953 270 2798 200.00
0926 220 7640 120.00
0975 767 7664 150.00
0986 738 7638 180.00

Attributes
Method of Payment AMOUNT
GCASH 8,500.00
GCASH 7,900.00
GCASH 30,720.00
GCASH 22,250.00
GCASH 8,580.00

Quantity Quantity Sold Quantity on Hand


12 7 5
16 11 5
18 18 0
15 13 2
15 6 9
Unit price Shipping Fee Total Amount Payment Method
1,200.00 100.00 8,500.00 GCASH
700.00 200.00 7,900.00 GCASH
1,700.00 120.00 30,720.00 GCASH
1,700.00 150.00 22,250.00 GCASH
1,400.00 180.00 8,580.00 GCASH
Account status
Active
Active
Active
Active
Active
Foreign keys
Sales Person Shipping Company
Oliver Thompson LBC
Ava Rodriguez SHOPPEE EXPRESS
Ethan Collins J&T
Mia Johnson JRS
Benjamin Martinez NINJA VAN

You might also like