SlideShare a Scribd company logo
1 of 22
Download to read offline
Online Retailing
System
INFO 6210 Team 1 Final Project Report​
Shu-Ya Hsu, Hung-Chih Huang, JunyaoLi,
JialinWang, Yangzi Xin, YiningChen​
1 Business Problem
As a platform of Online Retailing System on Amazon,
the purpose of the database is to
• maintain data used for business managers to
purchase goods from vendors or ship directly from
inventory
• track orders’ shipment information
• check inventory value and provide customer
services. The database will be used by executive
managers, and business managers.​
Final ERD
ERD-Product
Information​
ERD-Purchase
Order Process​
ERD-Customer
Order Process​
We created 7 computed columns ​
• Calculate total price for Order Record and Purchase Order​
• Calculate total quantity for Purchase Order​
• Calculate net profit, Amazon Fee, and Vendor Price for Product
entity​
• Calculate the number of the returned order for each Customer​
• We can get all of them automatically based on the inserted
values.​
2 Computed Columns
Computed Column in Product
3 Table-level CHECK Constraints for Inventory
• We created a function CheckNoInventory,
and use table-level CHECK constraint to
confirm that we have enough inventory
for each product.​
• To do that, we compare the ordered
product quantity with inventory product
quantity.​
• If the difference between inventory and
order product quantity is smaller than
zero, meaning the ordered quantity
exceeds the maximum amountin the
inventory, as a result, the system will
decline the insertion of that order.​
4 Trigger for Decreasingand Increasing Inventory ​
• We Created a DML trigger to
update the product inventory
quantity. ​
• In the decreasing case, if a
purchase is made and the order
status from table order shipment
shows ’Ready’, the trigger will
decrease the product inventory
quantity accordingly.​
• We also created another
trigger to increase the number
of products in the inventory by
tracking the new insertion in
the TABLE Inventory_FBA
shipment.
5 View of the Top Business Manager and Total Sales
• We created a view of business
managers’ ranking and the
total sales that they have sold. ​
• The view includes the rank of
sale values and business
manager information ​
• We used order records related
to the customer to calculate
sum of the total price.​
View of the Top Business Manager and Total Sales
View of the Popularity of Products
• We created a view to evaluate
the popularity of products.​
• We defined popularity based
on the number of products sold
and evaluate different
products.​
• We calculated the product
quantity of each product that
was purchased by customers.
The result listed popularity,
information of vendors and
total sales.​
View of the Popularity
Q&A?

More Related Content

What's hot

Engineering Product Mfg Co. Leverages Tally.ERP9 to run its Mfg Operations Im...
Engineering Product Mfg Co. Leverages Tally.ERP9 to run its Mfg Operations Im...Engineering Product Mfg Co. Leverages Tally.ERP9 to run its Mfg Operations Im...
Engineering Product Mfg Co. Leverages Tally.ERP9 to run its Mfg Operations Im...Bhavin Shah
 
Procurement Logistics Integration
Procurement Logistics IntegrationProcurement Logistics Integration
Procurement Logistics IntegrationSellOnFlipkart
 
Calem Enterprise Setup Part 3: Inventory
Calem Enterprise Setup Part 3: InventoryCalem Enterprise Setup Part 3: Inventory
Calem Enterprise Setup Part 3: InventoryClay Li
 
My Listings - Newer, Better, Easier!
My Listings - Newer, Better, Easier!My Listings - Newer, Better, Easier!
My Listings - Newer, Better, Easier!SellOnFlipkart
 
Create a listing concept
Create a listing concept Create a listing concept
Create a listing concept SellOnFlipkart
 
Sean\'s skills and knowledge
Sean\'s skills and knowledgeSean\'s skills and knowledge
Sean\'s skills and knowledgeshaight
 
Industrial automation, the key to remain competitive
Industrial automation, the key to remain competitiveIndustrial automation, the key to remain competitive
Industrial automation, the key to remain competitivereachfirst01
 
Seller Recall under Flipkart Advantage
Seller Recall under Flipkart AdvantageSeller Recall under Flipkart Advantage
Seller Recall under Flipkart AdvantageSellOnFlipkart
 

What's hot (19)

Flipkart labels
Flipkart labelsFlipkart labels
Flipkart labels
 
dop User manual
dop User manualdop User manual
dop User manual
 
Dynamic inventory
Dynamic inventoryDynamic inventory
Dynamic inventory
 
Engineering Product Mfg Co. Leverages Tally.ERP9 to run its Mfg Operations Im...
Engineering Product Mfg Co. Leverages Tally.ERP9 to run its Mfg Operations Im...Engineering Product Mfg Co. Leverages Tally.ERP9 to run its Mfg Operations Im...
Engineering Product Mfg Co. Leverages Tally.ERP9 to run its Mfg Operations Im...
 
Auto validation
Auto validationAuto validation
Auto validation
 
Ppts of odoo
Ppts of odooPpts of odoo
Ppts of odoo
 
