SlideShare a Scribd company logo
1 of 52
DROP TABLE ordline ;
Drop TABLE OrderTBL ;
DROP TABLE Customer ;
dROP TABLE Employee ;
DROP TABLE Product ;
CREATE TABLE Product
( ProdNo CHAR(8),
ProdName VARCHAR2(50) CONSTRAINT
ProdNameRequired NOT NULL,
ProdMfg VARCHAR2(20) CONSTRAINT
ProdMfgRequired NOT NULL,
ProdQOH INTEGER,
ProdPrice DECIMAL(12,2),
ProdNextShipDate DATE,
CONSTRAINT PKProduct PRIMARY KEY (ProdNo) );
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH,
ProdNextShipDate, ProdPrice)
VALUES ('P0036566','17 inch Color Monitor','ColorMeg,
Inc.',12,'20-Feb-2007',169.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH,
ProdNextShipDate, ProdPrice)
VALUES ('P0036577','19 inch Color Monitor','ColorMeg,
Inc.',10,'20-Feb-2007',319.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH,
ProdNextShipDate, ProdPrice)
VALUES ('P1114590','R3000 Color Laser
Printer','Connex',5,'22-Jan-2007',699.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH,
ProdNextShipDate, ProdPrice)
VALUES ('P1412138','10 Foot Printer
Cable','Ethlite',100,'',12.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH,
ProdNextShipDate, ProdPrice)
VALUES ('P1445671','8-Outlet Surge
Protector','Intersafe',33,'',14.99);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH,
ProdNextShipDate, ProdPrice)
VALUES ('P1556678','CVP Ink Jet Color
Printer','Connex',8, '22-Jan-2007',99.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH,
ProdNextShipDate, ProdPrice)
VALUES ('P3455443','Color Ink Jet
Cartridge','Connex',24,'22-Jan-2007',38.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH,
ProdNextShipDate, ProdPrice)
VALUES ('P4200344','36-Bit Color Scanner','UV
Components',16,'29-Jan-2007',199.99);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH,
ProdNextShipDate, ProdPrice)
VALUES ('P6677900','Black Ink Jet
Cartridge','Connex',44,'',25.69);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH,
ProdNextShipDate, ProdPrice)
VALUES ('P9995676','Battery Back-up
System','Cybercx',12,'1-Feb-2007',89.00);
CREATE TABLE Employee
( EmpNo CHAR(8),
EmpFirstName VARCHAR2(20) CONSTRAINT
EmpFirstNameRequired NOT NULL,
EmpLastName VARCHAR2(30) CONSTRAINT
EmpLastNameRequired NOT NULL,
EmpPhone CHAR(15),
EmpEMail VARCHAR(50) CONSTRAINT
EmpEMailRequired NOT NULL,
SupEmpNo CHAR(8),
EmpCommRate DECIMAL(3,3),
CONSTRAINT PKEmployee PRIMARY KEY (EmpNo),
CONSTRAINT UniqueEMail UNIQUE(EmpEMail),
CONSTRAINT FKSupEmpNo FOREIGN KEY (SupEmpNo)
REFERENCES Employee )
;
INSERT INTO employee (EmpNo, EmpFirstName,
EmpLastName, EmpPhone, EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E9884325','Thomas','Johnson','(303) 556-
9987','[email protected]','',0.05);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E8843211','Amy','Tang','(303) 556-
4321','[email protected]','E9884325',0.04);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E9345771','Colin','White','(303) 221-
4453','[email protected]','E9884325',0.04);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E1329594','Landi','Santos','(303) 789-
1234','[email protected]','E8843211',0.02);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E8544399','Joe','Jenkins','(303) 221-
9875','[email protected]','E8843211',0.02);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E9954302','Mary','Hill','(303) 556-
9871','[email protected]','E8843211',0.02);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo)
VALUES ('E9973110','Theresa','Beck','(720) 320-
2234','[email protected]','E9884325');
CREATE TABLE Customer
( CustNo CHAR(8),
CustFirstName VARCHAR2(20) CONSTRAINT
CustFirstNameRequired NOT NULL,
CustLastName VARCHAR2(30) CONSTRAINT
CustLastNameRequired NOT NULL,
CustStreet VARCHAR2(50),
CustCity VARCHAR2(30),
CustState CHAR(2),
CustZip CHAR(10),
CustBal DECIMAL(12,2) DEFAULT 0,
CONSTRAINT PKCustomer PRIMARY KEY (CustNo) );
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C0954327','Sheri','Gordon','336 Hill
St.','Littleton','CO','80129-5543',230.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C1010398','Jim','Glussman','1432 E.
Ravenna','Denver','CO','80111-0033',200.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C2388597','Beth','Taylor','2396 Rafter
Rd','Seattle','WA','98103-1121',500.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C3340959','Betty','Wise','4334 153rd
NW','Seattle','WA','98178-3311',200.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C3499503','Bob','Mann','1190 Lorraine
Cir.','Monroe','WA','98013-1095',0.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C8543321','Ron','Thompson','789 122nd
St.','Renton','WA','98666-1289',85.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C8574932','Wally','Jones','411 Webber
Ave.','Seattle','WA','98105-1093',1500.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C8654390','Candy','Kendall','456 Pine
St.','Seattle','WA','98105-3345',50.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C9128574','Jerry','Wyatt','16212 123rd
Ct.','Denver','CO','80222-0022',100.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C9403348','Mike','Boren','642 Crest
Ave.','Englewood','CO','80113-5431',0.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C9432910','Larry','Styles','9825 S. Crest
Lane','Bellevue','WA','98104-2211',250.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C9543029','Sharon','Johnson','1223 Meyer
Way','Fife','WA','98222-1123',856.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C9549302','Todd','Hayes','1400 NW
88th','Lynnwood','WA','98036-2244',0.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C9857432','Homer','Wells','123 Main
St.','Seattle','WA','98105-4322',500.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C9865874','Mary','Hill','206
McCaffrey','Littleton','CO','80129-5543',150.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet,
CustCity,
CustState, CustZip, CustBal)
VALUES('C9943201','Harry','Sanders','1280 S. Hill
Rd.','Fife','WA','98222-2258',1000.00);
CREATE TABLE OrderTbl
( OrdNo CHAR(8),
OrdDate DATE CONSTRAINT OrdDateRequired
NOT NULL,
CustNo CHAR(8) CONSTRAINT CustNoRequired
NOT NULL,
EmpNo CHAR(8),
OrdName VARCHAR2(50),
OrdStreet VARCHAR2(50),
OrdCity VARCHAR2(30),
OrdState CHAR(2),
OrdZip CHAR(10),
CONSTRAINT PKOrderTbl PRIMARY KEY (OrdNo),
CONSTRAINT FKCustNo FOREIGN KEY (CustNo)
REFERENCES Customer,
CONSTRAINT FKEmpNo FOREIGN KEY (EmpNo)
REFERENCES Employee );
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1116324','23-Jan-
2007','C0954327','E8544399','Sheri Gordon','336 Hill
St.','Littleton','CO','80129-5543');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1231231','23-Jan-
2007','C9432910','E9954302','Larry Styles','9825 S. Crest
Lane','Bellevue','WA','98104-2211');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1241518','10-Feb-2007','C9549302','','Todd
Hayes','1400 NW 88th','Lynnwood','WA','98036-2244');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1455122','9-Jan-
2007','C8574932','E9345771','Wally Jones','411 Webber
Ave.','Seattle','WA','98105-1093');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1579999','5-Jan-
2007','C9543029','E8544399','Tom Johnson','1632 Ocean
Dr.','Des Moines','WA','98222-1123');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1615141','23-Jan-
2007','C8654390','E8544399','Candy Kendall','456 Pine
St.','Seattle','WA','98105-3345');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1656777','11-Feb-2007','C8543321','','Ron
Thompson','789 122nd St.','Renton','WA','98666-1289');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O2233457','12-Jan-
2007','C2388597','E9884325','Beth Taylor','2396 Rafter
Rd','Seattle','WA','98103-1121');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O2334661','14-Jan-
2007','C0954327','E1329594','Mrs. Ruth Gordon','233 S.
166th','Seattle','WA','98011');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O3252629','23-Jan-
2007','C9403348','E9954302','Mike Boren','642 Crest
Ave.','Englewood','CO','80113-5431');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O3331222','13-Jan-2007','C1010398','','Jim
Glussman','1432 E. Ravenna','Denver','CO','80111-0033');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O3377543','15-Jan-
2007','C9128574','E8843211','Jerry Wyatt','16212 123rd
Ct.','Denver','CO','80222-0022');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O4714645','11-Jan-
2007','C2388597','E1329594','Beth Taylor','2396 Rafter
Rd','Seattle','WA','98103-1121');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O5511365','22-Jan-
2007','C3340959','E9884325','Betty White','4334 153rd
NW','Seattle','WA','98178-3311');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O6565656','20-Jan-
2007','C9865874','E8843211','Mr. Jack Sibley','166 E.
344th','Renton','WA','98006-5543');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O7847172','23-Jan-2007','C9943201','','Harry
Sanders','1280 S. Hill Rd.','Fife','WA','98222-2258');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O7959898','19-Feb-
2007','C8543321','E8544399','Ron Thompson','789 122nd
St.','Renton','WA','98666-1289');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O7989497','16-Jan-
2007','C3499503','E9345771','Bob Mann','1190 Lorraine
Cir.','Monroe','WA','98013-1095');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O8979495','23-Jan-
2007','C9865874','','HelenSibley','206
McCaffrey','Renton','WA','98006-5543');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O9919699','11-Feb-
2007','C9857432','E9954302','Homer Wells','123 Main
St.','Seattle','WA','98105-4322');
CREATE TABLE OrdLine
( OrdNo CHAR(8),
ProdNo CHAR(8),
Qty INTEGER DEFAULT 1,
CONSTRAINT PKOrdLine PRIMARY KEY (OrdNo, ProdNo),
CONSTRAINT FKOrdNo FOREIGN KEY (OrdNo)
REFERENCES OrderTbl
ON DELETE CASCADE,
CONSTRAINT FKProdNo FOREIGN KEY (ProdNo)
REFERENCES Product );
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1116324','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1231231','P0036566',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1231231','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1241518','P0036577',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1455122','P4200344',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1579999','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1579999','P6677900',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1579999','P9995676',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1615141','P0036566',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1615141','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1615141','P4200344',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1656777','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1656777','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O2233457','P0036577',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O2233457','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O2334661','P0036566',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O2334661','P1412138',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O2334661','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3252629','P4200344',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3252629','P9995676',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3331222','P1412138',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3331222','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3331222','P3455443',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3377543','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3377543','P9995676',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O4714645','P0036566',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O4714645','P9995676',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O5511365','P1412138',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O5511365','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O5511365','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O5511365','P3455443',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O5511365','P6677900',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O6565656','P0036566',10);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7847172','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7847172','P6677900',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7959898','P1412138',5);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7959898','P1556678',5);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7959898','P3455443',5);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7959898','P6677900',5);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7989497','P1114590',2);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7989497','P1412138',2);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7989497','P1445671',3);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O8979495','P1114590',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O8979495','P1412138',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O8979495','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O9919699','P0036577',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O9919699','P1114590',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O9919699','P4200344',1);
Business Model and Strategic Planning Outline
BUS/45 Version 5
1
University of Phoenix Material
Business Model and Strategic Planning Outline
I. Title Page
II. Table of Contents
III. Executive Summary
IV. Business Model and Strategic Plan Part I: Existing
Business or New Business Division; Vision, Mission, and Value
Proposition
V. Business Model and Strategic Plan Part II: SWOTT Analysis
– Internal and External Environmental Analysis; Supply and
Value Chain Analysis
VI. Business Model and Strategic Plan Part III: Assumptions,
Risk and Change Management Plan; Summary of Strategic
Objectives; Balanced Score Card and its impact on stakeholders;
the Communication Plan
VII. Conclusion
VIII. Reference Page
Business Model and Strategic Plan Part I: Conceptualizing a
New Product or Service Division of an Existing Business
Grading Guide
BUS/475 Version 5
1
Individual Assignment: Business Model and Strategic Plan Part
I: Conceptualizing a New Product or Service Division of an
Existing Business
Purpose of Assignment
Students have the opportunity to research a company and
industry using University of Phoenix IBISWorld and other
databases to conceptualize forming a new division of an
existing company based on a new product or service. The
assigned text and Business Model and Strategic Planning
Outline serve as a guide to complete sections of the capstone
project each week. A final paper and presentation is due in
Week 5.
Resources Required
· University of Phoenix Material: Business Model and Strategic
Planning Outline
· University Library: IBISWorld, Mergent Online, Hoover’s
databases
· Strategic Management, Ch. 4. 5, & 6
· Crafting and Executing Strategy, Ch. 3, 4, & 5
Grading Guide
Content
70 Percent
Met
Partially Met
Not Met
Comments:
· Propose a new product or service for the new company
division. The division should be customer-focused with an
innovative mission statement. Ensure that you are
differentiating your product or service.
· Describe how the division addresses customer needs and
achieves competitive advantage.
· Create a vision and a business model for this new division that
clearly demonstrates your decision on what you want your
business to become in the future.
· Explain how the vision, mission, and value of the new division
align with the company’s mission and vision.
· Summarize how the vision, mission, and values guide the
division’s strategic direction.
· Define your guiding principles and values for your division in
the context of culture, social responsibility, and ethics and its
alignment to those of the company.
The paper is between 1,400 and 1,750 words in length.
Total Available
Total Earned
7
#/7
Writing Guidelines
30 Percent
Met
Partially Met
Not Met
Comments:
The paper—including tables and graphs, headings, title page,
and reference page—is consistent with APA formatting
guidelines and meets course-level requirements.
Intellectual property is recognized with in-text citations and a
reference page.
Paragraph and sentence transitions are present, logical, and
maintain the flow throughout the paper.
Sentences are complete, clear, and concise.
Rules of grammar and usage are followed including spelling and
punctuation.
Total Available
Total Earned
3
#/3
Assignment Total
10
#/10
Additional comments:
Copyright © 2014 by University of Phoenix. All rights reserved.
DATABASE Take Home Semester ASSIGNMENT
Summer 2014
1. Originality and depth of analysis will be considered for
grading
2. Responses should be well within the limits specified for each
response
3. Make sure you make note for all your assumptions (if any)
and show all steps in completing your work.
4. Your responses should be submitted as a word document with
5. Use the attached DBST651.SQL File to work on Question 2.
Submit your responses to PART A in the table shown below:
Q no:
Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Part A
1. A lock on a larger data element increases both system
overhead and waiting by transactions.
True False
2. When transactions T1 and T2 are in a deadlock, one of the
transactions will eventually execute to completion and let the
other one continue execution.
True False
3. When an update to the database takes place, the time of the
update, the values of the data before and after the update, and
the type of lock used are recorded in the transaction log.
True False
4. To restore a database using the immediate update approach,
both undo and redo operations may be necessary, whereas with
the deferred update approach only redo operations are used.
True False
5. Which of the following is an example of lost update?
A. The system assigns the last aisle seat on a flight to John
whereas Peter receives a window seat, although both indicated
preference for an aisle seat
B. John and Peter receive each a window seat as they both
requested
C. John is initially assigned the last window seat, but this seat
is later on assigned to Peter
D. None of the above
6. Julia has a lock on the savings account and Bill is trying to
perform a conflicting action on the data:
A. Bill's transaction is granted permission to perform the
desired action
B. Bill's transaction must wait until Julia's lock is released
C. Bill's transaction must wait until Julia has read the savings
account value
D. None of the above
7. Julia has a shared lock on the savings account and Bill is
trying to perform an action requesting a shared lock on the same
data:
A. Bill's transaction is granted permission to perform the
desired action
B. Bill's transaction must wait until Julia's lock is released
C. Bill's transaction must wait until Julia has read the savings
account value
D. None of the above
8. Julia has an exclusive lock on the savings account and Bill is
trying to perform an action requesting a shared lock on the same
data:
A. Bill's transaction is granted permission to perform the
desired action
B. Bill's transaction must wait until Julia's lock is released
C. Bill's transaction must wait until Julia has read the savings
account value
D. None of the above
9. Which of the following will cause a deadlock?
A. Transaction T1 requests an exclusive lock on data A at the
same time as transaction T2
B. Transaction T1 places an exclusive lock on data A, then
transaction T2 requests a shared lock on data A
C. Transaction T1 places an exclusive lock on data A, then
requests one on data B. Simultaneously, transaction T2 places
an exclusive lock on data B, then requests one on data A
D. Transaction T1 and T2 modify data A without any lock
10. In the two-phase locking protocol:
A. A transaction only acquires a lock after the previously
acquired lock has been released
B. A transaction acquires locks as needed. After it starts
releasing locks, it does not acquire new locks
C. A transaction acquires all needed locks at once, then releases
them after completion
D. The transaction locks the full database, then releases the
locks
11. Consider a transaction that updates each of the 100
employees' salaries in a table (there is one row per employee)
under the immediate update mode. The transaction terminates
abnormally after 10 rows have been updated in the database
(and the normal operations have taken place on the log). What
should the recovery procedure perform to make sure the
transaction completes as desired?
A. Redo
B. Redo followed by execution of the transaction again
C. Undo
D. Undo followed by execution of the transaction again
12. Consider a transaction that updates each of the 100
employees' salaries in a table (there is one row per employee)
under the deferred update mode. The transaction terminates
abnormally after the new values of 10 rows have been written to
the log. What should the recovery procedure perform to make
sure the transaction completes as desired?
A. Execute the transaction again
B. Redo followed by execution of the transaction again
C. Undo
D. Undo followed by execution of the transaction again
13. Consider a transaction that updates each of the 100
employees' salaries in a table (there is one row per employee)
under the immediate update mode and completes before a
checkpoint. The system crashes after the checkpoint. What
should the recovery procedure perform to make sure the
transaction completes as desired?
A. Nothing
B. Redo followed by execution of the transaction again
C. Undo
D. Undo followed by execution of the transaction again
14. Consider a transaction that updates each of the 100
employees' salaries in a table (there is one row per employee)
under the immediate update mode and completes after a
checkpoint but before a system failure. The system crashes after
the checkpoint. What should the recovery procedure perform to
make sure the transaction completes as desired?
A. Nothing
B. Redo forward from checkpoint
C. Undo
D. Undo followed by execution of the transaction again
15. With database locking, a(n) _______________ lock must be
obtained before reading a database item, and a(n) ___________
lock must be obtained before writing to a database item.
________________________________________
CUSTOMER
In table CUSTOMER, CID is the primary key (Customer ID).
RENTALS
In the table RENTALS, RTN provides the rental number (the
primary key), CID is the customer's unique id, PICKUP is the
city where the car was picked up, and Return is the city where
the car was returned.
RENTCOST
RENTCOST shows the base cost of renting a given MAKE for
one day.
CITYADJ
If the return city of table RENTALS is the one listed in table
CITYADJ, the cost of the rental is multiplied by FACTOR and
by DAYS shown in table RENTLENGTH below.
RENTLENGTH
RENTLENGTH shows the number of days for the rental
number (RTN) shown in table RENTALS. In a database used in
reality, this table would be merged with the RENTALS table.
16. SELECT DISTINCT CID, CNAME
FROM CUSTOMER
WHERE CID IN
(SELECT CID FROM RENTALS WHERE MAKE IN ('FORD',
'TOYOTA'))
The CNAMEs shown by the execution of this query are:
A. BLACK
B. BLACK, JONES
C. BLACK, JONES, MARTIN
D. BLACK, JONES, MARTIN, VERNON
17. SELECT DISTINCT CUSTOMER.CID, CNAME
FROM CUSTOMER, RENTALS, RENTCOST
WHERE CUSTOMER.CID = RENTALS.CID
AND RENTALS.MAKE = RENTCOST.MAKE AND NOT
EXISTS
(SELECT * FROM RENTALS R, RENTCOST C
WHERE R.MAKE = C.MAKE
AND RENTALS.CID = R.CID
AND RENTCOST.COST <> C.COST)
The meaning of this query is:
A. List all customers with more than one car make rented
B. List all customers who have only rented one make
C. List all customers with one or more rentals for which the cost
of each car make rented is the same
D. None of the above
18. SELECT MAKE
FROM RENTALS, CUSTOMER
WHERE RENTALS.CID = CUSTOMER.CID
AND RESID_CITY = 'HEMET'
GROUP BY MAKE
HAVING COUNT (DISTINCT RENTALS.CID) =
(SELECT COUNT(*) FROM CUSTOMER
WHERE RESID_CITY = 'HEMET')
The execution of this query produces the following number of
rows:
A. 0
B. 1
C. 2
D. 3
VOTE
19. SELECT MAKE
FROM RENTALS, CUSTOMER
WHERE RENTALS.CID = CUSTOMER.CID
AND RESID_CITY = 'HEMET '
GROUP BY MAKE
HAVING COUNT (DISTINCT RENTALS.CID) =
(SELECT COUNT(*) FROM CUSTOMER
WHERE RESID_CITY = 'HEMET')
The meaning of this query is the following:
A. List all makes of cars rented to customers residing in Hemet
B. List all makes of cars rented to at least one customer residing
in Hemet
C. List all makes of cars rented to all customers residing in
Hemet
D. None of the above
20. SELECT CID, CNAME FROM CUSTOMER
WHERE 0 =
(SELECT COUNT(*) FROM RENTALS
WHERE CUSTOMER.CID = RENTALS.CID)
What is the interpretation of this query?
A. List the customers who do not have rentals
B. List the customers who have one rental
C. List the customers who have 0 or more rentals
D. List the customers who have 1 or more rentals
21. SELECT CNAME, DATE_OUT, RTN
FROM CUSTOME
WHERE CUSTOMER.CID = RENTALS.CID
AND BIRTHPLACE IN ('ERIE', 'CARY') AND EXISTS
(SELECT * FROM RENTCOST
WHERE COST < 40 AND RENTALS.MAKE=
RENTCOST.MAKE)
The CNAMEs shown by the execution of this query are:
A. SIMON
B. GREEN, BLACK, SIMON
C. GREEN
D. GREEN, SIMON
22. Data warehouse data are organized and summarized by
table, such as CUSTOMER and ADDRESS.
True False
23.
In most implementations, the data warehouse and OLAP are
stand-alone, independent environments.
True False
24. ____________ query optimization takes place at
compilation time.
a.
Dynamic
c.
Automatic
b.
Static
d.
Manual
25.
Implementing BI in an organization involves capturing not only
business data (internal and external) but also the ____.
a.
Metadata
c.
information
b.
Facts
d.
rules
Part B
Q No: 1 (20 Points)
Let us consider the following transactions which are being
performed online by students of DBST 651 using
https://my.umuc.edu. Individual transactions are illustrated in
the diagram shown below. Based upon your understanding and
reading of Transaction Management & Concurrency Control
chapter answer the following:
time
T1
T5
T6
T2
T3
checkpoint
failure
backup
T4
T7
T8
T9
1. What is needed to restart if transaction (T3) is aborted with a
rollback after checkpoint before the system failure? Explain
restart of work assuming the recovery manager using deferred
update.
2. Same as #1 but assume recovery manager is using immediate
update approach.
3. Assuming recovery manager is using deferred update
approach. Explain how the restart will impact all the
transactions shown in the timeline diagram (illustrated above –
T1 to T9).
4. Same as #3 but the recovery manager is using immediate
update approach.
5. Discuss the impact of restart of work if in case there is a
device failure?
Q No: 2 (20 Points)
Using DBST651.sql script which is available under the final
exam to respond the following SQL problems:
Create SQL statements for the following scenarios. Your
response should include SQL statement, output and any other
assumptions you have made to arrive at the solution.
a. For Colorado customers compute the average amount of their
orders and the number of orders placed. The result should
include the customer number, customer last name, average order
amount and the number of orders placed.
b. For Colorado customers compute the number of unique
products ordered. If a product is purchased on multiple orders,
it should be counted only one time. The result should include
customer number, customer last name and the number of unique
products ordered.
c. For each employee with a commission less than 0.04,
compute the number of orders taken and the average number of
products per order. The results should include the employee
number, employee last name, number of orders taken and the
average number of products per order.
d. For each Connex product compute the number of unique
customers who ordered the product in Jan 2007. The results
should include the product number, product name and the
number of unique customers.
Q No: 3 (10 Points)
Answer the following in your own words not exceeding ONE
page:
a. Explain the differences between a centralized and
decentralized approach to database design. Make sure to provide
suitable examples to understand your response.
b. What command is used to save changes to the database? What
is the syntax for this command? Illustrate with an example.
c. What is a subquery? When is it used? Does the RDBMS deal
with subqueries any differently from normal queries? Illustrate
with examples different types of sub-query and co-related
subqueries (nested etc).
d. What is a view? What is the command used to create a view.
Illustrate the command with an example.
_942524561.vsd

