Answers below questions by writing SQL statements and with screen prints where mentioned. Create table name...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Answers below questions by writing SQL statements and with screen prints where mentioned. Create table name stating with your Campus ID. Example AX23456_TableName T_Customer_22 Customerld PK TO First Name Last_name Zip_Code T_Order_22 Id OrderDate OrderNumber Customerld FK TotalAmount PK +0 T_Orderltem_22 PK +0 FK Id Orderld Productid UnitPrice Quantity FK T_Product_22 Id PK +0 ProductName UnitPrice 1- [Pts 4] Create three table, define constrains (PK, FK and Not Null) [Pts 1], data type, size [Pts 1] and Syntax [Pts 1]. Table Name = Your Campus ID_ Table Name. 2- [Pts 5] Inserts records in each table a. [Pts 1 ] Insert 3 T_Customer_22 b. [Pts 1 ] Insert 5 T_Products_22 c. [Pts 2] Insert 2 orders (Req Screen Print) d. [Pts 3] Insert order details (At least 3 items for each order) (Req Screen Print) 3- [Pts 15] Write below queries - (Required Screen Print for d, g and i) a. [Pts 1] Write SQL, Display Order filter/search by OrderDate and First_Name b. [Pts 1] Write SQL, Display total Sales Between )1/01/2020 and 08/01/2020 c. [Pts 1.5] Write SQL, Display OrderDate, OrderNumber, ProductId, UnitPrice and Qunatity from T_Order_22 and T_Orderitem_22. d. [Pts 1.5] Write SQL, Display OrderDate, OrderNumber, ProductName, and Qunatity from T_Order_22, T_Orderitem_22 and T_Product_22. e. [Pts 1.5] Write SQL, Display OrderDate, OrderNumber, ProductName, and Quantity from T_Order_22, T_Orderitem_22 and T_Product_22 filter/search by CustomerID f. [Pts 1.5] Write SQL, Display ProductName sales show max count in Asc order g. [Pts 1.5] Write SQL, Display OrderDate, Order Number, CustomerName, ProductName, Quantity and Total Price/Amount h. [Pts 1.5] Write SQL, Display Zip Code with most Sales Answers below questions by writing SQL statements and with screen prints where mentioned. Create table name stating with your Campus ID. Example AX23456_TableName T_Customer_22 Customerld PK TO First Name Last_name Zip_Code T_Order_22 Id OrderDate OrderNumber Customerld FK TotalAmount PK +0 T_Orderltem_22 PK +0 FK Id Orderld Productid UnitPrice Quantity FK T_Product_22 Id PK +0 ProductName UnitPrice 1- [Pts 4] Create three table, define constrains (PK, FK and Not Null) [Pts 1], data type, size [Pts 1] and Syntax [Pts 1]. Table Name = Your Campus ID_ Table Name. 2- [Pts 5] Inserts records in each table a. [Pts 1 ] Insert 3 T_Customer_22 b. [Pts 1 ] Insert 5 T_Products_22 c. [Pts 2] Insert 2 orders (Req Screen Print) d. [Pts 3] Insert order details (At least 3 items for each order) (Req Screen Print) 3- [Pts 15] Write below queries - (Required Screen Print for d, g and i) a. [Pts 1] Write SQL, Display Order filter/search by OrderDate and First_Name b. [Pts 1] Write SQL, Display total Sales Between )1/01/2020 and 08/01/2020 c. [Pts 1.5] Write SQL, Display OrderDate, OrderNumber, ProductId, UnitPrice and Qunatity from T_Order_22 and T_Orderitem_22. d. [Pts 1.5] Write SQL, Display OrderDate, OrderNumber, ProductName, and Qunatity from T_Order_22, T_Orderitem_22 and T_Product_22. e. [Pts 1.5] Write SQL, Display OrderDate, OrderNumber, ProductName, and Quantity from T_Order_22, T_Orderitem_22 and T_Product_22 filter/search by CustomerID f. [Pts 1.5] Write SQL, Display ProductName sales show max count in Asc order g. [Pts 1.5] Write SQL, Display OrderDate, Order Number, CustomerName, ProductName, Quantity and Total Price/Amount h. [Pts 1.5] Write SQL, Display Zip Code with most Sales
Expert Answer:
Related Book For
Accounting Information Systems
ISBN: 978-0133428537
13th edition
Authors: Marshall B. Romney, Paul J. Steinbart
Posted Date:
Students also viewed these databases questions
-
Consider the Record of Problems faced by EZ Access Clinic given in Table 1.8 (Example 1.3, Section 1.9.3). Draw the run charts for the following problem areas: a. Overtime days b. Medical errors c....
-
acters. _ A(n) is a symbol with special meaning (an operator or delimiter) in the regular- expression syntax.
-
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...
-
True or False? Azure files can be accessed from anywhere in the world using a URL that points to the file. True False
-
How do you predict these pay rate changes at Parkland Health will affect its performance?
-
Asian Americans are a small proportion of the total U.S. population. Why are they an important market segment? How can a marketer of tablet computers effectively target Asian Americans?
-
On March 1, 20XA, Chuck Larson purchases mineral rights (MR) for $30,000. On June 1, 20XA, he leases the mineral rights to Grey Wolf Oil Company, retaining a 1/5 royalty interest (RI). Grey Wolf Oil...
-
Lorien Technologies, Inc., purchased the following securities during 2011: The following transactions occurred during 2012: a. On January 1, 2012, Lorien purchased Security E for $12,000. Security E...
-
A company has current, trailing earnings of 2.1 per share. The company plans to reinvest 0.52, a share of the earnings, at an ROE of 0.093. If the required rate of return is 0.07, what is the present...
-
A. Richard McCarthy (born 2/14/64; Social Security number 100-10-9090) and Christine McCarthy (born 6/1/1966; Social security number 101-21-3434) have a 19-year-old son (born 10/2/99 Social Security...
-
Sel point Controller Actuator (final control element) Process -Controlled (Desired (electronic result) intelligence) (motor heating (physical (measurable element, etc.) system What type of control...
-
A yen futures contract settles one year from today. If spot yen is 97, the one year yen interest rate is 1% and the one year US interest rate is 3%, estimate the futures price you should find on the...
-
Some enterprising physics students working on a catapult decide to have a water balloon fight in the school hallway. The ceiling is of height 3.5 m, and the balloons are launched at a velocity of 11...
-
What are the main tax laws applicable in Puerto Rico? What is the function of the Office for the Protection of Taxpayer Rights? Which individuals are required to file a return? When are estimated tax...
-
An apple falls from a tree and hits the ground 10.9 m below. With what speed will it hit the ground? The acceleration of gravity is 9.8 m/s .
-
We create a CDO with 100 loans of $1 mill each. These loans either pay off or default (Recovery Rate = 0), and the probability of a default of each mortgage is 15%. The defaults are independent...
-
What special considerations and guidelines would you take into account in designing a group for individuals recovering from addictions? What are the most important practical and professional...
-
Solve each equation or inequality. |6x8-4 = 0
-
This case involves creating a database from an integrated REA diagram and then using the REA diagram to guide the writing of queries to prepare financial statements. Required a. Create the tables...
-
Assume that there exists a 1:1 relationship between the Receive Inventory and Disburse Cash events. How does the manner in which the relationship between the two events is implemented (i.e., in which...
-
1. Discuss the criteria to consider in specifying the structure and features of CGCs new system. 2. Identify the data that should be incorporated into CGCs new system to provide adequate planning...
-
Three bases of position power are ____________. (a) reward, expertise, and coercive power (b) legitimate, experience, and judgment power (c) knowledge, experience, and judgment power (d) reward,...
-
What are power and influence?
-
What are the key sources of power and influence?
Study smarter with the SolutionInn App