Procurement Logistics Integration
Procurement Logistics IntegrationProcurement Logistics Integration
Procurement Logistics Integration
 
SAP AFS
SAP AFS SAP AFS
SAP AFS
 
Clothing tutorial.1
Clothing tutorial.1Clothing tutorial.1
Clothing tutorial.1
 
Calem Enterprise Setup Part 3: Inventory
Calem Enterprise Setup Part 3: InventoryCalem Enterprise Setup Part 3: Inventory
Calem Enterprise Setup Part 3: Inventory
 
My Listings - Newer, Better, Easier!
My Listings - Newer, Better, Easier!My Listings - Newer, Better, Easier!
My Listings - Newer, Better, Easier!
 
Create a listing concept
Create a listing concept Create a listing concept
Create a listing concept
 
MngrPaycheck
MngrPaycheckMngrPaycheck
MngrPaycheck
 
Odoo Warehouse
Odoo WarehouseOdoo Warehouse
Odoo Warehouse
 
ApplicationSupport
ApplicationSupportApplicationSupport
ApplicationSupport
 
Sean\'s skills and knowledge
Sean\'s skills and knowledgeSean\'s skills and knowledge
Sean\'s skills and knowledge
 
Industrial automation, the key to remain competitive
Industrial automation, the key to remain competitiveIndustrial automation, the key to remain competitive
Industrial automation, the key to remain competitive
 
Seller Recall under Flipkart Advantage
Seller Recall under Flipkart AdvantageSeller Recall under Flipkart Advantage
Seller Recall under Flipkart Advantage
 
Price check advantage
Price check advantagePrice check advantage
Price check advantage
 

Similar to Online Retailing Database System on Amazon

OpenERP Functional Training Day2
OpenERP Functional Training Day2OpenERP Functional Training Day2
OpenERP Functional Training Day2Satyamitra maan
 
fdocuments.in_consignment-inventory.ppt
fdocuments.in_consignment-inventory.pptfdocuments.in_consignment-inventory.ppt
fdocuments.in_consignment-inventory.pptbskumar_slideshare
 
Consignmentinventory 141028062943-conversion-gate02
Consignmentinventory 141028062943-conversion-gate02Consignmentinventory 141028062943-conversion-gate02
Consignmentinventory 141028062943-conversion-gate02pavan.veer
 
Strategic Inventory Planning for the Holiday Shopping Rush
Strategic Inventory Planning for the Holiday Shopping RushStrategic Inventory Planning for the Holiday Shopping Rush
Strategic Inventory Planning for the Holiday Shopping RushTinuiti
 
INFORMATICA EASY LEARNING ONLINE TRAINING
INFORMATICA EASY LEARNING ONLINE TRAININGINFORMATICA EASY LEARNING ONLINE TRAINING
INFORMATICA EASY LEARNING ONLINE TRAININGZaranTech LLC
 
5 Steps on Your Path to Amazon Vendor Operational Fitness
5 Steps on Your Path to Amazon Vendor Operational Fitness5 Steps on Your Path to Amazon Vendor Operational Fitness
5 Steps on Your Path to Amazon Vendor Operational FitnessTinuiti
 
Sales and Distribution ERP.pptx
Sales and Distribution ERP.pptxSales and Distribution ERP.pptx
Sales and Distribution ERP.pptxYOUSAFKULACHI
 
Analytic servise BI Datawiz
Analytic servise BI DatawizAnalytic servise BI Datawiz
Analytic servise BI DatawizDatawiz.io
 
SAP Training in Noida
SAP Training in NoidaSAP Training in Noida
SAP Training in Noidasonendrapal
 
Onboarding presentation - Vietnam - English
Onboarding presentation - Vietnam - EnglishOnboarding presentation - Vietnam - English
Onboarding presentation - Vietnam - EnglishOnboardingPresentation
 
Generic concept of erp
Generic concept of erpGeneric concept of erp
Generic concept of erpIshit Mehta
 
Sales order processing sec a_grp1
Sales order processing sec a_grp1Sales order processing sec a_grp1
Sales order processing sec a_grp1Abhijeet Dash
 

Similar to Online Retailing Database System on Amazon (20)

OpenERP Functional Training Day2
OpenERP Functional Training Day2OpenERP Functional Training Day2
OpenERP Functional Training Day2
 
fdocuments.in_consignment-inventory.ppt
fdocuments.in_consignment-inventory.pptfdocuments.in_consignment-inventory.ppt
fdocuments.in_consignment-inventory.ppt
 
Consignmentinventory 141028062943-conversion-gate02
Consignmentinventory 141028062943-conversion-gate02Consignmentinventory 141028062943-conversion-gate02
Consignmentinventory 141028062943-conversion-gate02
 
Strategic Inventory Planning for the Holiday Shopping Rush
Strategic Inventory Planning for the Holiday Shopping RushStrategic Inventory Planning for the Holiday Shopping Rush
Strategic Inventory Planning for the Holiday Shopping Rush
 
