Part-1 (8 Marks) Part a:- Create database tables in your designated section with appropriate relationships(5 Marks):-...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Part-1 (8 Marks) Part a:- Create database tables in your designated section with appropriate relationships(5 Marks):- ORDER Order D OrderDate ORDER LINE Order D ProductID OrderedQuantity PRODUCT ProductID Product Description ProductFinish ProductStandard Price ProductLinelD Make sure to pick right datatype for each column considering what kind of input you are expecting in that column as per real world needs. Following constraints should be satisfied: - a. OrderID and ProductID ORDERLINE table is a composite and foreign key. b. OrderDate in ORDER table should not be empty. c. OrderQuantity in OrderLine table should always be >0 d. ProductStandard Price in PRODUCT table should be >=0.0 Part b. (3 Marks) a. Issue command to new a new column - ProductColor in Product table without dropping the table. b. Issue command to drop column ProductColor from Product table which you just created in above steps. c. What will be the output for the following command Considering there are some records in the Orderline table; - I Update OrderLine set OrderedQuantity=-1; Part-2 (3 Marks) Insert minimum 2 products, 2 orders and 2 rows in OrderLine table with any values of your choice. Part-3 (2 Marks) Issue command to delete complete data from products table and observe the output and explain the reason for the output. Once you are done paste commands and output screenshots both on word document and upload the word document. One document would be enough for all screenshots. Part-1 (8 Marks) Part a:- Create database tables in your designated section with appropriate relationships(5 Marks):- ORDER Order D OrderDate ORDER LINE Order D ProductID OrderedQuantity PRODUCT ProductID Product Description ProductFinish ProductStandard Price ProductLinelD Make sure to pick right datatype for each column considering what kind of input you are expecting in that column as per real world needs. Following constraints should be satisfied: - a. OrderID and ProductID ORDERLINE table is a composite and foreign key. b. OrderDate in ORDER table should not be empty. c. OrderQuantity in OrderLine table should always be >0 d. ProductStandard Price in PRODUCT table should be >=0.0 Part b. (3 Marks) a. Issue command to new a new column - ProductColor in Product table without dropping the table. b. Issue command to drop column ProductColor from Product table which you just created in above steps. c. What will be the output for the following command Considering there are some records in the Orderline table; - I Update OrderLine set OrderedQuantity=-1; Part-2 (3 Marks) Insert minimum 2 products, 2 orders and 2 rows in OrderLine table with any values of your choice. Part-3 (2 Marks) Issue command to delete complete data from products table and observe the output and explain the reason for the output. Once you are done paste commands and output screenshots both on word document and upload the word document. One document would be enough for all screenshots.
Expert Answer:
Answer rating: 100% (QA)
Based on the information provided in the images heres how you can create database tables for ORDER ORDERLINE and PRODUCT insert data into these tables and perform certain SQL commands as specified Par... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Why must managers be able to analyze financial statements when there is already an accountant for the company?
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Prove that point B in Figure 18.1 is not Pareto effi cient. Food Fo FB OA Abner E C B Contract curve UAB UBB MB -Medicine Z Belinda Mo Figure 18.1 Edgeworth Box for Exchange; Pareto Efficient Points...
-
An induction furnace uses electromagnetic induction to produce eddy currents in a conductor, thereby raising the conductors temperature. Commercial units operate at frequencies ranging from 60 Hz to...
-
Use the result of the preceding problem to estimate the heat of vaporization at the normal boiling point for one of the substances listed below. Compare the result with the value given in Table B.2...
-
Better Beds Ltd operates three departments. The decor department has not been performing very well and has shown a loss for the past 3 years according to the companys statement of financial...
-
In fiscal 2017, Ruthilda Inc. (Ruthilda) decided to exercise its option to redeem its outstanding bond issue before the maturity date in 2024. The bonds had a face value of $6,000,000 and Ruthilda...
-
Find the minimum tractive effort required for vehicle to maintain 70mph speed at 5%upgrade through an air density of 0.002045 slug/ft^3. Show all steps and unit conversion please Problem 2:...
-
The July transactions of Acorn Industries are described in Problem 7-2B. Problem 7-2B, Acorn Industries completes these transactions during July of the current year (the terms of all its credit sales...
-
The color of the Star Trek uniform represents each crew-member's work area. In the original Star Trek series, blue shirts are worn by medical and science staff, gold shirts are worn by the command...
-
What are the structural and biochemical features of prokaryotic cell membranes and cell walls, and how do these components contribute to cellular integrity, homeostasis, and environmental...
-
For Question 2-5 Rate sensitive Fix rate Not earning Assets 1000 2000 1000 Yield 5% 7% Total 4000 2. Find out Net Interest Income, Net Interest Margin, and GAP? Liability 800 1800 2600 Cost...
-
Precision Manufacturing Inc. (PMI). PMI specialized in producing high-quality automotive components, but faced various challenges in terms of productivity, waste reduction, and customer satisfaction....
-
= In the one-period binomial model, the stock price of Apple Inc. (AAPL) is $768 in the up move and $512 in the down move. Also, the one-period risk-free rate I =2% (per annum; NOT re), time to...
-
Can you elucidate the molecular mechanisms underlying aerobic respiration, focusing on the electron transport chain and oxidative phosphorylation?
-
Leona was in a golf tournament last week. All of her four rounds of gold were within 2 strokes of par. If par was 72, what are the maximum and minimum scores that Leona could have made in the golf...
-
What exactly is a prima facie duty? How does an ethic of prima facie duties differ from monistic and absolutist ethical theories?
-
In the last chapter you modified some queries for the Wine Depot. Now Barbara would like you to help her create some new forms. Make the following changes for Barbara using the chl l-04_student_name...
-
Open the report created in Assignment 2. Change the title of the report to Products by Buyer. Add lines to separate each buyer. Add a line above the grand total amount. Save the new report as Ch 13...
-
Modify the Products form by changing the Buyer ID text box control to a combo box control, listing the choices of Buyer ID and Buyer Name from the Buyers table. Be sure to first remove the...
-
An additive having a viscosity of $2 \mathrm{cP}$ and a density of $50 \mathrm{lb}_{\mathrm{m}} / \mathrm{ft}^{3}$ is fed from a reservoir into a mixing tank. The pressure in both the reservoir and...
-
You must determine the pump head and power required to transport a petroleum fraction $(\mu=$ $\left.60 \mathrm{cP}, ho=55 \mathrm{lb}_{\mathrm{m}} / \mathrm{ft}^{3} ight)$ at a rate of $500...
-
A pump takes water from a reservoir and delivers it to a water tower. The water in the tower is at atmospheric pressure and is $120 \mathrm{ft}$ above the reservoir. The pipeline is composed of $1000...
Study smarter with the SolutionInn App