More Related Content

Similar to DROP TABLE ordline ;Drop TABLE OrderTBL ;DROP TABLE Customer.docx

I have the attached copy of the assignment description. And here is .docx
I have the attached copy of the assignment description. And here is .docxI have the attached copy of the assignment description. And here is .docx
I have the attached copy of the assignment description. And here is .docxsamirapdcosden
 
The resto txt Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt     Use for TM254 2021J TMA02 Question 6 .pdfThe resto txt     Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt Use for TM254 2021J TMA02 Question 6 .pdfgiriraj65
 
SQL structure query language full presentation
SQL structure query language full presentationSQL structure query language full presentation
SQL structure query language full presentationJKarthickMyilvahanan
 
Individual Project ---Yezhou Liang
Individual Project ---Yezhou LiangIndividual Project ---Yezhou Liang
Individual Project ---Yezhou LiangYezhou Liang
 
Create table dimcustomer ( customerid int/tutorialoutlet
Create table dimcustomer ( customerid int/tutorialoutletCreate table dimcustomer ( customerid int/tutorialoutlet
Create table dimcustomer ( customerid int/tutorialoutletPittock
 
Scott sql script as per exercise1
Scott sql script as per exercise1Scott sql script as per exercise1
Scott sql script as per exercise1AjayMaheshwari17
 
I am working on this homework using MYSQL database. Can you help. At.docx
I am working on this homework using MYSQL database. Can you help. At.docxI am working on this homework using MYSQL database. Can you help. At.docx
I am working on this homework using MYSQL database. Can you help. At.docxmaple8qvlisbey
 
Table Region .pdf
 Table Region  .pdf Table Region  .pdf
Table Region .pdfajay1317
 
BREWBEANS.sql.txtDROP TABLE BB_Department CASCADE CONSTRAINTS .docx
BREWBEANS.sql.txtDROP TABLE BB_Department CASCADE CONSTRAINTS .docxBREWBEANS.sql.txtDROP TABLE BB_Department CASCADE CONSTRAINTS .docx
BREWBEANS.sql.txtDROP TABLE BB_Department CASCADE CONSTRAINTS .docxhartrobert670
 
Appendix A Tables
Appendix A   TablesAppendix A   Tables
Appendix A TablesLiquidHub
 
Appendix A Tables
Appendix A   TablesAppendix A   Tables
Appendix A TablesLiquidHub
 
Put MINI ANALYSIS HERE!DROP TABLE IF EXISTS STUDENT;DROP TA
Put MINI ANALYSIS HERE!DROP TABLE IF EXISTS STUDENT;DROP TAPut MINI ANALYSIS HERE!DROP TABLE IF EXISTS STUDENT;DROP TA
Put MINI ANALYSIS HERE!DROP TABLE IF EXISTS STUDENT;DROP TAAlleneMcclendon878
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docxcarolinef5
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docxdonaldp2
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docxcuddietheresa
 
# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docx# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docxkatherncarlyle
 

Similar to DROP TABLE ordline ;Drop TABLE OrderTBL ;DROP TABLE Customer.docx (20)

I have the attached copy of the assignment description. And here is .docx
I have the attached copy of the assignment description. And here is .docxI have the attached copy of the assignment description. And here is .docx
I have the attached copy of the assignment description. And here is .docx
 
The resto txt Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt     Use for TM254 2021J TMA02 Question 6 .pdfThe resto txt     Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt Use for TM254 2021J TMA02 Question 6 .pdf
 
SQL structure query language full presentation
SQL structure query language full presentationSQL structure query language full presentation
SQL structure query language full presentation
 
Individual Project ---Yezhou Liang
Individual Project ---Yezhou LiangIndividual Project ---Yezhou Liang
Individual Project ---Yezhou Liang
 
Create table dimcustomer ( customerid int/tutorialoutlet
Create table dimcustomer ( customerid int/tutorialoutletCreate table dimcustomer ( customerid int/tutorialoutlet
Create table dimcustomer ( customerid int/tutorialoutlet
 
Scott sql script as per exercise1
Scott sql script as per exercise1Scott sql script as per exercise1
Scott sql script as per exercise1
 
Sql commands
Sql commandsSql commands
Sql commands
 
I am working on this homework using MYSQL database. Can you help. At.docx
I am working on this homework using MYSQL database. Can you help. At.docxI am working on this homework using MYSQL database. Can you help. At.docx
I am working on this homework using MYSQL database. Can you help. At.docx
 
Table Region .pdf
 Table Region  .pdf Table Region  .pdf
Table Region .pdf
 
Actividad 1
Actividad 1Actividad 1
Actividad 1
 
Milestone 1 FINAL
Milestone 1 FINALMilestone 1 FINAL
Milestone 1 FINAL
 
BREWBEANS.sql.txtDROP TABLE BB_Department CASCADE CONSTRAINTS .docx
BREWBEANS.sql.txtDROP TABLE BB_Department CASCADE CONSTRAINTS .docxBREWBEANS.sql.txtDROP TABLE BB_Department CASCADE CONSTRAINTS .docx
BREWBEANS.sql.txtDROP TABLE BB_Department CASCADE CONSTRAINTS .docx
 
Appendix A Tables
Appendix A   TablesAppendix A   Tables
Appendix A Tables
 
ScottCreate_1.pdf
ScottCreate_1.pdfScottCreate_1.pdf
ScottCreate_1.pdf
 
Appendix A Tables
Appendix A   TablesAppendix A   Tables
Appendix A Tables
 
Put MINI ANALYSIS HERE!DROP TABLE IF EXISTS STUDENT;DROP TA
Put MINI ANALYSIS HERE!DROP TABLE IF EXISTS STUDENT;DROP TAPut MINI ANALYSIS HERE!DROP TABLE IF EXISTS STUDENT;DROP TA
Put MINI ANALYSIS HERE!DROP TABLE IF EXISTS STUDENT;DROP TA
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docx# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docx
 

More from jacksnathalie

OverviewThe US is currently undergoing an energy boom largel.docx
OverviewThe US is currently undergoing an energy boom largel.docxOverviewThe US is currently undergoing an energy boom largel.docx
OverviewThe US is currently undergoing an energy boom largel.docxjacksnathalie
 
OverviewThe United Nations (UN) has hired you as a consultan.docx
OverviewThe United Nations (UN) has hired you as a consultan.docxOverviewThe United Nations (UN) has hired you as a consultan.docx
OverviewThe United Nations (UN) has hired you as a consultan.docxjacksnathalie
 
OverviewThis project will allow you to write a program to get mo.docx
OverviewThis project will allow you to write a program to get mo.docxOverviewThis project will allow you to write a program to get mo.docx
OverviewThis project will allow you to write a program to get mo.docxjacksnathalie
 
OverviewThis week, we begin our examination of contemporary resp.docx
OverviewThis week, we begin our examination of contemporary resp.docxOverviewThis week, we begin our examination of contemporary resp.docx
OverviewThis week, we begin our examination of contemporary resp.docxjacksnathalie
 
OverviewProgress monitoring is a type of formative assessment in.docx
OverviewProgress monitoring is a type of formative assessment in.docxOverviewProgress monitoring is a type of formative assessment in.docx
OverviewProgress monitoring is a type of formative assessment in.docxjacksnathalie
 
OverviewThe work you do throughout the modules culminates into a.docx
OverviewThe work you do throughout the modules culminates into a.docxOverviewThe work you do throughout the modules culminates into a.docx
OverviewThe work you do throughout the modules culminates into a.docxjacksnathalie
 
OverviewThis discussion is about organizational design and.docx
OverviewThis discussion is about organizational design and.docxOverviewThis discussion is about organizational design and.docx
OverviewThis discussion is about organizational design and.docxjacksnathalie
 
OverviewScholarly dissemination is essential for any doctora.docx
OverviewScholarly dissemination is essential for any doctora.docxOverviewScholarly dissemination is essential for any doctora.docx
OverviewScholarly dissemination is essential for any doctora.docxjacksnathalie
 
OverviewRegardless of whether you own a business or are a s.docx
OverviewRegardless of whether you own a business or are a s.docxOverviewRegardless of whether you own a business or are a s.docx
OverviewRegardless of whether you own a business or are a s.docxjacksnathalie
 
OverviewImagine you have been hired as a consultant for th.docx
OverviewImagine you have been hired as a consultant for th.docxOverviewImagine you have been hired as a consultant for th.docx
OverviewImagine you have been hired as a consultant for th.docxjacksnathalie
 
OverviewDevelop a 4–6-page position about a specific health care.docx
OverviewDevelop a 4–6-page position about a specific health care.docxOverviewDevelop a 4–6-page position about a specific health care.docx
OverviewDevelop a 4–6-page position about a specific health care.docxjacksnathalie
 
Overview This purpose of the week 6 discussion board is to exam.docx
Overview This purpose of the week 6 discussion board is to exam.docxOverview This purpose of the week 6 discussion board is to exam.docx
Overview This purpose of the week 6 discussion board is to exam.docxjacksnathalie
 
Overall Scenario Always Fresh Foods Inc. is a food distributor w.docx
Overall Scenario Always Fresh Foods Inc. is a food distributor w.docxOverall Scenario Always Fresh Foods Inc. is a food distributor w.docx
Overall Scenario Always Fresh Foods Inc. is a food distributor w.docxjacksnathalie
 
OverviewCreate a 15-minute oral presentation (3–4 pages) that .docx
OverviewCreate a 15-minute oral presentation (3–4 pages) that .docxOverviewCreate a 15-minute oral presentation (3–4 pages) that .docx
OverviewCreate a 15-minute oral presentation (3–4 pages) that .docxjacksnathalie
 
Overall CommentsHi Khanh,Overall you made a nice start with y.docx
Overall CommentsHi Khanh,Overall you made a nice start with y.docxOverall CommentsHi Khanh,Overall you made a nice start with y.docx
Overall CommentsHi Khanh,Overall you made a nice start with y.docxjacksnathalie
 
Overall CommentsHi Khanh,Overall you made a nice start with.docx
Overall CommentsHi Khanh,Overall you made a nice start with.docxOverall CommentsHi Khanh,Overall you made a nice start with.docx
Overall CommentsHi Khanh,Overall you made a nice start with.docxjacksnathalie
 
Overall feedbackYou addressed most all of the assignment req.docx
Overall feedbackYou addressed most all  of the assignment req.docxOverall feedbackYou addressed most all  of the assignment req.docx
Overall feedbackYou addressed most all of the assignment req.docxjacksnathalie
 
Overall Comments Overall you made a nice start with your U02a1 .docx
Overall Comments Overall you made a nice start with your U02a1 .docxOverall Comments Overall you made a nice start with your U02a1 .docx
Overall Comments Overall you made a nice start with your U02a1 .docxjacksnathalie
 
Overview This purpose of the week 12 discussion board is to e.docx
Overview This purpose of the week 12 discussion board is to e.docxOverview This purpose of the week 12 discussion board is to e.docx
Overview This purpose of the week 12 discussion board is to e.docxjacksnathalie
 
Over the years, the style and practice of leadership within law .docx
Over the years, the style and practice of leadership within law .docxOver the years, the style and practice of leadership within law .docx
Over the years, the style and practice of leadership within law .docxjacksnathalie
 

More from jacksnathalie (20)

OverviewThe US is currently undergoing an energy boom largel.docx
OverviewThe US is currently undergoing an energy boom largel.docxOverviewThe US is currently undergoing an energy boom largel.docx
OverviewThe US is currently undergoing an energy boom largel.docx
 
OverviewThe United Nations (UN) has hired you as a consultan.docx
OverviewThe United Nations (UN) has hired you as a consultan.docxOverviewThe United Nations (UN) has hired you as a consultan.docx
OverviewThe United Nations (UN) has hired you as a consultan.docx
 
OverviewThis project will allow you to write a program to get mo.docx
OverviewThis project will allow you to write a program to get mo.docxOverviewThis project will allow you to write a program to get mo.docx
OverviewThis project will allow you to write a program to get mo.docx
 
OverviewThis week, we begin our examination of contemporary resp.docx
OverviewThis week, we begin our examination of contemporary resp.docxOverviewThis week, we begin our examination of contemporary resp.docx
OverviewThis week, we begin our examination of contemporary resp.docx
 
OverviewProgress monitoring is a type of formative assessment in.docx
OverviewProgress monitoring is a type of formative assessment in.docxOverviewProgress monitoring is a type of formative assessment in.docx
OverviewProgress monitoring is a type of formative assessment in.docx
 
OverviewThe work you do throughout the modules culminates into a.docx
OverviewThe work you do throughout the modules culminates into a.docxOverviewThe work you do throughout the modules culminates into a.docx
OverviewThe work you do throughout the modules culminates into a.docx
 
OverviewThis discussion is about organizational design and.docx
OverviewThis discussion is about organizational design and.docxOverviewThis discussion is about organizational design and.docx
OverviewThis discussion is about organizational design and.docx
 
OverviewScholarly dissemination is essential for any doctora.docx
OverviewScholarly dissemination is essential for any doctora.docxOverviewScholarly dissemination is essential for any doctora.docx
OverviewScholarly dissemination is essential for any doctora.docx
 
OverviewRegardless of whether you own a business or are a s.docx
OverviewRegardless of whether you own a business or are a s.docxOverviewRegardless of whether you own a business or are a s.docx
OverviewRegardless of whether you own a business or are a s.docx
 
OverviewImagine you have been hired as a consultant for th.docx
OverviewImagine you have been hired as a consultant for th.docxOverviewImagine you have been hired as a consultant for th.docx
OverviewImagine you have been hired as a consultant for th.docx
 
OverviewDevelop a 4–6-page position about a specific health care.docx
OverviewDevelop a 4–6-page position about a specific health care.docxOverviewDevelop a 4–6-page position about a specific health care.docx
OverviewDevelop a 4–6-page position about a specific health care.docx
 
Overview This purpose of the week 6 discussion board is to exam.docx
Overview This purpose of the week 6 discussion board is to exam.docxOverview This purpose of the week 6 discussion board is to exam.docx
Overview This purpose of the week 6 discussion board is to exam.docx
 
Overall Scenario Always Fresh Foods Inc. is a food distributor w.docx
Overall Scenario Always Fresh Foods Inc. is a food distributor w.docxOverall Scenario Always Fresh Foods Inc. is a food distributor w.docx
Overall Scenario Always Fresh Foods Inc. is a food distributor w.docx
 
OverviewCreate a 15-minute oral presentation (3–4 pages) that .docx
OverviewCreate a 15-minute oral presentation (3–4 pages) that .docxOverviewCreate a 15-minute oral presentation (3–4 pages) that .docx
OverviewCreate a 15-minute oral presentation (3–4 pages) that .docx
 
Overall CommentsHi Khanh,Overall you made a nice start with y.docx
Overall CommentsHi Khanh,Overall you made a nice start with y.docxOverall CommentsHi Khanh,Overall you made a nice start with y.docx
Overall CommentsHi Khanh,Overall you made a nice start with y.docx
 
Overall CommentsHi Khanh,Overall you made a nice start with.docx
Overall CommentsHi Khanh,Overall you made a nice start with.docxOverall CommentsHi Khanh,Overall you made a nice start with.docx
Overall CommentsHi Khanh,Overall you made a nice start with.docx
 
Overall feedbackYou addressed most all of the assignment req.docx
Overall feedbackYou addressed most all  of the assignment req.docxOverall feedbackYou addressed most all  of the assignment req.docx
Overall feedbackYou addressed most all of the assignment req.docx
 
Overall Comments Overall you made a nice start with your U02a1 .docx
Overall Comments Overall you made a nice start with your U02a1 .docxOverall Comments Overall you made a nice start with your U02a1 .docx
Overall Comments Overall you made a nice start with your U02a1 .docx
 
Overview This purpose of the week 12 discussion board is to e.docx
Overview This purpose of the week 12 discussion board is to e.docxOverview This purpose of the week 12 discussion board is to e.docx
Overview This purpose of the week 12 discussion board is to e.docx
 
Over the years, the style and practice of leadership within law .docx
Over the years, the style and practice of leadership within law .docxOver the years, the style and practice of leadership within law .docx
Over the years, the style and practice of leadership within law .docx
 

Recently uploaded

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 

Recently uploaded (20)

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 

DROP TABLE ordline ;Drop TABLE OrderTBL ;DROP TABLE Customer.docx

  • 1. DROP TABLE ordline ; Drop TABLE OrderTBL ; DROP TABLE Customer ; dROP TABLE Employee ; DROP TABLE Product ; CREATE TABLE Product ( ProdNo CHAR(8), ProdName VARCHAR2(50) CONSTRAINT ProdNameRequired NOT NULL, ProdMfg VARCHAR2(20) CONSTRAINT ProdMfgRequired NOT NULL, ProdQOH INTEGER, ProdPrice DECIMAL(12,2), ProdNextShipDate DATE, CONSTRAINT PKProduct PRIMARY KEY (ProdNo) );
  • 2. INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P0036566','17 inch Color Monitor','ColorMeg, Inc.',12,'20-Feb-2007',169.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P0036577','19 inch Color Monitor','ColorMeg, Inc.',10,'20-Feb-2007',319.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P1114590','R3000 Color Laser Printer','Connex',5,'22-Jan-2007',699.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P1412138','10 Foot Printer
  • 3. Cable','Ethlite',100,'',12.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P1445671','8-Outlet Surge Protector','Intersafe',33,'',14.99); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P1556678','CVP Ink Jet Color Printer','Connex',8, '22-Jan-2007',99.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P3455443','Color Ink Jet Cartridge','Connex',24,'22-Jan-2007',38.00); INSERT INTO product
  • 4. (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P4200344','36-Bit Color Scanner','UV Components',16,'29-Jan-2007',199.99); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P6677900','Black Ink Jet Cartridge','Connex',44,'',25.69); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P9995676','Battery Back-up System','Cybercx',12,'1-Feb-2007',89.00); CREATE TABLE Employee ( EmpNo CHAR(8), EmpFirstName VARCHAR2(20) CONSTRAINT EmpFirstNameRequired NOT NULL,
  • 5. EmpLastName VARCHAR2(30) CONSTRAINT EmpLastNameRequired NOT NULL, EmpPhone CHAR(15), EmpEMail VARCHAR(50) CONSTRAINT EmpEMailRequired NOT NULL, SupEmpNo CHAR(8), EmpCommRate DECIMAL(3,3), CONSTRAINT PKEmployee PRIMARY KEY (EmpNo), CONSTRAINT UniqueEMail UNIQUE(EmpEMail), CONSTRAINT FKSupEmpNo FOREIGN KEY (SupEmpNo) REFERENCES Employee ) ; INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E9884325','Thomas','Johnson','(303) 556- 9987','[email protected]','',0.05); INSERT INTO employee
  • 6. (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E8843211','Amy','Tang','(303) 556- 4321','[email protected]','E9884325',0.04); INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E9345771','Colin','White','(303) 221- 4453','[email protected]','E9884325',0.04); INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E1329594','Landi','Santos','(303) 789- 1234','[email protected]','E8843211',0.02); INSERT INTO employee
  • 7. (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E8544399','Joe','Jenkins','(303) 221- 9875','[email protected]','E8843211',0.02); INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E9954302','Mary','Hill','(303) 556- 9871','[email protected]','E8843211',0.02); INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo) VALUES ('E9973110','Theresa','Beck','(720) 320- 2234','[email protected]','E9884325');
  • 8. CREATE TABLE Customer ( CustNo CHAR(8), CustFirstName VARCHAR2(20) CONSTRAINT CustFirstNameRequired NOT NULL, CustLastName VARCHAR2(30) CONSTRAINT CustLastNameRequired NOT NULL, CustStreet VARCHAR2(50), CustCity VARCHAR2(30), CustState CHAR(2), CustZip CHAR(10), CustBal DECIMAL(12,2) DEFAULT 0, CONSTRAINT PKCustomer PRIMARY KEY (CustNo) ); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C0954327','Sheri','Gordon','336 Hill St.','Littleton','CO','80129-5543',230.00);
  • 9. INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C1010398','Jim','Glussman','1432 E. Ravenna','Denver','CO','80111-0033',200.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C2388597','Beth','Taylor','2396 Rafter Rd','Seattle','WA','98103-1121',500.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C3340959','Betty','Wise','4334 153rd
  • 10. NW','Seattle','WA','98178-3311',200.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C3499503','Bob','Mann','1190 Lorraine Cir.','Monroe','WA','98013-1095',0.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C8543321','Ron','Thompson','789 122nd St.','Renton','WA','98666-1289',85.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C8574932','Wally','Jones','411 Webber
  • 11. Ave.','Seattle','WA','98105-1093',1500.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C8654390','Candy','Kendall','456 Pine St.','Seattle','WA','98105-3345',50.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9128574','Jerry','Wyatt','16212 123rd Ct.','Denver','CO','80222-0022',100.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9403348','Mike','Boren','642 Crest
  • 12. Ave.','Englewood','CO','80113-5431',0.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9432910','Larry','Styles','9825 S. Crest Lane','Bellevue','WA','98104-2211',250.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9543029','Sharon','Johnson','1223 Meyer Way','Fife','WA','98222-1123',856.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9549302','Todd','Hayes','1400 NW
  • 13. 88th','Lynnwood','WA','98036-2244',0.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9857432','Homer','Wells','123 Main St.','Seattle','WA','98105-4322',500.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9865874','Mary','Hill','206 McCaffrey','Littleton','CO','80129-5543',150.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9943201','Harry','Sanders','1280 S. Hill
  • 14. Rd.','Fife','WA','98222-2258',1000.00); CREATE TABLE OrderTbl ( OrdNo CHAR(8), OrdDate DATE CONSTRAINT OrdDateRequired NOT NULL, CustNo CHAR(8) CONSTRAINT CustNoRequired NOT NULL, EmpNo CHAR(8), OrdName VARCHAR2(50), OrdStreet VARCHAR2(50), OrdCity VARCHAR2(30), OrdState CHAR(2), OrdZip CHAR(10), CONSTRAINT PKOrderTbl PRIMARY KEY (OrdNo), CONSTRAINT FKCustNo FOREIGN KEY (CustNo) REFERENCES Customer, CONSTRAINT FKEmpNo FOREIGN KEY (EmpNo) REFERENCES Employee );
  • 15. INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1116324','23-Jan- 2007','C0954327','E8544399','Sheri Gordon','336 Hill St.','Littleton','CO','80129-5543'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1231231','23-Jan- 2007','C9432910','E9954302','Larry Styles','9825 S. Crest Lane','Bellevue','WA','98104-2211'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1241518','10-Feb-2007','C9549302','','Todd
  • 16. Hayes','1400 NW 88th','Lynnwood','WA','98036-2244'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1455122','9-Jan- 2007','C8574932','E9345771','Wally Jones','411 Webber Ave.','Seattle','WA','98105-1093'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1579999','5-Jan- 2007','C9543029','E8544399','Tom Johnson','1632 Ocean Dr.','Des Moines','WA','98222-1123'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip)
  • 17. VALUES ('O1615141','23-Jan- 2007','C8654390','E8544399','Candy Kendall','456 Pine St.','Seattle','WA','98105-3345'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1656777','11-Feb-2007','C8543321','','Ron Thompson','789 122nd St.','Renton','WA','98666-1289'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O2233457','12-Jan- 2007','C2388597','E9884325','Beth Taylor','2396 Rafter Rd','Seattle','WA','98103-1121'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity,
  • 18. OrdState, OrdZip) VALUES ('O2334661','14-Jan- 2007','C0954327','E1329594','Mrs. Ruth Gordon','233 S. 166th','Seattle','WA','98011'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O3252629','23-Jan- 2007','C9403348','E9954302','Mike Boren','642 Crest Ave.','Englewood','CO','80113-5431'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O3331222','13-Jan-2007','C1010398','','Jim Glussman','1432 E. Ravenna','Denver','CO','80111-0033'); INSERT INTO ordertbl
  • 19. (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O3377543','15-Jan- 2007','C9128574','E8843211','Jerry Wyatt','16212 123rd Ct.','Denver','CO','80222-0022'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O4714645','11-Jan- 2007','C2388597','E1329594','Beth Taylor','2396 Rafter Rd','Seattle','WA','98103-1121'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O5511365','22-Jan- 2007','C3340959','E9884325','Betty White','4334 153rd NW','Seattle','WA','98178-3311');
  • 20. INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O6565656','20-Jan- 2007','C9865874','E8843211','Mr. Jack Sibley','166 E. 344th','Renton','WA','98006-5543'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O7847172','23-Jan-2007','C9943201','','Harry Sanders','1280 S. Hill Rd.','Fife','WA','98222-2258'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O7959898','19-Feb- 2007','C8543321','E8544399','Ron Thompson','789 122nd St.','Renton','WA','98666-1289');
  • 21. INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O7989497','16-Jan- 2007','C3499503','E9345771','Bob Mann','1190 Lorraine Cir.','Monroe','WA','98013-1095'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O8979495','23-Jan- 2007','C9865874','','HelenSibley','206 McCaffrey','Renton','WA','98006-5543'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip)
  • 22. VALUES ('O9919699','11-Feb- 2007','C9857432','E9954302','Homer Wells','123 Main St.','Seattle','WA','98105-4322'); CREATE TABLE OrdLine ( OrdNo CHAR(8), ProdNo CHAR(8), Qty INTEGER DEFAULT 1, CONSTRAINT PKOrdLine PRIMARY KEY (OrdNo, ProdNo), CONSTRAINT FKOrdNo FOREIGN KEY (OrdNo) REFERENCES OrderTbl ON DELETE CASCADE, CONSTRAINT FKProdNo FOREIGN KEY (ProdNo) REFERENCES Product ); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1116324','P1445671',1);
  • 23. INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1231231','P0036566',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1231231','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1241518','P0036577',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1455122','P4200344',1); INSERT INTO ordline
  • 24. (OrdNo, ProdNo, Qty) VALUES('O1579999','P1556678',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1579999','P6677900',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1579999','P9995676',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1615141','P0036566',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1615141','P1445671',1);
  • 25. INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1615141','P4200344',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1656777','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1656777','P1556678',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O2233457','P0036577',1); INSERT INTO ordline
  • 26. (OrdNo, ProdNo, Qty) VALUES('O2233457','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O2334661','P0036566',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O2334661','P1412138',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O2334661','P1556678',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3252629','P4200344',1);
  • 27. INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3252629','P9995676',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3331222','P1412138',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3331222','P1556678',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3331222','P3455443',1); INSERT INTO ordline
  • 28. (OrdNo, ProdNo, Qty) VALUES('O3377543','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3377543','P9995676',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O4714645','P0036566',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O4714645','P9995676',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O5511365','P1412138',1);
  • 29. INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O5511365','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O5511365','P1556678',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O5511365','P3455443',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O5511365','P6677900',1); INSERT INTO ordline
  • 30. (OrdNo, ProdNo, Qty) VALUES('O6565656','P0036566',10); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7847172','P1556678',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7847172','P6677900',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7959898','P1412138',5); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7959898','P1556678',5);
  • 31. INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7959898','P3455443',5); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7959898','P6677900',5); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7989497','P1114590',2); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7989497','P1412138',2); INSERT INTO ordline
  • 32. (OrdNo, ProdNo, Qty) VALUES('O7989497','P1445671',3); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O8979495','P1114590',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O8979495','P1412138',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O8979495','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O9919699','P0036577',1);
  • 33. INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O9919699','P1114590',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O9919699','P4200344',1); Business Model and Strategic Planning Outline BUS/45 Version 5 1 University of Phoenix Material Business Model and Strategic Planning Outline I. Title Page II. Table of Contents III. Executive Summary IV. Business Model and Strategic Plan Part I: Existing Business or New Business Division; Vision, Mission, and Value Proposition V. Business Model and Strategic Plan Part II: SWOTT Analysis
  • 34. – Internal and External Environmental Analysis; Supply and Value Chain Analysis VI. Business Model and Strategic Plan Part III: Assumptions, Risk and Change Management Plan; Summary of Strategic Objectives; Balanced Score Card and its impact on stakeholders; the Communication Plan VII. Conclusion VIII. Reference Page Business Model and Strategic Plan Part I: Conceptualizing a New Product or Service Division of an Existing Business Grading Guide BUS/475 Version 5 1 Individual Assignment: Business Model and Strategic Plan Part I: Conceptualizing a New Product or Service Division of an Existing Business Purpose of Assignment Students have the opportunity to research a company and industry using University of Phoenix IBISWorld and other databases to conceptualize forming a new division of an existing company based on a new product or service. The assigned text and Business Model and Strategic Planning Outline serve as a guide to complete sections of the capstone project each week. A final paper and presentation is due in Week 5. Resources Required · University of Phoenix Material: Business Model and Strategic Planning Outline · University Library: IBISWorld, Mergent Online, Hoover’s
  • 35. databases · Strategic Management, Ch. 4. 5, & 6 · Crafting and Executing Strategy, Ch. 3, 4, & 5 Grading Guide Content 70 Percent Met Partially Met Not Met Comments: · Propose a new product or service for the new company division. The division should be customer-focused with an innovative mission statement. Ensure that you are differentiating your product or service. · Describe how the division addresses customer needs and achieves competitive advantage. · Create a vision and a business model for this new division that clearly demonstrates your decision on what you want your business to become in the future. · Explain how the vision, mission, and value of the new division align with the company’s mission and vision. · Summarize how the vision, mission, and values guide the division’s strategic direction.
  • 36. · Define your guiding principles and values for your division in the context of culture, social responsibility, and ethics and its alignment to those of the company. The paper is between 1,400 and 1,750 words in length. Total Available Total Earned 7 #/7 Writing Guidelines 30 Percent Met Partially Met Not Met Comments: The paper—including tables and graphs, headings, title page, and reference page—is consistent with APA formatting guidelines and meets course-level requirements.
  • 37. Intellectual property is recognized with in-text citations and a reference page. Paragraph and sentence transitions are present, logical, and maintain the flow throughout the paper. Sentences are complete, clear, and concise. Rules of grammar and usage are followed including spelling and punctuation. Total Available Total Earned 3 #/3
  • 38. Assignment Total 10 #/10 Additional comments: Copyright © 2014 by University of Phoenix. All rights reserved. DATABASE Take Home Semester ASSIGNMENT Summer 2014 1. Originality and depth of analysis will be considered for grading 2. Responses should be well within the limits specified for each response 3. Make sure you make note for all your assumptions (if any) and show all steps in completing your work. 4. Your responses should be submitted as a word document with 5. Use the attached DBST651.SQL File to work on Question 2. Submit your responses to PART A in the table shown below: Q no: Response 1 2 3 4
  • 40. 23 24 25 Part A 1. A lock on a larger data element increases both system overhead and waiting by transactions. True False 2. When transactions T1 and T2 are in a deadlock, one of the transactions will eventually execute to completion and let the other one continue execution. True False 3. When an update to the database takes place, the time of the update, the values of the data before and after the update, and the type of lock used are recorded in the transaction log. True False 4. To restore a database using the immediate update approach, both undo and redo operations may be necessary, whereas with the deferred update approach only redo operations are used. True False 5. Which of the following is an example of lost update?
  • 41. A. The system assigns the last aisle seat on a flight to John whereas Peter receives a window seat, although both indicated preference for an aisle seat B. John and Peter receive each a window seat as they both requested C. John is initially assigned the last window seat, but this seat is later on assigned to Peter D. None of the above 6. Julia has a lock on the savings account and Bill is trying to perform a conflicting action on the data: A. Bill's transaction is granted permission to perform the desired action B. Bill's transaction must wait until Julia's lock is released C. Bill's transaction must wait until Julia has read the savings account value D. None of the above 7. Julia has a shared lock on the savings account and Bill is trying to perform an action requesting a shared lock on the same data: A. Bill's transaction is granted permission to perform the desired action B. Bill's transaction must wait until Julia's lock is released C. Bill's transaction must wait until Julia has read the savings account value D. None of the above 8. Julia has an exclusive lock on the savings account and Bill is trying to perform an action requesting a shared lock on the same data:
  • 42. A. Bill's transaction is granted permission to perform the desired action B. Bill's transaction must wait until Julia's lock is released C. Bill's transaction must wait until Julia has read the savings account value D. None of the above 9. Which of the following will cause a deadlock? A. Transaction T1 requests an exclusive lock on data A at the same time as transaction T2 B. Transaction T1 places an exclusive lock on data A, then transaction T2 requests a shared lock on data A C. Transaction T1 places an exclusive lock on data A, then requests one on data B. Simultaneously, transaction T2 places an exclusive lock on data B, then requests one on data A D. Transaction T1 and T2 modify data A without any lock 10. In the two-phase locking protocol: A. A transaction only acquires a lock after the previously acquired lock has been released B. A transaction acquires locks as needed. After it starts releasing locks, it does not acquire new locks C. A transaction acquires all needed locks at once, then releases them after completion D. The transaction locks the full database, then releases the locks 11. Consider a transaction that updates each of the 100 employees' salaries in a table (there is one row per employee) under the immediate update mode. The transaction terminates
  • 43. abnormally after 10 rows have been updated in the database (and the normal operations have taken place on the log). What should the recovery procedure perform to make sure the transaction completes as desired? A. Redo B. Redo followed by execution of the transaction again C. Undo D. Undo followed by execution of the transaction again 12. Consider a transaction that updates each of the 100 employees' salaries in a table (there is one row per employee) under the deferred update mode. The transaction terminates abnormally after the new values of 10 rows have been written to the log. What should the recovery procedure perform to make sure the transaction completes as desired? A. Execute the transaction again B. Redo followed by execution of the transaction again C. Undo D. Undo followed by execution of the transaction again 13. Consider a transaction that updates each of the 100 employees' salaries in a table (there is one row per employee) under the immediate update mode and completes before a checkpoint. The system crashes after the checkpoint. What should the recovery procedure perform to make sure the transaction completes as desired? A. Nothing B. Redo followed by execution of the transaction again C. Undo D. Undo followed by execution of the transaction again
  • 44. 14. Consider a transaction that updates each of the 100 employees' salaries in a table (there is one row per employee) under the immediate update mode and completes after a checkpoint but before a system failure. The system crashes after the checkpoint. What should the recovery procedure perform to make sure the transaction completes as desired? A. Nothing B. Redo forward from checkpoint C. Undo D. Undo followed by execution of the transaction again 15. With database locking, a(n) _______________ lock must be obtained before reading a database item, and a(n) ___________ lock must be obtained before writing to a database item. ________________________________________ CUSTOMER In table CUSTOMER, CID is the primary key (Customer ID). RENTALS In the table RENTALS, RTN provides the rental number (the
  • 45. primary key), CID is the customer's unique id, PICKUP is the city where the car was picked up, and Return is the city where the car was returned. RENTCOST RENTCOST shows the base cost of renting a given MAKE for one day. CITYADJ If the return city of table RENTALS is the one listed in table CITYADJ, the cost of the rental is multiplied by FACTOR and by DAYS shown in table RENTLENGTH below. RENTLENGTH RENTLENGTH shows the number of days for the rental number (RTN) shown in table RENTALS. In a database used in reality, this table would be merged with the RENTALS table. 16. SELECT DISTINCT CID, CNAME FROM CUSTOMER
  • 46. WHERE CID IN (SELECT CID FROM RENTALS WHERE MAKE IN ('FORD', 'TOYOTA')) The CNAMEs shown by the execution of this query are: A. BLACK B. BLACK, JONES C. BLACK, JONES, MARTIN D. BLACK, JONES, MARTIN, VERNON 17. SELECT DISTINCT CUSTOMER.CID, CNAME FROM CUSTOMER, RENTALS, RENTCOST WHERE CUSTOMER.CID = RENTALS.CID AND RENTALS.MAKE = RENTCOST.MAKE AND NOT EXISTS (SELECT * FROM RENTALS R, RENTCOST C WHERE R.MAKE = C.MAKE AND RENTALS.CID = R.CID AND RENTCOST.COST <> C.COST) The meaning of this query is: A. List all customers with more than one car make rented B. List all customers who have only rented one make C. List all customers with one or more rentals for which the cost of each car make rented is the same D. None of the above 18. SELECT MAKE FROM RENTALS, CUSTOMER WHERE RENTALS.CID = CUSTOMER.CID AND RESID_CITY = 'HEMET' GROUP BY MAKE HAVING COUNT (DISTINCT RENTALS.CID) = (SELECT COUNT(*) FROM CUSTOMER
  • 47. WHERE RESID_CITY = 'HEMET') The execution of this query produces the following number of rows: A. 0 B. 1 C. 2 D. 3 VOTE 19. SELECT MAKE FROM RENTALS, CUSTOMER WHERE RENTALS.CID = CUSTOMER.CID AND RESID_CITY = 'HEMET ' GROUP BY MAKE HAVING COUNT (DISTINCT RENTALS.CID) = (SELECT COUNT(*) FROM CUSTOMER WHERE RESID_CITY = 'HEMET') The meaning of this query is the following: A. List all makes of cars rented to customers residing in Hemet B. List all makes of cars rented to at least one customer residing in Hemet C. List all makes of cars rented to all customers residing in Hemet D. None of the above 20. SELECT CID, CNAME FROM CUSTOMER WHERE 0 = (SELECT COUNT(*) FROM RENTALS WHERE CUSTOMER.CID = RENTALS.CID) What is the interpretation of this query?
  • 48. A. List the customers who do not have rentals B. List the customers who have one rental C. List the customers who have 0 or more rentals D. List the customers who have 1 or more rentals 21. SELECT CNAME, DATE_OUT, RTN FROM CUSTOME WHERE CUSTOMER.CID = RENTALS.CID AND BIRTHPLACE IN ('ERIE', 'CARY') AND EXISTS (SELECT * FROM RENTCOST WHERE COST < 40 AND RENTALS.MAKE= RENTCOST.MAKE) The CNAMEs shown by the execution of this query are: A. SIMON B. GREEN, BLACK, SIMON C. GREEN D. GREEN, SIMON 22. Data warehouse data are organized and summarized by table, such as CUSTOMER and ADDRESS. True False 23. In most implementations, the data warehouse and OLAP are stand-alone, independent environments. True False
  • 49. 24. ____________ query optimization takes place at compilation time. a. Dynamic c. Automatic b. Static d. Manual 25. Implementing BI in an organization involves capturing not only business data (internal and external) but also the ____. a. Metadata c. information b. Facts d. rules Part B Q No: 1 (20 Points) Let us consider the following transactions which are being performed online by students of DBST 651 using https://my.umuc.edu. Individual transactions are illustrated in the diagram shown below. Based upon your understanding and reading of Transaction Management & Concurrency Control
  • 50. chapter answer the following: time T1 T5 T6 T2 T3 checkpoint failure backup T4 T7 T8 T9 1. What is needed to restart if transaction (T3) is aborted with a rollback after checkpoint before the system failure? Explain restart of work assuming the recovery manager using deferred update. 2. Same as #1 but assume recovery manager is using immediate update approach. 3. Assuming recovery manager is using deferred update approach. Explain how the restart will impact all the transactions shown in the timeline diagram (illustrated above – T1 to T9). 4. Same as #3 but the recovery manager is using immediate update approach. 5. Discuss the impact of restart of work if in case there is a device failure?
  • 51. Q No: 2 (20 Points) Using DBST651.sql script which is available under the final exam to respond the following SQL problems: Create SQL statements for the following scenarios. Your response should include SQL statement, output and any other assumptions you have made to arrive at the solution. a. For Colorado customers compute the average amount of their orders and the number of orders placed. The result should include the customer number, customer last name, average order amount and the number of orders placed. b. For Colorado customers compute the number of unique products ordered. If a product is purchased on multiple orders, it should be counted only one time. The result should include customer number, customer last name and the number of unique products ordered. c. For each employee with a commission less than 0.04, compute the number of orders taken and the average number of products per order. The results should include the employee number, employee last name, number of orders taken and the average number of products per order. d. For each Connex product compute the number of unique customers who ordered the product in Jan 2007. The results should include the product number, product name and the number of unique customers. Q No: 3 (10 Points) Answer the following in your own words not exceeding ONE page: a. Explain the differences between a centralized and
  • 52. decentralized approach to database design. Make sure to provide suitable examples to understand your response. b. What command is used to save changes to the database? What is the syntax for this command? Illustrate with an example. c. What is a subquery? When is it used? Does the RDBMS deal with subqueries any differently from normal queries? Illustrate with examples different types of sub-query and co-related subqueries (nested etc). d. What is a view? What is the command used to create a view. Illustrate the command with an example. _942524561.vsd