INFORMATICA EASY LEARNING ONLINE TRAINING
INFORMATICA EASY LEARNING ONLINE TRAININGINFORMATICA EASY LEARNING ONLINE TRAINING
INFORMATICA EASY LEARNING ONLINE TRAINING
 
Erp in business
Erp in businessErp in business
Erp in business
 
Consignment inventory
Consignment inventoryConsignment inventory
Consignment inventory
 
Wings ERP FMCG/Packaged Goods
Wings ERP FMCG/Packaged GoodsWings ERP FMCG/Packaged Goods
Wings ERP FMCG/Packaged Goods
 
5 Steps on Your Path to Amazon Vendor Operational Fitness
5 Steps on Your Path to Amazon Vendor Operational Fitness5 Steps on Your Path to Amazon Vendor Operational Fitness
5 Steps on Your Path to Amazon Vendor Operational Fitness
 
Sales and Distribution ERP.pptx
Sales and Distribution ERP.pptxSales and Distribution ERP.pptx
Sales and Distribution ERP.pptx
 
Data Science and Future of Retail: Beacon analytics
Data Science and Future of Retail: Beacon analyticsData Science and Future of Retail: Beacon analytics
Data Science and Future of Retail: Beacon analytics
 
Onboarding presentation - HK
Onboarding presentation - HKOnboarding presentation - HK
Onboarding presentation - HK
 
Lazada Onboarding - Philippines
Lazada Onboarding - PhilippinesLazada Onboarding - Philippines
Lazada Onboarding - Philippines
 
Analytic servise BI Datawiz
Analytic servise BI DatawizAnalytic servise BI Datawiz
Analytic servise BI Datawiz
 
Onboarding presentation - Indonesia
Onboarding presentation - IndonesiaOnboarding presentation - Indonesia
Onboarding presentation - Indonesia
 
SAP Training in Noida
SAP Training in NoidaSAP Training in Noida
SAP Training in Noida
 
Onboarding presentation - Vietnam - English
Onboarding presentation - Vietnam - EnglishOnboarding presentation - Vietnam - English
Onboarding presentation - Vietnam - English
 
Onboarding presentation - Thailand
Onboarding presentation - ThailandOnboarding presentation - Thailand
Onboarding presentation - Thailand
 
Generic concept of erp
Generic concept of erpGeneric concept of erp
Generic concept of erp
 
Sales order processing sec a_grp1
Sales order processing sec a_grp1Sales order processing sec a_grp1
Sales order processing sec a_grp1
 

Recently uploaded

cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?Watsoo Telematics
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 

Recently uploaded (20)

cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 

Online Retailing Database System on Amazon

  • 1. Online Retailing System INFO 6210 Team 1 Final Project Report​ Shu-Ya Hsu, Hung-Chih Huang, JunyaoLi, JialinWang, Yangzi Xin, YiningChen​
  • 2. 1 Business Problem As a platform of Online Retailing System on Amazon, the purpose of the database is to • maintain data used for business managers to purchase goods from vendors or ship directly from inventory • track orders’ shipment information • check inventory value and provide customer services. The database will be used by executive managers, and business managers.​
  • 7. We created 7 computed columns ​ • Calculate total price for Order Record and Purchase Order​ • Calculate total quantity for Purchase Order​ • Calculate net profit, Amazon Fee, and Vendor Price for Product entity​ • Calculate the number of the returned order for each Customer​ • We can get all of them automatically based on the inserted values.​ 2 Computed Columns
  • 9.
  • 10. 3 Table-level CHECK Constraints for Inventory • We created a function CheckNoInventory, and use table-level CHECK constraint to confirm that we have enough inventory for each product.​ • To do that, we compare the ordered product quantity with inventory product quantity.​ • If the difference between inventory and order product quantity is smaller than zero, meaning the ordered quantity exceeds the maximum amountin the inventory, as a result, the system will decline the insertion of that order.​
  • 11.
  • 12. 4 Trigger for Decreasingand Increasing Inventory ​ • We Created a DML trigger to update the product inventory quantity. ​ • In the decreasing case, if a purchase is made and the order status from table order shipment shows ’Ready’, the trigger will decrease the product inventory quantity accordingly.​
  • 13.
  • 14. • We also created another trigger to increase the number of products in the inventory by tracking the new insertion in the TABLE Inventory_FBA shipment.
  • 15. 5 View of the Top Business Manager and Total Sales • We created a view of business managers’ ranking and the total sales that they have sold. ​ • The view includes the rank of sale values and business manager information ​ • We used order records related to the customer to calculate sum of the total price.​
  • 16. View of the Top Business Manager and Total Sales
  • 17. View of the Popularity of Products • We created a view to evaluate the popularity of products.​ • We defined popularity based on the number of products sold and evaluate different products.​ • We calculated the product quantity of each product that was purchased by customers. The result listed popularity, information of vendors and total sales.​
  • 18. View of the Popularity
  • 19.
  • 20.
  • 21.
  • 22. Q&A?