This document describes a database design project for Ayi Dumplings, an online dumpling and beverage store based in New Jersey. The store sells various types of dumplings and sources raw materials from a supplier twice a week. The database design includes tables for customers, orders, products, invoices and more. Conceptual and logical database models are created to normalize the data.
The document describes the creation of a database called "Ben" with tables for customers, order items, orders, products, and vendors. It includes code to define the tables, relationships, and primary/foreign keys. Sample data is then inserted into each table to populate the database.
Table Manipulation in SQL
The following SQL statements are showing the use of opening a table, and inserting records in it.
If you are looking for any help to solve your SQL Programming Assignment or if you need any guidance to prepare your complex SQL Programming project, please discuss your assignment/project with programmingassignments.com . Email your SQL Programming homework to info@programmingassignments.comto get best in class help on instant basis.
Restaurant Management System Database Project (Oracle).
1. ER Diagram Scenario
2. ER Diagram
3. Normalization of Database and Functional Dependencies
4. Tables screen shot with data
5. Query with data screenshot
6. Enable ,disable constraints of table with screenshot
The document outlines the plans for a school performance group, including songs chosen, costumes designed for characters like Mickey Mouse and Minnie Mouse, a list of musical instruments in the group including materials and procedures needed to make one instrument, details on the group's formation and ending for their dance, and plans to create a poster with their band name.
The document discusses recommendations for centralizing the staffing function under HR and improving the training and development function. It asks what the new processes would look like, potential challenges, plans to overcome challenges, how to position the changes to demonstrate performance impacts, and anticipated results. Centralizing staffing and improving development are aimed to boost organizational performance.
This document is an individual project report on prefabricated building systems. It includes an acknowledgement section thanking various people for their contributions. It also includes a table of contents outlining the various sections of the report such as the introduction, literature review on prefabricated systems, research methodology, and conclusions. The introduction provides background on the use of prefabricated systems in construction and their benefits over traditional methods.
Originally presented for an Association of Psychological Type (APTi) session, this presentation provides an overview of type/MBTI and project management, by the author of CPP’s "Introduction to Type and Project Management." Slides include examples of exercises that type professionals can use with groups.
The document summarizes a research project on quantity surveying software trends and their impact on quantity surveyors. It discusses popular quantity surveying programs like Excel, WinQS, QSPlus, AutoCAD, and SketchUp. It analyzes how these software help with tasks like bills of quantities, measurement sheets, and summaries. It also examines how software trends like building information modeling (BIM) impact the quantity surveying profession. The research found that BIM adoption among Sri Lankan quantity surveyors is still relatively low. It provides suggestions from Sri Lankan quantity surveyors on improving software. The goal of the project is to increase awareness of software trends and promote their use to help quantity surveyors in Sri Lanka work
The document describes the creation of a database called "Ben" with tables for customers, order items, orders, products, and vendors. It includes code to define the tables, relationships, and primary/foreign keys. Sample data is then inserted into each table to populate the database.
Table Manipulation in SQL
The following SQL statements are showing the use of opening a table, and inserting records in it.
If you are looking for any help to solve your SQL Programming Assignment or if you need any guidance to prepare your complex SQL Programming project, please discuss your assignment/project with programmingassignments.com . Email your SQL Programming homework to info@programmingassignments.comto get best in class help on instant basis.
Restaurant Management System Database Project (Oracle).
1. ER Diagram Scenario
2. ER Diagram
3. Normalization of Database and Functional Dependencies
4. Tables screen shot with data
5. Query with data screenshot
6. Enable ,disable constraints of table with screenshot
The document outlines the plans for a school performance group, including songs chosen, costumes designed for characters like Mickey Mouse and Minnie Mouse, a list of musical instruments in the group including materials and procedures needed to make one instrument, details on the group's formation and ending for their dance, and plans to create a poster with their band name.
The document discusses recommendations for centralizing the staffing function under HR and improving the training and development function. It asks what the new processes would look like, potential challenges, plans to overcome challenges, how to position the changes to demonstrate performance impacts, and anticipated results. Centralizing staffing and improving development are aimed to boost organizational performance.
This document is an individual project report on prefabricated building systems. It includes an acknowledgement section thanking various people for their contributions. It also includes a table of contents outlining the various sections of the report such as the introduction, literature review on prefabricated systems, research methodology, and conclusions. The introduction provides background on the use of prefabricated systems in construction and their benefits over traditional methods.
Originally presented for an Association of Psychological Type (APTi) session, this presentation provides an overview of type/MBTI and project management, by the author of CPP’s "Introduction to Type and Project Management." Slides include examples of exercises that type professionals can use with groups.
The document summarizes a research project on quantity surveying software trends and their impact on quantity surveyors. It discusses popular quantity surveying programs like Excel, WinQS, QSPlus, AutoCAD, and SketchUp. It analyzes how these software help with tasks like bills of quantities, measurement sheets, and summaries. It also examines how software trends like building information modeling (BIM) impact the quantity surveying profession. The research found that BIM adoption among Sri Lankan quantity surveyors is still relatively low. It provides suggestions from Sri Lankan quantity surveyors on improving software. The goal of the project is to increase awareness of software trends and promote their use to help quantity surveyors in Sri Lanka work
The document discusses self-management strategies for changing one's own behavior. It defines self-management and explains that it involves using behavior modification techniques to control a target behavior. The document outlines several self-management strategies including goal setting, self-monitoring, antecedent manipulation, behavioral contracting, consequences, social support, and self-instructions. It provides details on how to develop a self-management plan, selecting the appropriate strategy, evaluating progress, and maintaining behavior change over time.
This document summarizes a webinar presentation about competency management in organizations. The webinar covered:
1) Understanding competencies as underlying characteristics like knowledge, skills, and attributes that lead to effective job performance.
2) Why competencies are important for aligning human resources systems like staffing, rewards, and development with business goals and strategy.
3) Guidelines for developing an effective competency model, including aligning it with business needs, translating concepts into observable behaviors, and using it across the organization.
The document discusses managerial competencies and their importance for effective management. It defines competency as a combination of knowledge, skills, behaviors and attitudes that contribute to effectiveness. Managerial competencies are sets of abilities needed to be effective in various positions and organizations. Six core competencies are identified: communication, planning and administration, teamwork, strategic action, multicultural awareness, and self-management. Each competency is then defined and its components or foundations are explained.
The document discusses the three levels of management in an organization: top level management, middle level management, and lower level/supervisory management. It describes the roles and responsibilities at each level. Top level management focuses on planning, coordinating, and controlling overall activities. Middle level management implements plans and oversees departments. Lower level management directly oversees workers and operations.
Aggregate planning involves developing a preliminary production schedule over the next 6-18 months to satisfy forecasted demand at minimum cost. It considers targeted sales, production levels, inventory levels and backlogs. The objectives are to minimize costs and changes while maximizing profits, customer service and resource utilization. Common strategies are level, which maintains steady output/employment, or chase, which matches demand period to period. Techniques to develop plans include linear programming, linear decision rules and simulation models.
There are three main project management structures: functional organization, dedicated project team, and matrix structure. In a functional organization, the project is managed within the existing functional hierarchy of the parent organization, providing flexibility but potentially slower responses. A dedicated project team operates independently as its own unit, keeping the team focused but being more expensive. A matrix structure combines functional and project management, allowing for resource sharing across projects but potentially causing tensions between managers.
There are three main types of businesses or organizations: public sector, private sector, and voluntary sector. The public sector is owned and run by the government to provide essential services to the public, such as health, education, and infrastructure. It is funded by taxpayer money. The private sector consists of for-profit businesses owned and run by individuals or shareholders, with goals of profit and growth. The voluntary sector includes non-profit organizations like charities that aim to help particular groups through fundraising and donations.
Success of the organization depends on the experience and competence of the officers of the organization. Different forms of organizations are Line, military or scalar organization, functional organization, line and staff organization, committee of organization, project organization, matrix organization and freeform organization.
For more such innovative content on management studies, join WeSchool PGDM-DLP Program: http://bit.ly/ZEcPAc
Managers are responsible for overseeing organizational resources to achieve goals. The four main functions of management are planning, organizing, leading, and controlling. Planning involves setting goals and strategies, organizing establishes the organizational structure, leading provides vision and motivation, and controlling monitors performance. Managers at different levels have varying responsibilities, from first-line managers overseeing operations to top managers establishing company-wide goals. Globalization and technology are changing management roles and requiring new skills.
The document provides an overview of competency modeling, including:
1. A brief history of competency modeling from its origins in the 1950s to its maturation and widespread adoption by Fortune 500 companies today.
2. Definitions of key terms like competency, competence, and components of competency.
3. Examples of competency models and frameworks, and how they are used for various human resource functions.
4. The benefits of implementing competency-based approaches for individuals, companies, and managers.
3. How competency modeling is linked to focused training and development by identifying competency gaps to address.
The document discusses Taylor series expansions (desarrollos limitados) and provides 15 examples of applying the Taylor formula to common functions like exponential, logarithmic, trigonometric and hyperbolic functions. Specifically, it gives the Taylor series expansion of each function centered around 0 and in terms of powers of x, along with the little-oh notation describing the remainder term.
El resumen describe los conceptos básicos de la inmunohistoquímica y su aplicación en el carcinoma de laringe. Explica que la inmunohistoquímica utiliza anticuerpos para detectar antígenos en tejidos, superando las limitaciones de la inmunofluorescencia. Describe los métodos directo, indirecto y peroxidasa-antiperoxidasa/avidina-biotina para mejorar la calidad de la marcación. También menciona que la inmunohistoquímica ha aportado datos en el diagnóstico del carcinoma de
This CV summarizes Ingrid Naidoo's experience working in accounting roles in South Africa from 1992 to 2016, and currently teaching English in China. She has over 20 years of experience in accounts payable, credit control, bookkeeping, and debtors/creditors reconciliation for automotive companies. Her education includes a TEFL certificate and partial completion of a B.Com in accounts. She provides two references from past employers in South Africa.
The document defines the schema for a database that stores information about customers, orders, order items, products, and vendors. It creates the necessary tables, defines primary and foreign keys, and populates the tables with sample data. This includes tables for customers, vendors, products, orders, and order items, along with the relationships between them.
The document defines the schema for a database that stores information about customers, orders, order items, products and vendors. It creates the necessary tables, defines primary and foreign keys, and populates the tables with sample data. This includes creating tables for customers, orders, order items, products and vendors, defining relationships between the tables through primary and foreign keys, and inserting records into each table.
Script de creación de la base de datos pedidos en MS AccessZantiago Thrash
The document describes the creation of a database in MS Access for orders. It includes tables for employees, suppliers, categories, clients, orders, order details, and products. Data is inserted into these tables to populate the database. Relationships between the tables are defined using foreign keys.
When debugging the code, use Drop table statementsto drop pr.docxaryan532920
/* When debugging the code, use Drop table statements
to drop previously created tables.
When code is re-run, new tables will be created.
This allows easy debugging. */
Drop table dept cascade constraints;
Drop table emp cascade constraints;
Drop table customer cascade constraints;
Drop table product cascade constraints;
Drop table ord cascade constraints;
Drop table item cascade constraints;
Drop table salgrade cascade constraints;
Drop table bonus cascade constraints;
Drop table price cascade constraints;
Drop table dummy cascade constraints;
Purge RecycleBin;
CREATE TABLE DEPT (
DEPTNO NUMBER(2) NOT NULL,
DNAME VARCHAR2(14),
LOC VARCHAR2(13),
CONSTRAINT DEPT_PRIMARY_KEY PRIMARY KEY (DEPTNO));
INSERT INTO DEPT VALUES (10,'ACCOUNTING','NEW YORK');
INSERT INTO DEPT VALUES (20,'RESEARCH','DALLAS');
INSERT INTO DEPT VALUES (30,'SALES','CHICAGO');
INSERT INTO DEPT VALUES (40,'OPERATIONS','BOSTON');
CREATE TABLE EMP (
EMPNO NUMBER(4) NOT NULL,
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
MGR NUMBER(4) CONSTRAINT EMP_MGR_FK REFERENCES EMP (EMPNO),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2) NOT NULL,
CONSTRAINT EMP_DEPTNO_FK FOREIGN KEY (DEPTNO) REFERENCES DEPT (DEPTNO),
CONSTRAINT EMP_EMPNO_PK PRIMARY KEY (EMPNO));
INSERT INTO EMP VALUES (7839,'KING','PRESIDENT',NULL,TO_DATE('17-NOV-2011','DD-MON-YYYY'),15000,NULL,10);
INSERT INTO EMP VALUES (7698,'Blake','MANAGER',7839,TO_DATE('1-MAY-2012','DD-MON-YYYY'),6850,NULL,30);
INSERT INTO EMP VALUES (7782,'CLARK','MANAGER',7839,TO_DATE('9-JUN-2013','DD-MON-YYYY'),5450,NULL,10);
INSERT INTO EMP VALUES (7566,'Jones','MANAGER',7839,TO_DATE('2-APR-2011','DD-MON-YYYY'),5975,NULL,20);
INSERT INTO EMP VALUES (7654,'Martin','SALESMAN',7698,TO_DATE('28-SEP-2012','DD-MON-YYYY'),4250,27400,30);
INSERT INTO EMP VALUES (7499,'ALLEN','SALESMAN',7698,TO_DATE('20-FEB-2013','DD-MON-YYYY'),3600,16300,30);
INSERT INTO EMP VALUES (7844,'TURNER','SALESMAN',7698,TO_DATE('8-SEP-2014','DD-MON-YYYY'),3500,0,30);
INSERT INTO EMP VALUES (7900,'James','CLERK',7698,TO_DATE('3-DEC-2015','DD-MON-YYYY'),4950,NULL,30);
INSERT INTO EMP VALUES (7521,'WARD','SALESMAN',7698,TO_DATE('22-FEB-2016','DD-MON-YYYY'),3250,55500,30);
INSERT INTO EMP VALUES (7902,'ford','ANALYST',7566,TO_DATE('3-DEC-2016','DD-MON-YYYY'),6000,NULL,20);
INSERT INTO EMP VALUES (7369,'SMITH','CLERK',7902,TO_DATE('17-DEC-2015','DD-MON-YYYY'),3800,NULL,20);
INSERT INTO EMP VALUES (7788,'SCOTT','ANALYST',7566,TO_DATE('09-DEC-2014','DD-MON-YYYY'),6000,NULL,20);
INSERT INTO EMP VALUES (7876,'ADAMS','CLERK',7788,TO_DATE('12-JAN-2013','DD-MON-YYYY'),4100,NULL,20);
INSERT INTO EMP VALUES (7934,'MILLER','CLERK',7782,TO_DATE('23-JAN-2016','DD-MON-YYYY'),4300,NULL,10);
CREATE TABLE BONUS (
ENAME VARCHAR2(10),
JOB ...
SQL SQL 2) Add 25 CUSTOMERSs so that you now have 50 total..docxrafbolet0
The document contains SQL code that inserts 25 new customers and 25 new vehicles into database tables to increase the total numbers of customers and vehicles to 50 each. The code provides details of the customer and vehicle records being inserted such as names, addresses, vehicle details.
The document discusses self-management strategies for changing one's own behavior. It defines self-management and explains that it involves using behavior modification techniques to control a target behavior. The document outlines several self-management strategies including goal setting, self-monitoring, antecedent manipulation, behavioral contracting, consequences, social support, and self-instructions. It provides details on how to develop a self-management plan, selecting the appropriate strategy, evaluating progress, and maintaining behavior change over time.
This document summarizes a webinar presentation about competency management in organizations. The webinar covered:
1) Understanding competencies as underlying characteristics like knowledge, skills, and attributes that lead to effective job performance.
2) Why competencies are important for aligning human resources systems like staffing, rewards, and development with business goals and strategy.
3) Guidelines for developing an effective competency model, including aligning it with business needs, translating concepts into observable behaviors, and using it across the organization.
The document discusses managerial competencies and their importance for effective management. It defines competency as a combination of knowledge, skills, behaviors and attitudes that contribute to effectiveness. Managerial competencies are sets of abilities needed to be effective in various positions and organizations. Six core competencies are identified: communication, planning and administration, teamwork, strategic action, multicultural awareness, and self-management. Each competency is then defined and its components or foundations are explained.
The document discusses the three levels of management in an organization: top level management, middle level management, and lower level/supervisory management. It describes the roles and responsibilities at each level. Top level management focuses on planning, coordinating, and controlling overall activities. Middle level management implements plans and oversees departments. Lower level management directly oversees workers and operations.
Aggregate planning involves developing a preliminary production schedule over the next 6-18 months to satisfy forecasted demand at minimum cost. It considers targeted sales, production levels, inventory levels and backlogs. The objectives are to minimize costs and changes while maximizing profits, customer service and resource utilization. Common strategies are level, which maintains steady output/employment, or chase, which matches demand period to period. Techniques to develop plans include linear programming, linear decision rules and simulation models.
There are three main project management structures: functional organization, dedicated project team, and matrix structure. In a functional organization, the project is managed within the existing functional hierarchy of the parent organization, providing flexibility but potentially slower responses. A dedicated project team operates independently as its own unit, keeping the team focused but being more expensive. A matrix structure combines functional and project management, allowing for resource sharing across projects but potentially causing tensions between managers.
There are three main types of businesses or organizations: public sector, private sector, and voluntary sector. The public sector is owned and run by the government to provide essential services to the public, such as health, education, and infrastructure. It is funded by taxpayer money. The private sector consists of for-profit businesses owned and run by individuals or shareholders, with goals of profit and growth. The voluntary sector includes non-profit organizations like charities that aim to help particular groups through fundraising and donations.
Success of the organization depends on the experience and competence of the officers of the organization. Different forms of organizations are Line, military or scalar organization, functional organization, line and staff organization, committee of organization, project organization, matrix organization and freeform organization.
For more such innovative content on management studies, join WeSchool PGDM-DLP Program: http://bit.ly/ZEcPAc
Managers are responsible for overseeing organizational resources to achieve goals. The four main functions of management are planning, organizing, leading, and controlling. Planning involves setting goals and strategies, organizing establishes the organizational structure, leading provides vision and motivation, and controlling monitors performance. Managers at different levels have varying responsibilities, from first-line managers overseeing operations to top managers establishing company-wide goals. Globalization and technology are changing management roles and requiring new skills.
The document provides an overview of competency modeling, including:
1. A brief history of competency modeling from its origins in the 1950s to its maturation and widespread adoption by Fortune 500 companies today.
2. Definitions of key terms like competency, competence, and components of competency.
3. Examples of competency models and frameworks, and how they are used for various human resource functions.
4. The benefits of implementing competency-based approaches for individuals, companies, and managers.
3. How competency modeling is linked to focused training and development by identifying competency gaps to address.
The document discusses Taylor series expansions (desarrollos limitados) and provides 15 examples of applying the Taylor formula to common functions like exponential, logarithmic, trigonometric and hyperbolic functions. Specifically, it gives the Taylor series expansion of each function centered around 0 and in terms of powers of x, along with the little-oh notation describing the remainder term.
El resumen describe los conceptos básicos de la inmunohistoquímica y su aplicación en el carcinoma de laringe. Explica que la inmunohistoquímica utiliza anticuerpos para detectar antígenos en tejidos, superando las limitaciones de la inmunofluorescencia. Describe los métodos directo, indirecto y peroxidasa-antiperoxidasa/avidina-biotina para mejorar la calidad de la marcación. También menciona que la inmunohistoquímica ha aportado datos en el diagnóstico del carcinoma de
This CV summarizes Ingrid Naidoo's experience working in accounting roles in South Africa from 1992 to 2016, and currently teaching English in China. She has over 20 years of experience in accounts payable, credit control, bookkeeping, and debtors/creditors reconciliation for automotive companies. Her education includes a TEFL certificate and partial completion of a B.Com in accounts. She provides two references from past employers in South Africa.
The document defines the schema for a database that stores information about customers, orders, order items, products, and vendors. It creates the necessary tables, defines primary and foreign keys, and populates the tables with sample data. This includes tables for customers, vendors, products, orders, and order items, along with the relationships between them.
The document defines the schema for a database that stores information about customers, orders, order items, products and vendors. It creates the necessary tables, defines primary and foreign keys, and populates the tables with sample data. This includes creating tables for customers, orders, order items, products and vendors, defining relationships between the tables through primary and foreign keys, and inserting records into each table.
Script de creación de la base de datos pedidos en MS AccessZantiago Thrash
The document describes the creation of a database in MS Access for orders. It includes tables for employees, suppliers, categories, clients, orders, order details, and products. Data is inserted into these tables to populate the database. Relationships between the tables are defined using foreign keys.
When debugging the code, use Drop table statementsto drop pr.docxaryan532920
/* When debugging the code, use Drop table statements
to drop previously created tables.
When code is re-run, new tables will be created.
This allows easy debugging. */
Drop table dept cascade constraints;
Drop table emp cascade constraints;
Drop table customer cascade constraints;
Drop table product cascade constraints;
Drop table ord cascade constraints;
Drop table item cascade constraints;
Drop table salgrade cascade constraints;
Drop table bonus cascade constraints;
Drop table price cascade constraints;
Drop table dummy cascade constraints;
Purge RecycleBin;
CREATE TABLE DEPT (
DEPTNO NUMBER(2) NOT NULL,
DNAME VARCHAR2(14),
LOC VARCHAR2(13),
CONSTRAINT DEPT_PRIMARY_KEY PRIMARY KEY (DEPTNO));
INSERT INTO DEPT VALUES (10,'ACCOUNTING','NEW YORK');
INSERT INTO DEPT VALUES (20,'RESEARCH','DALLAS');
INSERT INTO DEPT VALUES (30,'SALES','CHICAGO');
INSERT INTO DEPT VALUES (40,'OPERATIONS','BOSTON');
CREATE TABLE EMP (
EMPNO NUMBER(4) NOT NULL,
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
MGR NUMBER(4) CONSTRAINT EMP_MGR_FK REFERENCES EMP (EMPNO),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2) NOT NULL,
CONSTRAINT EMP_DEPTNO_FK FOREIGN KEY (DEPTNO) REFERENCES DEPT (DEPTNO),
CONSTRAINT EMP_EMPNO_PK PRIMARY KEY (EMPNO));
INSERT INTO EMP VALUES (7839,'KING','PRESIDENT',NULL,TO_DATE('17-NOV-2011','DD-MON-YYYY'),15000,NULL,10);
INSERT INTO EMP VALUES (7698,'Blake','MANAGER',7839,TO_DATE('1-MAY-2012','DD-MON-YYYY'),6850,NULL,30);
INSERT INTO EMP VALUES (7782,'CLARK','MANAGER',7839,TO_DATE('9-JUN-2013','DD-MON-YYYY'),5450,NULL,10);
INSERT INTO EMP VALUES (7566,'Jones','MANAGER',7839,TO_DATE('2-APR-2011','DD-MON-YYYY'),5975,NULL,20);
INSERT INTO EMP VALUES (7654,'Martin','SALESMAN',7698,TO_DATE('28-SEP-2012','DD-MON-YYYY'),4250,27400,30);
INSERT INTO EMP VALUES (7499,'ALLEN','SALESMAN',7698,TO_DATE('20-FEB-2013','DD-MON-YYYY'),3600,16300,30);
INSERT INTO EMP VALUES (7844,'TURNER','SALESMAN',7698,TO_DATE('8-SEP-2014','DD-MON-YYYY'),3500,0,30);
INSERT INTO EMP VALUES (7900,'James','CLERK',7698,TO_DATE('3-DEC-2015','DD-MON-YYYY'),4950,NULL,30);
INSERT INTO EMP VALUES (7521,'WARD','SALESMAN',7698,TO_DATE('22-FEB-2016','DD-MON-YYYY'),3250,55500,30);
INSERT INTO EMP VALUES (7902,'ford','ANALYST',7566,TO_DATE('3-DEC-2016','DD-MON-YYYY'),6000,NULL,20);
INSERT INTO EMP VALUES (7369,'SMITH','CLERK',7902,TO_DATE('17-DEC-2015','DD-MON-YYYY'),3800,NULL,20);
INSERT INTO EMP VALUES (7788,'SCOTT','ANALYST',7566,TO_DATE('09-DEC-2014','DD-MON-YYYY'),6000,NULL,20);
INSERT INTO EMP VALUES (7876,'ADAMS','CLERK',7788,TO_DATE('12-JAN-2013','DD-MON-YYYY'),4100,NULL,20);
INSERT INTO EMP VALUES (7934,'MILLER','CLERK',7782,TO_DATE('23-JAN-2016','DD-MON-YYYY'),4300,NULL,10);
CREATE TABLE BONUS (
ENAME VARCHAR2(10),
JOB ...
SQL SQL 2) Add 25 CUSTOMERSs so that you now have 50 total..docxrafbolet0
The document contains SQL code that inserts 25 new customers and 25 new vehicles into database tables to increase the total numbers of customers and vehicles to 50 each. The code provides details of the customer and vehicle records being inserted such as names, addresses, vehicle details.
SQL SQL 2) Add 25 CUSTOMERSs so that you now have 50 total..docx
Individual Project ---Yezhou Liang
1. Database Design & Management
MASY1-GC 3500
Professor: Marc S. Paller
Individual Project
-------- Yezhou Liang(10/16/16)
2. Ayi Dumplings sells all kinds of dumplings and
beverage online in New Jersey. Dumplings with meat
and vegetable fillings, is very popular during the
Spring Festival and other festivals in China. It tops the
list of delicacies of people in north of China, where
people eat dumplings at midnight on New Year's Eve
and for breakfast on New Year's Day. They have
different flavors, such as chives shrimp dumpling,
cabbage shrimp dumpling, cabbage pork dumpling.
They buy raw material from NY Mart twice a week,
such as organic vegetables, eggs and meat.
3. Business Rule
ß Ayi Dumplings sells all kinds of
dumplings and beverage in New
Jersey and New York. There is
one person who will record
customers’ information via Excel,
such as customer name, gender
and address. They have four full-
time staff for delivery. Their
customers come from three
parts. One part comes from
Wechat users which is most part
of customers. Other customers
use message and email to order
food.
ß There are two storage locations
for this store. One is located in
New Jersey. Another is located in
New York. When customers
make order, they will have their
order ID. The order information
include order date and order
price. Meanwhile, they will get
invoice for their order. The
invoice information includes
invoice ID and invoice date.
32. Question 1:
Number of product types stocked in the business?
Query:
SELECT COUNT (*)
FROM PRODUCT_T;
Result:
Use Database to Solve Real Problem
33. Question 2:
Total volumes of products stocked in business?
Query:
SELECT SUM (QUANTITY)
FROM ORDERLINE;
Result:
34. Question 3:
What is average value of sales revenue?
Query:
SELECT AVG(SALESREVENUE)
FROM ORDER_T;
Result
35. Question 4:
Which customer who purchased dumplings in
NJ and NY? (Totally, 20 people in database)
Query:
SELECT STORAGE
FROM DELIVERY
WHERE STORAGE IN('NJ');
Result:
36. Question 4:
Which customer who purchased dumplings in NJ
and NY? (Totally, 20 people in database)
Query:
SELECT STORAGE
FROM DELIVERY
WHERE STORAGE IN('NY');
Result:
37. Question 5:
What are they gender?(Totally, 20 customers in customer
table)
Query
SELECT GENDER
FROM CUSTOMER_T
WHERE GENDER='F';
Result:
38. Question 5:
What are they gender?(Totally, 20 customers in
customer table)
Query
SELECT GENDER
FROM CUSTOMER_T
WHERE GENDER=‘M';
Result:
39. Question6:
What are they device for ordering dumplings?
FROM METHOD
WHERE DEVICETYPE='wechat';
Query 1:
Result1 :
FROM METHOD
WHERE DEVICETYPE=‘message';
Query 3
FROM METHOD
WHERE DEVICETYPE=‘email’
Query 2
Result2
Result3
40. Project Report:
The business used in this project is a private catering company which is
newly established in 2016, with headquarter at Jersey City. According to
the questions and answers, we can conclude that it has 10 types of
products stocked in this business. In total, there are 50 products stocked in
business. The average value of sales revenue is about 11 dollars. In this
database containing 20 people, there are 10 living in NJ and 10 in NY. At the
same time, there are 15 female customers and 5 male customers. We can
see that 75% of customers are women. It means that women prefer
dumplings than men.
In the database of method, there are
different numbers of people using
three kinds of method – wechat,
message, email. There are nearly half
people using wechat, because wechat is
the most famous social app in Chinese,
and most customer in this business
come from China.
41. Project Report:
During the interview with the boss of this company, she told us that the
sales volume of this company had increased from about 100 dollars per
day to 600 dollars per day in the last 6 months. At the beginning, they
used Excel to record order without any professional database tools. But
recently, they are trying to using the MySQL and PostgreSQL. With the
business growing, the company wants to gradually transfer the DBMS
platform to Oracle to ensure the database can support the growing daily
operational data. For this project, an important goal is to verify the
possibility of using database and show the great advantage of SQL
developer. Of course, database will help them to analyze their data more
easily.
42. Finally I hereby confirm that this is an original project and my own work.