DATABASE SYSTEMS DEVELOPMENT & IMPLEMENTATION PLAN 1
DATABASE SYSTEMS DEVELOPMENT & IMPLEMENTATION PLAN 19
Table of Contents
1. Database System Overview 3
1.1 Business Environment 3
1.2 Database system goals and objective 4
2. Entity Relationship Model 7
2.1 Proposed entities 7
2.2 Business rules 8
2.3 Entity–Relationship Model 9
2.3.1 Relationship Types 9
2.3.2 Normalization form 12
2.3.3 Benefit of using database design 14
3. Structured Query Language (SQL) Scripts 15
3.1 Data definition language (DDL) 15
3.2 Data manipulation language (DML) 16
3.3 SQL report 17
3.4 Benefit of using database queries 19
4. Database Administration Plan 20
5. Future Database System Implementation Plan 21
6. References 22
1.
Database System Overview
1.1 Business Environment
Office Depot, Inc is an American retail store company founded in 1986 and headquartered in Florida, United States. The company provides office and school supplies with 1400 retail stores and e-commerce sites. The supply includes everything to their customer like latest technology, core school and office supplies, printing and documenting service, furniture and other services like cell phone repair, tech and marketing service etc.
Recently there were too many complaints from existing and new customer that the online site is super glitch and lagging. Another customer posted that the delivery did not come on the scheduled day. And they cannot track down the order because the website does not have tracking information. Also when the website is down, customer service cannot help to see the order details either and therefore, they feel it’s frustrating to order online and therefore want to cancel the order. One other customer posted in the website grievance section that the “label maker” showed available in the stock even though it was out of stock when verified with the customer service representative. With every product not in stock, we lose opportunity of sale which costs the store. This not only affect customer but also affect company. We are so dependent on the data, most of the time staff has to correct accounting report, sales estimates and invoice customer manually which is very time-consuming in an excel sheet.
In order to solve above issues and avoid sales loss, Office Depot must have a database to store and maintain correct count of the products. This database will help inventory management i.e. tracking products, update inventory, find popular or less popular item, loss prevention, track inventory status and perform data mining. The staff can access this database via a computerized database. (Gerald H., Importance of inventory database retail)1.2 Database system goals and objective
The mission of the company is to become number one retail company by creating inclusive environment and great shopping experience where both customer and employees are respected and valued. To achieve the retail store mission, we are committed to provide secure and robust data base system for ou.
50-55 hours Training + Assignments + Actual Project Based Case Studies
All attendees will receive,
Assignment after each module, Video recording of every session
Notes and study material for examples covered.
Access to the Training Blog & Repository of Materials
19
Database Systems
October 17, 2016
Contents
I. Database System Overview 3
1. Context 3
2. Database System Goals and Objectives Statement 4
3. How the proposed Database System addresses the Business Problems? 4
4. How the Proposed Systems aligns to the Mission Statement and Strategic Goals of the Organization? 5
5. Mission and Goals of the Retail Store 6
6. Conclusion 7
II. Entity Relationship Model 8
1. Relational Database Proposal for online Retail Shop 8
2. ER Model and Relational Model 9
3. Converting ER Diagram to Relational Model 14
4. ER Tables Normalization 17
III. Structured Query Language (SQL) Scripts 18
IV. Database Administration Plan 19
V. Future Database System Implementation Plan 20
VI. References 21
Database System Overview
Database management systems or DBMS is a technology of retrieving and storing users’ data with utmost efficiency and appropriate security measures. The retail store Company is experiencing increased growth in the recent weeks. The customers expressed their interest in purchasing their products electronically. The Company’s website is simple, but it is not clear, if the Company,is in a position, of receiving online purchases. The Company aims at eventually integrating to online purchasingusing the current order entry system. This research project gives a description of the general business environment of the retail store Company. Referencing database objectives, statements, and system goals. Included is a narrative discussing how the proposed DBS addresses the current organization problem.
Context
Development of the retail store online could provide a lucrative alternative increase in sales by attracting customers, meeting the needs of the organization, and market expansion. However, conducting an online retail store creates some environmental considerations. The general business environment defines the external and internal factors that influence the Company’s operating situation. The business environment includes suppliers, clients, competitors, technology, government activities, and laws.(Elmasri & Navathe, Fundamentals of Fourth Edition Database Systems, 2005)
Database System Goals and Objectives Statement
Objectives and goals define what the database project will accomplish or the value of the database project to the business. Database designers should keep in mind six aims during the design of any database system. First, provide a mass storage of the relevant data. Second, protect data from unauthorized access. Such as, in the current database system of the retail store, allows promotional, and discountsof products, when not authorized. Third, the database system must aim at allowing growth. Some of the orders in the retail store, is not available, when required. Fourth, data systems should aim at making access of the order, easy access to the users of the system. Fifth, a database system should eliminate redundant data and allow many users to access to the database simultaneously. ...
Learn Why Inventory Management System is Critical for an eCommerce BusinessMagento India
If you focus on the best technology practices like Multi-warehouse management solutions it can help in running your business. It is highly crucial to make the right technology choices that can grow your business. A robust & secure inventory management system will save money, and time, and focus on customer service. You can explore the list of eCommerce development services, or check out our portfolio to ensure great support. Send us your query to connect about how we can help your eCommerce store grow. Read more at: https://bit.ly/3GdyCss
50-55 hours Training + Assignments + Actual Project Based Case Studies
All attendees will receive,
Assignment after each module, Video recording of every session
Notes and study material for examples covered.
Access to the Training Blog & Repository of Materials
19
Database Systems
October 17, 2016
Contents
I. Database System Overview 3
1. Context 3
2. Database System Goals and Objectives Statement 4
3. How the proposed Database System addresses the Business Problems? 4
4. How the Proposed Systems aligns to the Mission Statement and Strategic Goals of the Organization? 5
5. Mission and Goals of the Retail Store 6
6. Conclusion 7
II. Entity Relationship Model 8
1. Relational Database Proposal for online Retail Shop 8
2. ER Model and Relational Model 9
3. Converting ER Diagram to Relational Model 14
4. ER Tables Normalization 17
III. Structured Query Language (SQL) Scripts 18
IV. Database Administration Plan 19
V. Future Database System Implementation Plan 20
VI. References 21
Database System Overview
Database management systems or DBMS is a technology of retrieving and storing users’ data with utmost efficiency and appropriate security measures. The retail store Company is experiencing increased growth in the recent weeks. The customers expressed their interest in purchasing their products electronically. The Company’s website is simple, but it is not clear, if the Company,is in a position, of receiving online purchases. The Company aims at eventually integrating to online purchasingusing the current order entry system. This research project gives a description of the general business environment of the retail store Company. Referencing database objectives, statements, and system goals. Included is a narrative discussing how the proposed DBS addresses the current organization problem.
Context
Development of the retail store online could provide a lucrative alternative increase in sales by attracting customers, meeting the needs of the organization, and market expansion. However, conducting an online retail store creates some environmental considerations. The general business environment defines the external and internal factors that influence the Company’s operating situation. The business environment includes suppliers, clients, competitors, technology, government activities, and laws.(Elmasri & Navathe, Fundamentals of Fourth Edition Database Systems, 2005)
Database System Goals and Objectives Statement
Objectives and goals define what the database project will accomplish or the value of the database project to the business. Database designers should keep in mind six aims during the design of any database system. First, provide a mass storage of the relevant data. Second, protect data from unauthorized access. Such as, in the current database system of the retail store, allows promotional, and discountsof products, when not authorized. Third, the database system must aim at allowing growth. Some of the orders in the retail store, is not available, when required. Fourth, data systems should aim at making access of the order, easy access to the users of the system. Fifth, a database system should eliminate redundant data and allow many users to access to the database simultaneously. ...
Learn Why Inventory Management System is Critical for an eCommerce BusinessMagento India
If you focus on the best technology practices like Multi-warehouse management solutions it can help in running your business. It is highly crucial to make the right technology choices that can grow your business. A robust & secure inventory management system will save money, and time, and focus on customer service. You can explore the list of eCommerce development services, or check out our portfolio to ensure great support. Send us your query to connect about how we can help your eCommerce store grow. Read more at: https://bit.ly/3GdyCss
The Complete Inventory Management Guide for RetailersVend
Inventory management keeps many retailers up at night, and for good reason: staying on top of your store’s stock levels is a balancing act that can make or break your sales and customer satisfaction.
So how can you can get stock levels just right in your store?
From picking the right solution and entering your products, to tracking stock levels and automating parts of the process, we have you covered with tips and examples to help you win at inventory management - whether you’re choosing your inventory software for the first time, or you want to improve and optimize an existing system.
Understanding the DSR Market looks at the differences between a team and enterprise solution for handling multiple data sources in the consumer goods industry.
UNIT 1 DB2 FINALThe objectives of the retail store include com.docxmarilucorr
UNIT 1 DB2 FINAL
The objectives of the retail store include company profitability with an increase in online sales. The company currently needs to restructure and come up with a plan to accelerate customer service, retail ordering, inventory management, backup’s, productivity standards, employee retention, and stakeholder sustainability. Goals and recommendations include customer and inventory databases with accessible cataloging of information. Incorporating improvements for the database system making it a manageable and viable system.
The following associates have the following issues with the current system.
Cashier
System allows discounts and promotional product when not authorized.
Customer service
Order status is not available to customer questions and order information. The system does not allow access to customer order information.
Store Manager
So much time is spent taking care of problems; orders are misplaced and the wrong order are sent to customers. The current technology is not working for the company.
Customer
Customer service and retention is not present within the company structure.
Product Manager
The system says there is product in the warehouse, but it is wrong this is not true, actually the inventory amount in the system is inaccurate.
An Enterprise Content Management System (EMS) is an architectural system that gives an organized system for documents. This system captures, stores, manages, preserves, delivers, and governs information. The relational database model will provide the retail store with a system that will compensate delivery of customer information, inventory, pricing, and shipping processes. The inventory will include a catalog of products with inventory choices. The web design includes credit card processing, purchasing, discount offers, and shipping options.
Building customer satisfaction is pertinent in building the brand for the company and loyalty. Measuring tools used to measure retail achievement comprising of followers, who clicked the link, how many visitors clicked the link, and follower tracking results. Development of a social media strategy elevates sales using measuring tools such as Blogs, Twitter, FaceBook, and Instagram. These measuring metrics create quantitative and qualitative results.
Quantitative elements, created from the online retail website, is comprised of traffic driven to the website, this describes the type of customers, and buying patterns. A tweet pattern established by retweets. The volume amount of threads created from the conversation determines interest information. The number of followers reveals the fan base established through the social media strategy volume. The number of click-throughs established from different advertising links. The amount of member subscribers registered on the website assists in success calculation.
Qualitative variables reach the target market and assist the company’s overall outlook by making sure the company’s consumer opinion ...
If you are a dealer or a sub-dealer or a business man with a large business or a massive client’s database, in that case you should try using ping post lead technology for your business management.
MSBI online training offered by Quontra Solutions with special features having Extensive Training will be in both MSBI Online Training and Placement. We help you in resume preparation and conducting Mock Interviews.
Emphasis is given on important topics that were required and mostly used in real time projects. Quontra Solutions is an Online Training Leader when it comes to high-end effective and efficient IT Training. We have always been and still are focusing on the key aspect which is providing utmost effective and competent training to both students and professionals who are eager to enrich their technical skills.
Illustrating the gaps in the traditional solutions proposed to achieve single customer view and also elaborates on how a unified system can bridge these gaps and solve data problems for good.
Most companies have data in various sources. Often, they do nothing but store the data because it takes too much time to make sense of it all. Taking control of the data is a process, but once the building blocks are in place a true Demand Signal Management Process will support an enterprise with reliable business insights.
Database reports provide us with the ability to further analyze ou.docxwhittemorelucilla
Database reports provide us with the ability to further analyze our data, and provide it in a format that can be used to make business decisions. Discuss the steps that you would take to ensure that we create an effective report. What questions would you ask of the users?
Data presentation should be designed to display correct conclusions. What issues should we think about as we prepare data for presentation? Discuss the different methods that we can use to present data in a report. What role does the audience play in selecting how we present the data?
1 PAGE AND A HALF
.
DataInformationKnowledge1. Discuss the relationship between.docxwhittemorelucilla
Data/Information/Knowledge
1. Discuss the relationship between data, information, and knowledge. Support your discussion with at least 3 academically reviewed articles.
2. Why do organization have information deficiency problem? Suggest ways on how to overcome information deficiency problem.
.
More Related Content
Similar to DATABASE SYSTEMS DEVELOPMENT & IMPLEMENTATION PLAN1DATABASE SYS.docx
The Complete Inventory Management Guide for RetailersVend
Inventory management keeps many retailers up at night, and for good reason: staying on top of your store’s stock levels is a balancing act that can make or break your sales and customer satisfaction.
So how can you can get stock levels just right in your store?
From picking the right solution and entering your products, to tracking stock levels and automating parts of the process, we have you covered with tips and examples to help you win at inventory management - whether you’re choosing your inventory software for the first time, or you want to improve and optimize an existing system.
Understanding the DSR Market looks at the differences between a team and enterprise solution for handling multiple data sources in the consumer goods industry.
UNIT 1 DB2 FINALThe objectives of the retail store include com.docxmarilucorr
UNIT 1 DB2 FINAL
The objectives of the retail store include company profitability with an increase in online sales. The company currently needs to restructure and come up with a plan to accelerate customer service, retail ordering, inventory management, backup’s, productivity standards, employee retention, and stakeholder sustainability. Goals and recommendations include customer and inventory databases with accessible cataloging of information. Incorporating improvements for the database system making it a manageable and viable system.
The following associates have the following issues with the current system.
Cashier
System allows discounts and promotional product when not authorized.
Customer service
Order status is not available to customer questions and order information. The system does not allow access to customer order information.
Store Manager
So much time is spent taking care of problems; orders are misplaced and the wrong order are sent to customers. The current technology is not working for the company.
Customer
Customer service and retention is not present within the company structure.
Product Manager
The system says there is product in the warehouse, but it is wrong this is not true, actually the inventory amount in the system is inaccurate.
An Enterprise Content Management System (EMS) is an architectural system that gives an organized system for documents. This system captures, stores, manages, preserves, delivers, and governs information. The relational database model will provide the retail store with a system that will compensate delivery of customer information, inventory, pricing, and shipping processes. The inventory will include a catalog of products with inventory choices. The web design includes credit card processing, purchasing, discount offers, and shipping options.
Building customer satisfaction is pertinent in building the brand for the company and loyalty. Measuring tools used to measure retail achievement comprising of followers, who clicked the link, how many visitors clicked the link, and follower tracking results. Development of a social media strategy elevates sales using measuring tools such as Blogs, Twitter, FaceBook, and Instagram. These measuring metrics create quantitative and qualitative results.
Quantitative elements, created from the online retail website, is comprised of traffic driven to the website, this describes the type of customers, and buying patterns. A tweet pattern established by retweets. The volume amount of threads created from the conversation determines interest information. The number of followers reveals the fan base established through the social media strategy volume. The number of click-throughs established from different advertising links. The amount of member subscribers registered on the website assists in success calculation.
Qualitative variables reach the target market and assist the company’s overall outlook by making sure the company’s consumer opinion ...
If you are a dealer or a sub-dealer or a business man with a large business or a massive client’s database, in that case you should try using ping post lead technology for your business management.
MSBI online training offered by Quontra Solutions with special features having Extensive Training will be in both MSBI Online Training and Placement. We help you in resume preparation and conducting Mock Interviews.
Emphasis is given on important topics that were required and mostly used in real time projects. Quontra Solutions is an Online Training Leader when it comes to high-end effective and efficient IT Training. We have always been and still are focusing on the key aspect which is providing utmost effective and competent training to both students and professionals who are eager to enrich their technical skills.
Illustrating the gaps in the traditional solutions proposed to achieve single customer view and also elaborates on how a unified system can bridge these gaps and solve data problems for good.
Most companies have data in various sources. Often, they do nothing but store the data because it takes too much time to make sense of it all. Taking control of the data is a process, but once the building blocks are in place a true Demand Signal Management Process will support an enterprise with reliable business insights.
Similar to DATABASE SYSTEMS DEVELOPMENT & IMPLEMENTATION PLAN1DATABASE SYS.docx (20)
Database reports provide us with the ability to further analyze ou.docxwhittemorelucilla
Database reports provide us with the ability to further analyze our data, and provide it in a format that can be used to make business decisions. Discuss the steps that you would take to ensure that we create an effective report. What questions would you ask of the users?
Data presentation should be designed to display correct conclusions. What issues should we think about as we prepare data for presentation? Discuss the different methods that we can use to present data in a report. What role does the audience play in selecting how we present the data?
1 PAGE AND A HALF
.
DataInformationKnowledge1. Discuss the relationship between.docxwhittemorelucilla
Data/Information/Knowledge
1. Discuss the relationship between data, information, and knowledge. Support your discussion with at least 3 academically reviewed articles.
2. Why do organization have information deficiency problem? Suggest ways on how to overcome information deficiency problem.
.
DataHole 12 Score67575554555554555757756555656565556556565565666434686664656566664555575656546555557554556655655465555565546555655467555646457664545665556555644554585456546654565546664566665566666675675665665656766555565486555567676645645575555575665455554655556556575555555455654555655666667665654655556657656558536666536755465655455755755666665545656565655555545545666564656443545655646445567547565654565545565676456544455446455755645655665567565554465466665
State Legislatures
(Part I)
POLS 2212
Legislatures, Policy-Making, and Political Science
• Legislative process is only one part of policy-making
• States are better venue for understanding policy-making
process overall
• Interactions between components are more transparent
• Less ‘political theater’ than national level
• More cases, more variation, more data
• What role do legislatures play in the overall policy-making
process??
• How do legislative-executive relations affect policy outcomes??
Agenda Setting
Formulation /
Negotiation
Adoption /
Enactment
Implementation
Evaluation
Revision /
Termination
• Public attention is focused on an issue
• Collective recognition of problem
Agenda Setting
• Potential solutions are offered
• Some public discourse over options
Formulation / Negotiation
•
Solution
is agreed upon and made into official policy /
law
Adoption / Enactment
• Policy is converted into actionable rules
Implementation
• Fairness, effectiveness, efficiency of policy and rules are
evaluated
Evaluation
• Improvements or changes to policy are made
Revision / Termination
Agenda Setting
• Parties
• Public opinion
• Advocacy groups /
entrepreneurs
Formulation /
Negotiation
• Party leadership
• Interest groups
• Legislature type
• Legislative-executive
relations
Adoption / Enactment
• Legislative-executive
relations
Implementation
• Type of executive
• Bureaucracy
Evaluation
• Social scientists
• Advocacy groups
• Legislative
committees
• State courts
Revision / Termination
• State courts
• Federal courts
‘Professional’
Model
‘Citizen-
Legislator’
Model
Work Load
Nearly full-
time
Part-time
Session
Year-round,
annual
Short-term,
possibly
biannual
Compensation
Medium-high
(over median
for state
employees)
Fairly low
Staff
Large, semi-
permanent
Small, likely
shared
Conceptualizing State Legislatures
Professional Hybrid / Mixture Citizen
State Legislatures
• GA Legislature
• $17k base +per
diem
• $22k – $24k total
Discussion Question
• What are some of the potential benefits /
drawbacks of each of these two models??
State Legislatures and Political Careers (Peverill Squire)
• ‘Career’ Legislatures (Congress)
• Sufficiently high pay
• Minimal incentive to ‘move up’
• Expectation of long tenure
• Heavy time commitment
• ‘Springboard’ Legislatures
• Other positions have higher pay, more prestige
• Expectation of limited tenure
• May be term lim.
DataIDSalaryCompa-ratioMidpoint AgePerformance RatingServiceGenderRaiseDegreeGender1GradeDo not manipuilate Data set on this page, copy to another page to make changes154.50.956573485805.70METhe ongoing question that the weekly assignments will focus on is: Are males and females paid the same for equal work (under the Equal Pay Act)? 228.30.913315280703.90MBNote: to simplfy the analysis, we will assume that jobs within each grade comprise equal work.334.11.100313075513.61FB460.91.06857421001605.51METhe column labels in the table mean:549.21.0254836901605.71MDID – Employee sample number Salary – Salary in thousands 674.11.1066736701204.51MFAge – Age in yearsPerformance Rating - Appraisal rating (employee evaluation score)741.41.0344032100815.71FCService – Years of service (rounded)Gender – 0 = male, 1 = female 822.80.992233290915.81FAMidpoint – salary grade midpoint Raise – percent of last raise9731.089674910010041MFGrade – job/pay gradeDegree (0= BS\BA 1 = MS)1023.31.014233080714.71FAGender1 (Male or Female)Compa-ratio - salary divided by midpoint1124.31.05723411001914.81FA1259.71.0475752952204.50ME1341.81.0444030100214.70FC14251.08523329012161FA1522.60.983233280814.91FA1648.51.213404490405.70MC1763.11.1075727553131FE1836.21.1673131801115.60FB1923.91.039233285104.61MA2035.51.1443144701614.80FB2178.91.1786743951306.31MF2257.61.199484865613.81FD2322.20.964233665613.30FA2453.41.112483075913.80FD2523.61.0282341704040MA2622.30.971232295216.20FA2746.21.156403580703.91MC2874.41.111674495914.40FF2975.61.129675295505.40MF3047.50.9894845901804.30MD3122.90.995232960413.91FA3228.10.906312595405.60MB3363.71.117573590905.51ME3426.90.869312680204.91MB3522.70.987232390415.30FA3624.41.059232775314.30FA3723.81.034232295216.20FA3864.61.1335745951104.50ME3937.31.202312790615.50FB4023.71.031232490206.30MA4140.31.008402580504.30MC4224.41.0592332100815.71FA4372.31.0796742952015.50FF4465.91.1565745901605.21ME4549.91.040483695815.21FD4657.41.0075739752003.91ME47560.982573795505.51ME4868.11.1955734901115.31FE4966.21.1615741952106.60ME5061.71.0835738801204.60ME
Week 1Week 1: Descriptive Statistics, including ProbabilityWhile the lectures will examine our equal pay question from the compa-ratio viewpoint, our weekly assignments will focus onexamining the issue using the salary measure.The purpose of this assignmnent is two fold:1. Demonstrate mastery with Excel tools.2. Develop descriptive statistics to help examine the question.3. Interpret descriptive outcomesThe first issue in examining salary data to determine if we - as a company - are paying males and females equally for doing equal work is to develop somedescriptive statistics to give us something to make a preliminary decision on whether we have an issue or not.1Descriptive Statistics: Develop basic descriptive statistics for SalaryThe first step in analyzing data sets is to find some summary descriptive statistics for key variables. Suggestion: Copy the gender1 and salary columns from the Data tab t.
DataClientRoom QualityFood QualityService Quality1GPG2GGG3GGG4GPG5GGG6PGG7GGG8GPG9PGP10GGG11GGG12PPP13GGG14GGG15GGP16PPP17GGG18GGG19PGP20PGP21GGG22PGP23PPP24GGG25GGG26GPP27GPG28GGG29PPP30PGG31GGG32PPP33PGG34PGP35GGG36PGP37GGG38PGP39GGG40GPG41GPG42GGG43GGP44PGP45PGG46PGG47GPP48GGG49GPP50PPP51GGG52PPG53PPP54GGG55GGG56GGG57GGP58GGG59GPP60PGP61GPP62GGG63GPG64GGG65PPP66GPG67GGG68GGG69GGG70GGP71GGG72GGG73GGG74GGP75GGP76PPP77GGG78GGG79GGP80GGG81GGG82GGG83PGG84GGG85GGG86GPP87GGG88PPP89GGG90PGP91GGG92GGG93GPG94GGG95GPP96PPP97PPP98GPG99PGG100PPP101GPP102PGP103PPG104GPG105GPG106GGG107PGG108PPP109GGG110GGG111GGG112GGG113GGG114GGG115GGG116GGG117GGG118PPP119PPG120GGG121GGG122PPP123GGG124GGG125GGG126GGG127GGG128GGG129PPP130GGG131GGP132PPP133GGG134GGG135GGG136GGG137GGG138GPG139PPP140GGG141PPP142GGG143GGG144PPP145GGG146GGG147GGG148GGG149GGG150GGP151GGG152GGG153GGG154GGG155GGG156GGG157PPP158GPG159GGG160GGG161GGG162PPG163GGP164GGG165PGP166GPG167GGP168PGG169GGG170GGP171GGG172PPP173GGG174GGG175GPG176GGG177GGG178PPG179GGG180GGP181GGG182GGG183GGG184GGG185GPP186GGG187GGG188GGG189GGG190GGG191GGG192GGG193GGG194GGG195GGP196GGG197GGG198GGG199GPP200GGG
Sheet1Room QualityFood QualityService QualityMeanMedianRangeSTDCoefficientVariationComparision
Corporal Punishment: Legal Reform as a Route to Changing
Norms
Jo Becker
Social Research: An International Quarterly, Volume 85, Number 1, Spring
2018, pp. 255-271 (Article)
Published by Johns Hopkins University Press
For additional information about this article
Access provided by Ebsco Publishing (8 May 2018 07:55 GMT)
https://muse.jhu.edu/article/692752
https://muse.jhu.edu/article/692752
social research Vol. 85 : No. 1 : Spring 2018 255
Jo Becker
Corporal Punishment:
Legal Reform as a Route
to Changing Norms
THE TERM “HARMFUL TRADITIONAL PRACTICES” TYPICALLY BRINGS TO MIND CHILD
marriage, female genital mutilation/cutting, and so-called “honor kill-
ings,” but rarely corporal punishment. Yet corporal punishment is
arguably the most pervasive harmful traditional practice children expe-
rience today. In nearly every part of the world, parents use physical
punishment to “discipline” their children. Such corporal punishment
typically takes the form of hitting a child with a bare hand or an object
such as a stick or paddle. A 2014 survey found that four of every five
children between the ages of two and 14—an estimated 1 billion glob-
ally—experience physical punishment in their home on a regular basis
(UNICEF 2014, 96).
The practice of corporal punishment is rooted in both cultural
norms and religious belief. Parents often believe that corporal pun-
ishment will teach children good behavior. They hit their children be-
cause it is socially accepted and because they themselves often were
hit growing up. Some religious teachings appear to justify the prac-
tice.1 The adage “spare the rod, spoil the child,” rooted in the Old Tes-
tament Book of Proverbs, suggests not only that corporal pun.
Database Project Charter/Business Case
Khalia Hart
University of Maryland Global Campus
February 21, 2020
Introduction
A database is an electronic collection of data that is built by a user so that they can access, update particular information in the database coherently or rapidly. Today firms employ integrated technology to increase their capacity to serve more clients, keep information well or effectively, organize activities according to the urgency or priorities, accounting records (Tüttelmann F, 2015). Most of the integrated technology depends on multiple databases that supply information relevant in making the decision. Since the business started using databases, their performance increase because the business decisions they make are sound and practical.
Business Problem
The supply chain management is one of the most complicated processes in the business and often at times due to need of detail it gets hard for the supply chain manager to keep the record of the work covered effectively, have enough data to make the decision and also have enough data to monitor the chain of operation (William, 2019). The supply chain has been so crucial for the business because it determines the performance of the company in the industry by assessing the quality of the product produced in the organization, cost of production, the time and effectiveness of distribution network, and overall production operation of the organization.
Operation management has been named as the leading cause of business failure caused by a lack of a system, which the manager or the supervisor can use to monitor the whole system. This is the problem to solve using the database (William, 2019). Using a database, the manager can observe or watch the entire chain from their office, make better decisions by fore- planning approach of the database also make changes within the system when there is the need to cut costs or making the process effective.
Project Scope
Most business organizations are spread in operation, and this is the challenge that makes the supply chain management complex (Tüttelmann F, 2015). This is because the chain is in different localities, and therefore, coordination of operation among the user or the workers becomes a challenge. Through the database system, the business will enjoy proper coordination using the wide Area Network (LAN). Through the LAN network, the company can link computers and cost-effectively share data and communication. Through this system, the company will have a connection and coordination of the processes within the organization. The number of connected devices will range from 10 to 1000, depending on the type of tools and system that is set to facilitate this connection.
Goals and objectives of the system
The purpose of the system that I want to install in the supply chain management is to;
· Monitoring of the supply chain- the system will enable the manager to monitor the system and every process in the order (Gattor.
Databases selected Multiple databases...Full Text (1223 .docxwhittemorelucilla
Databases selected: Multiple databases...
Full Text (1223 words)
Kraft Reformulates Oreo, Scores in China
Julie Jargon. Wall Street Journal. (Eastern edition). New York, N.Y.: May 1, 2008. pg. B.1
Abstract (Summary)
Kraft, the world's second largest food company by revenue, reported a 13% drop in first-quarter net income Wednesday
because of high commodity costs and increased spending on product research and marketing. Television commercials
showed kids twisting apart Oreo cookies, licking the cream center and dipping the chocolate cookie halves into glasses of
milk.
(c) 2008 Dow Jones & Company, Inc. Reproduced with permission of copyright owner. Further reproduction or distribution
is prohibited without permission.
Unlike its iconic American counterpart, the Oreo sold in China is frequently long, thin, four-layered and coated in chocolate. But
both kinds of cookies have one important thing in common: They are now best sellers.
The Oreo has long been the top-selling cookie in the U.S. market. But Kraft Foods Inc. had to reinvent the Oreo to make it sell
well in the world's most populous nation. While Chinese Oreo sales represent a tiny fraction of Kraft's $37.2 billion in annual
revenue, the cookie's journey in China exemplifies the kind of entrepreneurial transformation that Chief Executive Irene
Rosenfeld is trying to spread throughout the food giant.
Kraft, the world's second largest food company by revenue, reported a 13% drop in first-quarter net income Wednesday
because of high commodity costs and increased spending on product research and marketing. Its international business,
which now represents 40% of Kraft's revenue thanks to the company's recent acquisition of Groupe Danone's biscuits
business, was a bright spot in the quarter, aided by the weak dollar. Kraft's profit in the European Union rose 48%, excluding
special charges, and its profit in developing markets rose 57%.
To try to increase growth at the company, Ms. Rosenfeld has been putting more power in the hands of Kraft's various
business units around the globe, telling employees that decisions about Kraft products shouldn't all be made by people at the
Northfield, Ill., headquarters.
To take advantage of the European preference for dark chocolate, Kraft is introducing dark chocolate in Germany under its
Milka brand. Research in Russia showed that consumers there like premium instant coffee, so Kraft is positioning its Carte
Noire freeze-dried coffee as upscale by placing it at film festivals, fashion shows and operas. And in the Philippines, where
iced tea is popular, Kraft last year launched iced-tea-flavored Tang. Ms. Rosenfeld has also been encouraging marketers to
"reframe" product categories, no longer thinking, for example, that an Oreo has to be a round sandwich cookie.
Oreos were first introduced in 1912 in the U.S., but it wasn't until 1996 that Kraft introduced Oreos to Chinese consumers.
Nine years later, a makeover began. Shawn Warren, a 37-year-old .
Database Security Assessment Transcript You are a contracting office.docxwhittemorelucilla
Database Security Assessment Transcript You are a contracting officer's technical representative, a Security System Engineer, at a military hospital. Your department's leaders are adopting a new medical health care database management system. And they've tasked you to create a request for proposal for which different vendors will compete to build and provide to the hospital. A Request For Proposal, or RFP, is when an organization sends out a request for estimates on performing a function, delivering a technology, or providing a service or augmenting staff. RFPs are tailored to each endeavor but have common components and are important in the world of IT contracting and for procurement and acquisitions. To complete the RFP, you must determine the technical and security specifications for the system. You'll write the requirements for the overall system and also provide evaluation standards that will be used in rating the vendor's performance. Your learning will help you determine your system's requirements. As you discover methods of attack, you'll write prevention and remediation requirements for the vendor to perform. You must identify the different vulnerabilities the database should be hardened against.
Modern healthcare systems incorporate databases for effective and efficient management of patient healthcare. Databases are vulnerable to cyberattacks and must be designed and built with security controls from the beginning of the life cycle. Although hardening the database early in the life cycle is better, security is often incorporated after deployment, forcing hospital and healthcare IT professionals to play catch-up. Database security requirements should be defined at the requirements stage of acquisition and procurement.
System security engineers and other acquisition personnel can effectively assist vendors in building better healthcare database systems by specifying security requirements up front within the request for proposal (RFP). In this project, you will be developing an RFP for a new medical healthcare database management system.
Parts of your deliverables will be developed through your learning lab. You will submit the following deliverables for this project:
Deliverables
• An RFP, about 10 to 12 pages, in the form of a double-spaced Word document with citations in APA format. The page count does not include figures, diagrams, tables, or citations. There is no penalty for using additional pages. Include a minimum of six references. Include a reference list with the report.
• An MS-Excel spreadsheet with lab results.
There are 11 steps in this project. You will begin with the workplace scenario and continue with Step 1: "Provide an Overview for Vendors."
Step 1: Provide an Overview for Vendors
As the contracting officer's technical representative (COTR), you are the liaison between your hospital and potential vendors. It is your duty to provide vendors with an overview of your organization. To do so, identify infor.
Database Design Mid Term ExamSpring 2020Name ________________.docxwhittemorelucilla
Database Design Mid Term Exam
Spring 2020
Name: ____________________________
1. What is a data model?
A. method of storing files on a disk drive
B. simple representation of complex real-world data structures
C. name of system for designing software
D. method of designing invoices for customers
2. A Relationship Database system consists of 3 parts: a client front end for sending information to a command processor, a middle tier that interprets user commands, and a management frame work for storing, organizing and securing data.
a. True
b. False
3. What are the 3 components of a table:
A. Row, column, value
B. Row, top, bottom
C. Column, row, top
D. Top, middle, end
4. What does the column represent in a table?
a. Attribute of the table records
b. A complete record in the table
c. The system log from the database
d. A list of database tables
5. What does a row in the table represent?
a. A complete data record
b. List of system logs
c. A list of file systems on database server
d. The primary keys from all the tables.
6. Which of the following is an example of data definition language (DDL)?
a. UPDATE
b. V$SYSLOG
c. CREATE
d. DETAIN
7 . Which of the following is an example of data manipulation language (DML)?
A. SELECT
B. ABORT
C. GRANT
D. REVOKE
8. A _______ key is an attribute that uniquely identifies a record in a table.
9. A _______ key is an attribute that is a primary key in one table and is used as a reference in a second table to establish a relationship between the two tables.
10. When running a ‘SELECT’ join, what is returned from the table:
A. ROW
B. Column
C. single attribute
D. all tables in the database
11. When running a ‘PROJECT’ join, what is returned from the table:
A. COLUMN
B. ROW
C. Single Attribute
D. a list of tables in the database
12. What are the 3 types of relationships commonly shown on an entity relationship diagram?
A. 1 to 1
B. 1 to Many
C. Many to Many
D. All the above
E. None of the above
13. What is an entity relationship diagram (ERD)?
A. graphical representation of all entities in a database and how the entities are related
b. list of the log files in the database.
C. list of all the tablespace names in a database
D. A diagram that shows how data is written to a physical disk drive.
14. The definition of an attribute in a table that has no value is:
A. ZERO
b. NULL
c. ZILTCH
D. NONE
15. A ____________ attribute can either be stored on retrieve on an ad hoc basis.
16. Briefly describe the advantages and disadvantages of storing a derived attribute?
17. A database can process many types of data classifications. Which of the following is not a data classification or architecture that databases can process:
A. Structured
B. Semi-structured
C. undelimited
D. Unstructured
18. The process by which functional/partial dependency and transitive dependency is removed from a database table is called:
a. sharding
b. normalization
c. defragmentation
d. reallocation
.
Database Justification MemoCreate a 1-page memo for the .docxwhittemorelucilla
Database Justification Memo
C
reate
a
1-page
memo for the project stakeholder
explaining
why they should migrate towards a database driven application system
rather
than a static website.
Discuss
the benefits and drawbacks of the proposed changes
AND
Web Services Memo
Create
a 1-page memo to the project stakeholder on the importance of web services including security considerations, scalability, and compatibility.
.
Database Dump Script(Details of project in file)Mac1) O.docxwhittemorelucilla
Database Dump Script
(Details of project in file)
Mac:
1) Open up the terminal, or if already in MySQL, get out by typing "exit" and pressing enter.
2) Type:
/usr/local/mysql/bin/mysqldump -u root -p [database name] > /tmp/filename.txt
...where [database name] is the name of the database you want to export. When prompted, type the password. Check the /tmp file for your output.
.
Database Design 1. What is a data model A. method of sto.docxwhittemorelucilla
Database Design
1. What is a data model?
A. method of storing files on a disk drive
B. simple representation of complex real-world data structures
C. name of system for designing software
D. method of designing invoices for customers
2. Which of the following are the most important elements of a security program for databases:
a. Integrity, referential index, user rights
b. Confidentiality. Integrity and Availability
c. Availability, multi-master replication, high-bandwidth
d. DBA, System Admin, and PMO
3. Suppose that you have a table with a number of product sales. The product code may repeat in the table as it is likely the same product could be sold multiple times. If you want to produce a list of the unique products that are sold, you could use which of the following keywords in the SELECT statement:
A. LIKE
B. ORDERED BY
C. DISTINCT
D. DIFFERENT
4. What does the column represent in a table?
a. Attribute of the table records
b. A complete record in the table
c. The system log from the database
d. A list of database tables
5. What does a row in the table represent?
a. A complete data record
b. List of system logs
c. A list of file systems on database server
d. The primary keys from all the tables.
6. Which of the following is an example of data definition language (DDL)?
a. UPDATE
b. V$SYSLOG
c. CREATE
d. DETAIN
7 . Which of the following is an example of data manipulation language (DML)?
A. SELECT
B. ABORT
C. GRANT
D. REVOKE
8. A _____________ key is an attribute that uniquely identifies a record in a table.
9. A _____________ key is an attribute that is a primary key in one table and is used as a reference in a second table to establish a relationship between the two tables.
10. When running a ‘SELECT’ join, what is returned from the table:
A. ROW
B. Column
C. single attribute
D. all tables in the database
11. When running a ‘PROJECT’ join, what is returned from the table:
A. COLUMN
B. ROW
C. Single Attribute
D. a list of tables in the database
12. What are the 3 types of relationships commonly shown on an entity relationship diagram?
A. 1 to 1
B. 1 to Many
C. Many to Many
D. All the above
E. None of the above
13. What is an entity relationship diagram (ERD)?
A. graphical representation of all entities in a database and how the entities are related
b. list of the log files in the database.
C. list of all the tablespace names in a database
D. A diagram that shows how data is written to a physical disk drive.
14. The definition of an attribute in a table that has no value is:
A. ZERO
b. NULL
c. ZILTCH
D. NONE
15. A __________ attribute can either be stored on retrieve on an ad hoc basis.
16. Which of the following is not considered a characteristic of distributed management systems:
a. Concurrency Control
b. Business intelligence
c. Transaction management
d. query optimization
17. A database can process many types of data classifications. Which of the following is not a data class.
Database Administration
*
ObjectivesDiscuss the need for database administrationExplain the DBA’s responsibilities in formulating and enforcing database policies for access privileges, security, disaster planning, and archivingDiscuss the DBA’s administrative responsibilities for DBMS evaluation and selection, DBMS maintenance, data dictionary management, and trainingDiscuss the DBA’s technical responsibilities for database design, testing, and performance tuning
*
*
Introduction
FIGURE 8-1: DBA responsibilities
*
*
Database Policy Formulation and EnforcementDBAFormulates database policiesCommunicates policies to usersEnforces policiesPoliciesAccess privilegesSecurityDisaster planningArchiving
*
*
Access PrivilegesDBADetermines access privileges for all usersEnters appropriate authorization rules in DBMSSQL GRANT statementAccess privilege policyDocumented by DBAApproved by top-level managementCommunicated by DBA to all users
*
*
Access Privileges (continued)
FIGURE 8-2: Permitted and denied access privileges for Sam
*
*
Access Privileges (continued)
FIGURE 8-4: Permitted and denied access privileges for Valerie
*
*
SecurityPrevention of unauthorized access, intentional or accidental, to databaseDBACreates security policies and proceduresObtains management approval of policies and proceduresDistributes policies and procedures to authorized users
*
*
Security (continued)DBMS’s security featuresEncryptionAuthenticationAuthorizationsViewsAdditional security programs may be created or purchasedMonitoring of database usage to detect security violations
*
*
Security (continued)
FIGURE 8-5: Attempted security violation by Brady, who’s not an authorized user
*
*
Security (continued)
FIGURE 8-6: Attempted security violation by Paige, who’s authorized to access some customer data but is not authorized to access customer balances
*
*
Disaster PlanningDamage from physical incidentsSoftware/hardware/electricalNatural disastersDisaster recovery plan: ongoing and emergency actions and procedures to ensure data availability if a disaster occursHard drive failuresRedundant array of inexpensive/independent drives (RAID): database updates replicated to multiple hard drives
*
*
Disaster Planning (continued)Electrical power lossUninterruptible power supply (UPS): power source and power generatorDuplicate backup systemsHot site: completely equipped with duplicate hardware, software, and dataCan switch to hot site in minutes or hoursWarm site: duplicate hardware and software but not dataTakes longer to start processing
*
*
ArchivingGovernmental laws and regulations, for example:Sarbannes-Oxley ActPatriot ActHIPAAAuditing and financial requirementsData archive or archive: place where record of certain corporate data is keptStored on mass storage devicesCopies of archives and database backups must be stored off-site
*
*
Archiving (continued)
FIGURE 8-7: Movement of order 21617 from the.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
How to Split Bills in the Odoo 17 POS ModuleCeline George
Bills have a main role in point of sale procedure. It will help to track sales, handling payments and giving receipts to customers. Bill splitting also has an important role in POS. For example, If some friends come together for dinner and if they want to divide the bill then it is possible by POS bill splitting. This slide will show how to split bills in odoo 17 POS.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
DATABASE SYSTEMS DEVELOPMENT & IMPLEMENTATION PLAN1DATABASE SYS.docx
1. DATABASE SYSTEMS DEVELOPMENT &
IMPLEMENTATION PLAN 1
DATABASE SYSTEMS DEVELOPMENT &
IMPLEMENTATION PLAN 19
Table of Contents
1. Database System Overview 3
1.1 Business Environment 3
1.2 Database system goals and objective 4
2. Entity Relationship Model 7
2.1 Proposed entities 7
2.2 Business rules 8
2.3 Entity–Relationship Model 9
2.3.1 Relationship Types 9
2.3.2 Normalization form 12
2.3.3 Benefit of using database design 14
3. Structured Query Language (SQL) Scripts 15
3.1 Data definition language (DDL) 15
3.2 Data manipulation language (DML) 16
3.3 SQL report 17
3.4 Benefit of using database queries 19
4. Database Administration Plan 20
5. Future Database System Implementation Plan 21
6. References 22
1.
Database System Overview
1.1 Business Environment
Office Depot, Inc is an American retail store company founded
2. in 1986 and headquartered in Florida, United States. The
company provides office and school supplies with 1400 retail
stores and e-commerce sites. The supply includes everything to
their customer like latest technology, core school and office
supplies, printing and documenting service, furniture and other
services like cell phone repair, tech and marketing service etc.
Recently there were too many complaints from existing and new
customer that the online site is super glitch and lagging.
Another customer posted that the delivery did not come on the
scheduled day. And they cannot track down the order because
the website does not have tracking information. Also when the
website is down, customer service cannot help to see the order
details either and therefore, they feel it’s frustrating to order
online and therefore want to cancel the order. One other
customer posted in the website grievance section that the “label
maker” showed available in the stock even though it was out of
stock when verified with the customer service representative.
With every product not in stock, we lose opportunity of sale
which costs the store. This not only affect customer but also
affect company. We are so dependent on the data, most of the
time staff has to correct accounting report, sales estimates and
invoice customer manually which is very time-consuming in an
excel sheet.
In order to solve above issues and avoid sales loss, Office
Depot must have a database to store and maintain correct count
of the products. This database will help inventory management
i.e. tracking products, update inventory, find popular or less
popular item, loss prevention, track inventory status and
perform data mining. The staff can access this database via a
computerized database. (Gerald H., Importance of inventory
database retail)1.2 Database system goals and objective
The mission of the company is to become number one retail
company by creating inclusive environment and great shopping
experience where both customer and employees are respected
and valued. To achieve the retail store mission, we are
committed to provide secure and robust data base system for our
3. customer. This will monitor and maintain the data; prevent any
issues which bring obstruction to our customer; efficiently solve
queries or track order. The goals and objective related to the
database systems are as follows: (Gerald H., Importance of
inventory database retail)
· Order Tracking
· Efficient Inventory Management
· Loss prevention
· Manage customer data and relationship
· Secure and robust database system
· Efficiently respond to customer requests
The proposed database system will help tracking the product
which customer always complaint about. Based on the number
of product sold, it is easy to find out the most popular or non-
popular products. The sales figure can be retrieved from
database and then decision can be made which product to
include in the stock and which can be discontinued. With this
database system, it will be easier to check the number of
product available. These will also prevent theft from either
customer or employee. Managers can always track the item
whenever any discrepancies arise. Once only fewer items are
left in the stock, manager can decide to restock them. Not only
the number of items it will also shows if any item is available in
warehouse or coming to an expiration date and then proper
action can be taken. (Gerald H., Importance of inventory
database retail)
The database system will have some reporting capabilities,
using which we can analyse input data, track productivity,
check future trends and customer needs. This is often referred
as data mining or pattern finding. These patterns can show the
relation between a product sale and the time in a year. For
example, during school season some product sell better than
other time. This knowledge allows managers to order
appropriate product during a time in a year. Not only that it
shows the interest of user and while doing online shopping,
proper recommendation can be made based on the user interest.
4. Another important feature of database system is redundancy.
The same piece of data is stored at different places using master
node and slave node concept. This way the data is backup to the
salve node always with every write to the database. In case of
crash, the backup will help preventing data loss. With addition
of user access control the database more secure; redundancy
will make database more robust and prevent data loss; updated
database will help efficient tracking of data. (5 reasons why
your business needs a good database)
The goals of the store are to run a profitable business,
provide excellent customer service, retain existing customer,
best product along with the business expansion. In order to
achieve these goals, certain critical success factor (CSFs) must
be identified and set milestone. The CSFs for the business are
training to the staff, offer exclusive discount to the customer,
business expansion, sales target. Keeping CFs in mind, creating
small milestones will ensure that the retail store is providing
best shopping experience to the users. This can be achieved:
· If staff is made aware of how the online system works
· In case the website is down using simple query command data
can be retrieved using read access of database
· Awareness of mission and goals motives employee to know
customer needs
· Auditing the inventory and database builds confidence on the
system
· Timely feedback from employee as well customer helps to
improve the process
2. Entity Relationship Model
2.1 Proposed entities
Entities in a database design are defined as type of information
that is saved in the database. It can be a person, thing, locations
or object. Anything that is needed to fit in the database can be
accommodated in these categories. (Introduction to Database
Design) For our retail, following are the proposed entities:
Customer
5. A customer entity will have attributes like given game, last
name, email address, phone number, and postal address. Since
no two customers can have same customer id, therefore
customerID is the primary key.
Order
Since customer can order products online and each order will
have attributes like order number, ordered product and status.
For every order there will be an order ID for transaction.
Products
For the product, product id will be primary key and product
name, price and availability are attributes of the product.
Employee
An employee is uniquely identified by its employee id, so we
use employee id as primary key. Given names, last name, date
of birth, email address, postal address, and phone number are
different attribute for the employee.
Store
Store number located to different locations is unique, therefore
identified as primary key. Store address and store name are
attribute to the store. Based on the postal address of the
customer, particular store will send the products to the
customer.
Transactions
Every transaction id is unique to the order; therefore transaction
id is a unique key while customer name, date and total price are
attributes for the transaction.
2.2 Business rules
Documenting business rules are very important in the database
design. These rules allow the database designer to develop
relationship rules, understand business process, scope of data
and constraint to create a data model. They give proper
classification of entities, attribute and relationship between
different entities. (Business Rules) Following are the business
rules for our retail store:
1. A customer can do multiple orders
6. 2. A customer can talk to many employee and an employee can
handle to many customer
3. A person who has placed at least 1 order is a customer
4. Every order should have single transaction
5. Single order can have multiple products
6. Every product has a minimum reorder level and based on the
availability new order will be placed.
2.3 Entity–Relationship Model
Database design goes through different phases. These phases are
requirement analysis; conceptual design; normalization and
converting conceptual design e.g. ER model into actual
database. (The 4 phases that create database design)
Entity relationship model (ER) is a graphical or conceptual
representation of entities and their relationship with each other
in database design. And relationship is an association between
entities. There are three types of relationship:
2.3.1 Relationship Types
7. One to One
In this one instance of entity is associated with another instance
of entity. E.g. In this database, each employee is associated
with only one employee id.
One to Many
An instance can be associated with zero or many instance of
related entity. E.g. In this database, one order can have multiple
products.
Many to Many
In this relationship, one instance of an entity is associated with
zero, one or many instance of another associated entity. E.g. In
this database, one employee can handle many customers and one
customer can reach out to multiple employees for different
orders.
For the ER model of retail store, we will use crow’s foot
notation. In crow’s foot notation:
(Dybka P, 2016)
1. Many to many relationship is represented by three-pronged
crow’s foot symbol
2. One and mandatory relationship is represented by straight
line with perpendicular to the relationship line
3. Optional relationship is represented by empty circle
Fig (1) E-R model
2.3.2 Normalization form
Normalization is way of organizing data in a table in order to
reduce the redundancy and dependency of data. It short, it
divides larger tables into smaller one and links them using
proper relationship. It helps to create database which are cost
effective and have better security models.
CustomerName
PostalAddress
OrderNumber
8. StoreName
Janet Phil
A
X1, X2, X3
store_a
Robert Jones
B
X1, Y2,Y3
store_b
Amy Jackson
C
X1
store_c
Table (1)
1NF (First Normal Form) Rules
In 1NF, each table should contain single value and every record
should be unique value. (What is Normalization? 1NF, 2NF,
3NF & BCNF)
CustomerName
PostalAddress
OrderNumber
StoreName
Janet Phil
A
X1
store_a
Janet Phil
A
X2
store_a
Janet Phil
A
X3
store_a
Robert Jones
B
9. X1
store_b
Robert Jones
B
Y2
store_b
Robert Jones
C
Y3
store_b
Amy Jackson
C
X1
store_c
Table (2)
2NF (Second Normal Form) rules
2NF should satisfy 1NF rule and should have primary key. In
this, we divide our table into two different tables; one contains
customer information and another contains the product
purchased. CustomerID is a primary key in first table and can
be identified to associate customer id with the products.
CustomerID
CustomerName
PostalAddress
StoreName
cus_001
Janet Phil
A
store_a
cus_002
Robert Jones
B
store_b
cus_003
Amy Jackson
C
12. Table (7)
2.3.3 Benefit of using database design
One of the benefits of having this database design is data
integrity and fast retrieval from storage. Using 3NF
normalization, we will reduce the amount of redundant data and
create smaller database. Since there is less data stored, data
retrieval will be faster and user will have great experience using
website. 3. Structured Query Language (SQL) Scripts3.1 Data
definition language (DDL)
Data definition language (DDL) allows user to create and
modify database objects. The objects can be schemas, tables,
views etc. The common DDL querying in SQL are CREATE,
ALTER, and DROP. For office Depot Company, we will create
a database and then create table for all the entities we have
defined under E-R diagram.
-- Create database officeDepot
CREATE DATABASE officeDepot;
-- Switch the database
USE officeDepot;
-- Create Customer Table
CREATE TABLE tblcustomer(
CustomerID int IDENTITY(0001,1) NOT NULL PRIMARY
KEY, -- Start customer Id with 0001
GivenName varchar(255) NOT NULL,
LastName varchar(255),
EmailAddress varchar(255) NOT NULL,
PhoneNumber int,
PostalAddress varchar(255) NOT NULL,
);
13. -- Create employee table
CREATE TABLE tblemployee(
EmployeeID int IDENTITY(1000800,1) NOT NULL PRIMARY
KEY,
GivenName varchar(255) NOt NULL,
LastName varchar(255),
DateOfBirth date NOT NULL,
Designation varchar(255) NOT NULL,
EmailAddress varchar(255) NOT NULL,
PhoneNumber int,
PostalAddress varchar(255)
);
-- Create order table
CREATE TABLE tblorder(
OrderNumber int IDENTITY(00001,1) NOT NULL PRIMARY
KEY,
ProductName varchar(255) NOT NULL,
OrderStatus varchar(10) NOT NULL,
OrderDate varchar(10) DEFAULT GETDATE() FOREIGN KEY,
CustomerID int IDENTITY(0001,1) NOT NULL FOREIGN
KEY
);
-- Create product table
CREATE TABLE tblproduct(
ProductID int IDENTITY(00001,1) NOT NULL PRIMARY
KEY,
ProductName varchar(255) NOT NULL,
ProductAvailability int,
Price float NOT NULL
);
-- Create store table
CREATE TABLE tblstore(
StoreID int IDENTITY(00001,1) NOT NULL PRIMARY KEY,
14. StoreName varchar(255),
StoreAddress varchar(255),
StoreCountry varchar(255)
);
-- Create transaction table
CREATE TABLE tbltransaction(
TransactionID int IDENTITY(00001,1) NOT NULL PRIMARY
KEY,
OrderNumber int NOT NULL FOREIGN KEY,
PaymentDeatils varchar(10),
PaymentDate varchar(10) DEFAULT GETDATE(),
TotalPrice float NOT NULL
);3.2 Data manipulation language (DML)
Data manipulation language (DML) allows user to manipulate
data in a database using SQL language. The manipulation
includes inserting data, retrieving, modifying existing data or
deleting data. The common example of DML is SELECT,
INSERT, UPDATE, DELETE.
Use officeDepot
-- Insert 20 records in each table for testing purpose
DECLARE @count INT = 0;
WHILE @count < 20
BEGIN
-- Insert 20 records in customer table
INSERT INTO tblcustomer
(GivenName,LastName,EmailAddress,PostalAddress)
VALUES ('Lars', 'Monsen','[email protected]','20
Newyork');
-- Insert 20 records in employee table
INSERT INTO tblemployee
(GivenName,DateOfBirth,Designation,EmailAddress)
15. VALUES ('Lars', '01/01/1990','Customer service
executive','20 Texas');
-- Insert 20 records in order table
INSERT INTO tblorder (ProductNumber1,OrderStatus)
VALUES ('officefiles', 'In-PROGRESS');
-- Insert 20 records in product table
INSERT INTO tblproduct
(ProductName,ProductAvailability,Price)
VALUES ('officefiles', 5,[email protected]);
-- Insert 20 records in store table
INSERT INTO tblstore (StoreName)
VALUES ('a');
-- Insert 20 records in transaction table
INSERT INTO tbltransaction (PaymentDeatils,
PaymentDate, TotalPrice)
VALUES ('PAID', '01/02/2018',[email protected]);
SET @count = @count + 1;
END;
GO
--Delete an entire order by using the unique identifier for that
order.
BEGIN TRAN
DELETE FROM tblorder
WHERE OrderNumber=00001;
COMMIT TRAN
--Update the price of a product by using the unique identifier
for that product
BEGIN TRAN
16. UPDATE tblproduct
SET Price = 200
WHERE ProductID = 00001;
COMMIT TRAN
-- Disaply the product price in descending order
SELECT * FROM tblproduct
ORDER BY Price DESC;
-- Display the product where the availability count is less than
25
SELECT * FROM tblproduct
WHERE ProductAvailability<25;
-- For winter sale update the price to 10% discount
BEGIN TRAN
UPDATE tblproduct
SET Price = Price - (10/100)*Price
WHERE Price BETWEEN 100 AND 2000;
COMMIT TRAN3.3 SQL report
Database report is very important for both analysis and decision
making. This is not only important for the company to evaluate
sales report but also for the customer to see their order data
over a period of time. To extract data, a query is run and in this
case SQL is used to get the report of the sales or other
important information.
Use officeDepot
SELECT *
FROM tblorder INNER JOIN tblproduct ON
tblorder.ProdctName=tblproduct.ProdctName INNER JOIN
tblcustomer ON
tblorder.CustomerID=tblcustomer.CustomerID
GROUP BY tblcustomer.CustomerID
17. -- (1) Total revenue (sales) per month, grouped by customer
SELECT YEAR(OrderDate) [Year], MONTH(OrderDate)
[Month],
DATENAME(MONTH,OrderDate) [Month Name],
SUM(tblproduct.Price) [Sales Count]
FROM tblproduct
GROUP BY YEAR(OrderDate), MONTH(OrderDate),
DATENAME(MONTH, OrderDate), CustomerID
-- (2) Total revenue (sales) per month, grouped by product
SELECT YEAR(OrderDate) [Year], MONTH(OrderDate)
[Month],
DATENAME(MONTH,OrderDate) [Month Name],
SUM(tblproduct.Price) [Sales Count]
FROM tblproduct
GROUP BY YEAR(OrderDate), MONTH(OrderDate),
DATENAME(MONTH, OrderDate), ProdctName
-- (3) Get the product1 and product2 sales
SELECT CustomerID, [ProductName2] AS ProductName2,
[ProductName1] AS ProductName1
FROM
(SELECT CustomerID, Product, TotalPrice
FROM tblproductsale ) ps
PIVOT
(
SUM (TotalPrice)
FOR Product IN
([ProductName2], [ProductName1])
) AS pvt
-- (4) Get store count by country
18. SELECT COUNT(StoreID), StoreCountry
FROM tblstore
GROUP BY StoreCountry
ORDER BY COUNT(StoreID) DESC;
-- (5) Check the products count for less availability
SELECT * FROM tblproduct
WHERE ProductAvailability<25;
GROUP BY ProductName
-- (6) Get the payment details (Pending or Paid) by payment
date
SELECT COUNT(PaymentDeatils), PaymentDate
FROM tbltransaction
GROUP BY PaymentDate
ORDER BY COUNT(PaymentDeatils) DESC;
3.4 Benefit of using database queries
By creating a database with proper SQL query command for the
report, it is possible to do inventory management. This will help
to find if any product is low in stock. With the help of order id,
product delivery can be tracked well for the customer.
4. Database Administration Plan
5. Future Database System Implementation Plan
6. References
(1) 5 reasons why your business needs a good database.
Retrieved from: https://www.nibusinessinfo.co.uk/content/5-
reasons-why-your-business-needs-good-database
(2) Business Rules, Retrieved from:
http://databasemanagement.wikia.com/wiki/Business_Rules
(3) Data definition language. Retrieved from:
https://www.techopedia.com/definition/1175/data-definition-
language-ddl
19. (4) Data manipulation language. Retrieved from:
https://www.techopedia.com/definition/1179/data-manipulation-
language-dml
(5) Database report. Retrieved from:
https://www.techopedia.com/definition/24439/database-report
(6) Dybka P. 2016. Crow’s foot notation. Retrieved from:
http://www.vertabelo.com/blog/technical-articles/crow-s-foot-
notation
(7) Gerald H., Importance of inventory database retail.
Retrieved from: https://yourbusiness.azcentral.com/importance-
inventory-databases-retail-21485.html
(8) Introduction to Database Design, Retrieved from:
https://www.datanamic.com/support/lt-dez005-introduction-db-
modeling.html
(9) The 4 phases that create database design. Retrieved from:
https://medium.com/@deeplogica/the-4-phases-that-create-
database-design-31571111e683
(10) What is Normalization? 1NF, 2NF, 3NF & BCNF.
Retrieved from: https://www.guru99.com/database-
normalization.html
CustomerOrderEmployee
Customer
Order
Employee
M1
M2
M3
M4
CustomerProducts
Customer
Products
M1
M2
M3
M4
26. M1
M2
M3
M4
DATABASE SYSTEMS DEVELOPMENT &
IMPLEMENTATION PLAN 1
DATABASE SYSTEMS DEVELOPMENT &
IMPLEMENTATION PLAN 19
Table of Contents
1. Database System Overview 3
1.1 Business Environment 3
1.2 Database system goals and objective 4
2. Entity Relationship Model 7
2.1 Proposed entities 7
2.2 Business rules 8
2.3 Entity–Relationship Model 9
2.3.1 Relationship Types 9
2.3.2 Normalization form 12
2.3.3 Benefit of using database design 14
3. Structured Query Language (SQL) Scripts 15
3.1 Data definition language (DDL) 15
3.2 Data manipulation language (DML) 16
3.3 SQL report 17
3.4 Benefit of using database queries 19
4. Database Administration Plan 20
5. Future Database System Implementation Plan 21
6. References 22
1.
27. Database System Overview
1.1 Business Environment
Office Depot, Inc is an American retail store company founded
in 1986 and headquartered in Florida, United States. The
company provides office and school supplies with 1400 retail
stores and e-commerce sites. The supply includes everything to
their customer like latest technology, core school and office
supplies, printing and documenting service, furniture and other
services like cell phone repair, tech and marketing service etc.
Recently there were too many complaints from existing and new
customer that the online site is super glitch and lagging.
Another customer posted that the delivery did not come on the
scheduled day. And they cannot track down the order because
the website does not have tracking information. Also when the
website is down, customer service cannot help to see the order
details either and therefore, they feel it’s frustrating to order
online and therefore want to cancel the order. One other
customer posted in the website grievance section that the “label
maker” showed available in the stock even though it was out of
stock when verified with the customer service representative.
With every product not in stock, we lose opportunity of sale
which costs the store. This not only affect customer but also
affect company. We are so dependent on the data, most of the
time staff has to correct accounting report, sales estimates and
invoice customer manually which is very time-consuming in an
excel sheet.
In order to solve above issues and avoid sales loss, Office
Depot must have a database to store and maintain correct count
of the products. This database will help inventory management
i.e. tracking products, update inventory, find popular or less
popular item, loss prevention, track inventory status and
perform data mining. The staff can access this database via a
computerized database. (Gerald H., Importance of inventory
database retail)1.2 Database system goals and objective
The mission of the company is to become number one retail
28. company by creating inclusive environment and great shopping
experience where both customer and employees are respected
and valued. To achieve the retail store mission, we are
committed to provide secure and robust data base system for our
customer. This will monitor and maintain the data; prevent any
issues which bring obstruction to our customer; efficiently solve
queries or track order. The goals and objective related to the
database systems are as follows: (Gerald H., Importance of
inventory database retail)
· Order Tracking
· Efficient Inventory Management
· Loss prevention
· Manage customer data and relationship
· Secure and robust database system
· Efficiently respond to customer requests
The proposed database system will help tracking the product
which customer always complaint about. Based on the number
of product sold, it is easy to find out the most popular or non-
popular products. The sales figure can be retrieved from
database and then decision can be made which product to
include in the stock and which can be discontinued. With this
database system, it will be easier to check the number of
product available. These will also prevent theft from either
customer or employee. Managers can always track the item
whenever any discrepancies arise. Once only fewer items are
left in the stock, manager can decide to restock them. Not only
the number of items it will also shows if any item is available in
warehouse or coming to an expiration date and then proper
action can be taken. (Gerald H., Importance of inventory
database retail)
The database system will have some reporting capabilities,
using which we can analyse input data, track productivity,
check future trends and customer needs. This is often referred
as data mining or pattern finding. These patterns can show the
relation between a product sale and the time in a year. For
example, during school season some product sell better than
29. other time. This knowledge allows managers to order
appropriate product during a time in a year. Not only that it
shows the interest of user and while doing online shopping,
proper recommendation can be made based on the user interest.
Another important feature of database system is redundancy.
The same piece of data is stored at different places using master
node and slave node concept. This way the data is backup to the
salve node always with every write to the database. In case of
crash, the backup will help preventing data loss. With addition
of user access control the database more secure; redundancy
will make database more robust and prevent data loss; updated
database will help efficient tracking of data. (5 reasons why
your business needs a good database)
The goals of the store are to run a profitable business,
provide excellent customer service, retain existing customer,
best product along with the business expansion. In order to
achieve these goals, certain critical success factor (CSFs) must
be identified and set milestone. The CSFs for the business are
training to the staff, offer exclusive discount to the customer,
business expansion, sales target. Keeping CFs in mind, creating
small milestones will ensure that the retail store is providing
best shopping experience to the users. This can be achieved:
· If staff is made aware of how the online system works
· In case the website is down using simple query command data
can be retrieved using read access of database
· Awareness of mission and goals motives employee to know
customer needs
· Auditing the inventory and database builds confidence on the
system
· Timely feedback from employee as well customer helps to
improve the process
2. Entity Relationship Model
2.1 Proposed entities
Entities in a database design are defined as type of information
that is saved in the database. It can be a person, thing, locations
30. or object. Anything that is needed to fit in the database can be
accommodated in these categories. (Introduction to Database
Design) For our retail, following are the proposed entities:
Customer
A customer entity will have attributes like given game, last
name, email address, phone number, and postal address. Since
no two customers can have same customer id, therefore
customerID is the primary key.
Order
Since customer can order products online and each order will
have attributes like order number, ordered product and status.
For every order there will be an order ID for transaction.
Products
For the product, product id will be primary key and product
name, price and availability are attributes of the product.
Employee
An employee is uniquely identified by its employee id, so we
use employee id as primary key. Given names, last name, date
of birth, email address, postal address, and phone number are
different attribute for the employee.
Store
Store number located to different locations is unique, therefore
identified as primary key. Store address and store name are
attribute to the store. Based on the postal address of the
customer, particular store will send the products to the
customer.
Transactions
Every transaction id is unique to the order; therefore transaction
id is a unique key while customer name, date and total price are
attributes for the transaction.
2.2 Business rules
Documenting business rules are very important in the database
design. These rules allow the database designer to develop
relationship rules, understand business process, scope of data
and constraint to create a data model. They give proper
31. classification of entities, attribute and relationship between
different entities. (Business Rules) Following are the business
rules for our retail store:
1. A customer can do multiple orders
2. A customer can talk to many employee and an employee can
handle to many customer
3. A person who has placed at least 1 order is a customer
4. Every order should have single transaction
5. Single order can have multiple products
6. Every product has a minimum reorder level and based on the
availability new order will be placed.
2.3 Entity–Relationship Model
Database design goes through different phases. These phases are
requirement analysis; conceptual design; normalization and
converting conceptual design e.g. ER model into actual
database. (The 4 phases that create database design)
Entity relationship model (ER) is a graphical or conceptual
representation of entities and their relationship with each other
32. in database design. And relationship is an association between
entities. There are three types of relationship:
2.3.1 Relationship Types
One to One
In this one instance of entity is associated with another instance
of entity. E.g. In this database, each employee is associated
with only one employee id.
One to Many
An instance can be associated with zero or many instance of
related entity. E.g. In this database, one order can have multiple
products.
Many to Many
In this relationship, one instance of an entity is associated with
zero, one or many instance of another associated entity. E.g. In
this database, one employee can handle many customers and one
customer can reach out to multiple employees for different
orders.
For the ER model of retail store, we will use crow’s foot
notation. In crow’s foot notation:
(Dybka P, 2016)
1. Many to many relationship is represented by three-pronged
crow’s foot symbol
2. One and mandatory relationship is represented by straight
line with perpendicular to the relationship line
3. Optional relationship is represented by empty circle
Fig (1) E-R model
2.3.2 Normalization form
Normalization is way of organizing data in a table in order to
reduce the redundancy and dependency of data. It short, it
divides larger tables into smaller one and links them using
proper relationship. It helps to create database which are cost
33. effective and have better security models.
CustomerName
PostalAddress
OrderNumber
StoreName
Janet Phil
A
X1, X2, X3
store_a
Robert Jones
B
X1, Y2,Y3
store_b
Amy Jackson
C
X1
store_c
Table (1)
1NF (First Normal Form) Rules
In 1NF, each table should contain single value and every record
should be unique value. (What is Normalization? 1NF, 2NF,
3NF & BCNF)
CustomerName
PostalAddress
OrderNumber
StoreName
Janet Phil
A
X1
store_a
Janet Phil
A
X2
store_a
Janet Phil
A
34. X3
store_a
Robert Jones
B
X1
store_b
Robert Jones
B
Y2
store_b
Robert Jones
C
Y3
store_b
Amy Jackson
C
X1
store_c
Table (2)
2NF (Second Normal Form) rules
2NF should satisfy 1NF rule and should have primary key. In
this, we divide our table into two different tables; one contains
customer information and another contains the product
purchased. CustomerID is a primary key in first table and can
be identified to associate customer id with the products.
CustomerID
CustomerName
PostalAddress
StoreName
cus_001
Janet Phil
A
store_a
cus_002
Robert Jones
B
37. Table (7)
2.3.3 Benefit of using database design
One of the benefits of having this database design is data
integrity and fast retrieval from storage. Using 3NF
normalization, we will reduce the amount of redundant data and
create smaller database. Since there is less data stored, data
retrieval will be faster and user will have great experience using
website. 3. Structured Query Language (SQL) Scripts3.1 Data
definition language (DDL)
Data definition language (DDL) allows user to create and
modify database objects. The objects can be schemas, tables,
views etc. The common DDL querying in SQL are CREATE,
ALTER, and DROP. For office Depot Company, we will create
a database and then create table for all the entities we have
defined under E-R diagram.
-- Create database officeDepot
CREATE DATABASE officeDepot;
-- Switch the database
USE officeDepot;
-- Create Customer Table
CREATE TABLE tblcustomer(
CustomerID int IDENTITY(0001,1) NOT NULL PRIMARY
KEY, -- Start customer Id with 0001
GivenName varchar(255) NOT NULL,
LastName varchar(255),
EmailAddress varchar(255) NOT NULL,
38. PhoneNumber int,
PostalAddress varchar(255) NOT NULL,
);
-- Create employee table
CREATE TABLE tblemployee(
EmployeeID int IDENTITY(1000800,1) NOT NULL PRIMARY
KEY,
GivenName varchar(255) NOt NULL,
LastName varchar(255),
DateOfBirth date NOT NULL,
Designation varchar(255) NOT NULL,
EmailAddress varchar(255) NOT NULL,
PhoneNumber int,
PostalAddress varchar(255)
);
-- Create order table
CREATE TABLE tblorder(
OrderNumber int IDENTITY(00001,1) NOT NULL PRIMARY
KEY,
ProductName varchar(255) NOT NULL,
OrderStatus varchar(10) NOT NULL,
OrderDate varchar(10) DEFAULT GETDATE() FOREIGN KEY,
CustomerID int IDENTITY(0001,1) NOT NULL FOREIGN
KEY
);
-- Create product table
CREATE TABLE tblproduct(
ProductID int IDENTITY(00001,1) NOT NULL PRIMARY
KEY,
ProductName varchar(255) NOT NULL,
ProductAvailability int,
Price float NOT NULL
);
39. -- Create store table
CREATE TABLE tblstore(
StoreID int IDENTITY(00001,1) NOT NULL PRIMARY KEY,
StoreName varchar(255),
StoreAddress varchar(255),
StoreCountry varchar(255)
);
-- Create transaction table
CREATE TABLE tbltransaction(
TransactionID int IDENTITY(00001,1) NOT NULL PRIMARY
KEY,
OrderNumber int NOT NULL FOREIGN KEY,
PaymentDeatils varchar(10),
PaymentDate varchar(10) DEFAULT GETDATE(),
TotalPrice float NOT NULL
);3.2 Data manipulation language (DML)
Data manipulation language (DML) allows user to manipulate
data in a database using SQL language. The manipulation
includes inserting data, retrieving, modifying existing data or
deleting data. The common example of DML is SELECT,
INSERT, UPDATE, DELETE.
Use officeDepot
-- Insert 20 records in each table for testing purpose
DECLARE @count INT = 0;
WHILE @count < 20
BEGIN
-- Insert 20 records in customer table
INSERT INTO tblcustomer
(GivenName,LastName,EmailAddress,PostalAddress)
VALUES ('Lars', 'Monsen','[email protected]','20
Newyork');
40. -- Insert 20 records in employee table
INSERT INTO tblemployee
(GivenName,DateOfBirth,Designation,EmailAddress)
VALUES ('Lars', '01/01/1990','Customer service
executive','20 Texas');
-- Insert 20 records in order table
INSERT INTO tblorder (ProductNumber1,OrderStatus)
VALUES ('officefiles', 'In-PROGRESS');
-- Insert 20 records in product table
INSERT INTO tblproduct
(ProductName,ProductAvailability,Price)
VALUES ('officefiles', 5,[email protected]);
-- Insert 20 records in store table
INSERT INTO tblstore (StoreName)
VALUES ('a');
-- Insert 20 records in transaction table
INSERT INTO tbltransaction (PaymentDeatils,
PaymentDate, TotalPrice)
VALUES ('PAID', '01/02/2018',[email protected]);
SET @count = @count + 1;
END;
GO
--Delete an entire order by using the unique identifier for that
order.
BEGIN TRAN
DELETE FROM tblorder
WHERE OrderNumber=00001;
COMMIT TRAN
41. --Update the price of a product by using the unique identifier
for that product
BEGIN TRAN
UPDATE tblproduct
SET Price = 200
WHERE ProductID = 00001;
COMMIT TRAN
-- Disaply the product price in descending order
SELECT * FROM tblproduct
ORDER BY Price DESC;
-- Display the product where the availability count is less than
25
SELECT * FROM tblproduct
WHERE ProductAvailability<25;
-- For winter sale update the price to 10% discount
BEGIN TRAN
UPDATE tblproduct
SET Price = Price - (10/100)*Price
WHERE Price BETWEEN 100 AND 2000;
COMMIT TRAN3.3 SQL report
Database report is very important for both analysis and decision
making. This is not only important for the company to evaluate
sales report but also for the customer to see their order data
over a period of time. To extract data, a query is run and in this
case SQL is used to get the report of the sales or other
important information.
Use officeDepot
SELECT *
FROM tblorder INNER JOIN tblproduct ON
42. tblorder.ProdctName=tblproduct.ProdctName INNER JOIN
tblcustomer ON
tblorder.CustomerID=tblcustomer.CustomerID
GROUP BY tblcustomer.CustomerID
-- (1) Total revenue (sales) per month, grouped by customer
SELECT YEAR(OrderDate) [Year], MONTH(OrderDate)
[Month],
DATENAME(MONTH,OrderDate) [Month Name],
SUM(tblproduct.Price) [Sales Count]
FROM tblproduct
GROUP BY YEAR(OrderDate), MONTH(OrderDate),
DATENAME(MONTH, OrderDate), CustomerID
-- (2) Total revenue (sales) per month, grouped by product
SELECT YEAR(OrderDate) [Year], MONTH(OrderDate)
[Month],
DATENAME(MONTH,OrderDate) [Month Name],
SUM(tblproduct.Price) [Sales Count]
FROM tblproduct
GROUP BY YEAR(OrderDate), MONTH(OrderDate),
DATENAME(MONTH, OrderDate), ProdctName
-- (3) Get the product1 and product2 sales
SELECT CustomerID, [ProductName2] AS ProductName2,
[ProductName1] AS ProductName1
FROM
(SELECT CustomerID, Product, TotalPrice
FROM tblproductsale ) ps
PIVOT
(
SUM (TotalPrice)
FOR Product IN
([ProductName2], [ProductName1])
43. ) AS pvt
-- (4) Get store count by country
SELECT COUNT(StoreID), StoreCountry
FROM tblstore
GROUP BY StoreCountry
ORDER BY COUNT(StoreID) DESC;
-- (5) Check the products count for less availability
SELECT * FROM tblproduct
WHERE ProductAvailability<25;
GROUP BY ProductName
-- (6) Get the payment details (Pending or Paid) by payment
date
SELECT COUNT(PaymentDeatils), PaymentDate
FROM tbltransaction
GROUP BY PaymentDate
ORDER BY COUNT(PaymentDeatils) DESC;
3.4 Benefit of using database queries
By creating a database with proper SQL query command for the
report, it is possible to do inventory management. This will help
to find if any product is low in stock. With the help of order id,
product delivery can be tracked well for the customer.
4. Database Administration Plan
5. Future Database System Implementation Plan
6. References
(1) 5 reasons why your business needs a good database.
Retrieved from: https://www.nibusinessinfo.co.uk/content/5-
reasons-why-your-business-needs-good-database
(2) Business Rules, Retrieved from:
44. http://databasemanagement.wikia.com/wiki/Business_Rules
(3) Data definition language. Retrieved from:
https://www.techopedia.com/definition/1175/data-definition-
language-ddl
(4) Data manipulation language. Retrieved from:
https://www.techopedia.com/definition/1179/data-manipulation-
language-dml
(5) Database report. Retrieved from:
https://www.techopedia.com/definition/24439/database-report
(6) Dybka P. 2016. Crow’s foot notation. Retrieved from:
http://www.vertabelo.com/blog/technical-articles/crow-s-foot-
notation
(7) Gerald H., Importance of inventory database retail.
Retrieved from: https://yourbusiness.azcentral.com/importance-
inventory-databases-retail-21485.html
(8) Introduction to Database Design, Retrieved from:
https://www.datanamic.com/support/lt-dez005-introduction-db-
modeling.html
(9) The 4 phases that create database design. Retrieved from:
https://medium.com/@deeplogica/the-4-phases-that-create-
database-design-31571111e683
(10) What is Normalization? 1NF, 2NF, 3NF & BCNF.
Retrieved from: https://www.guru99.com/database-
normalization.html
CustomerOrderEmployee
Customer
Order
Employee
M1
M2
M3
M4
CustomerProducts
Customer
Products