-3.1 Northwinds Calculated Fields. Madison Dewitt 1. List all customer ID's followed by a second column...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
-3.1 Northwinds Calculated Fields. Madison Dewitt 1. List all customer ID's followed by a second column combining customers' company names with their country, in parentheses. Results should look like this: "Alfreds Futterkiste (Germany)" The second column name should be: "Company (Country)" Sort by CustomerID 2. List all orders, with these fields: Order10, Orderbate, CustomerID, then in a single column like above, with "Company Name (Country)" HINT: This requires a 30IN. Sort by OrderDate then Order ID 3. List all product ID's, followed by a second column combining product names with their supplier company name in parantheses. Results should look like this: "Chai (Exotic Liquids)" The second column name should read: "Product (Supplier)" Sort by Productio 4. List all Orders with Products (Suppliers) OrderID, Orderpate, Product ID, then in a single column like above, with "Product Name (Supplier)" HINT: This requires multiple 30INS. Be sure to include all orders. Additional joins can be inner joins. Sort by OrderDate then Product ID -- 5. List Employees, including EmployeeID and a second column combining LastName, FirstName into a single column called Employee In this format: "LastName, FirstName" --Sort by EmployeeID. --6. We want to create new email addresses for each employee - List the EmployeeID for each employee, LastName, FirstName, followed by - a single field named NewEmail in this format: "FirstName.LastNane@Northwinds.com" - Sort by Employee ID. -7. List all Orders, including these fields: OrderID, OrderDate, Employee with "LastName, FirstName" in a single column, and NewEmail as constructed above Sort by OrderID 8. Calculate order subtotals per record by calculating Quantity times UnitPrice -Include these fields: OrderID, OrderDate, Product ID, UnitPrice, Discount, plus a new Discount Price column, calculated as UnitPrice (UnitPrice Discount) -9. Add two columns to the above, including Quantity and a new TotalPrice column, calculated as Discount Price times Quantity (NOTE: You will have to re-calculate Discount Price as part of the calculation for the TotalPrice column) -3.1 Northwinds Calculated Fields. Madison Dewitt 1. List all customer ID's followed by a second column combining customers' company names with their country, in parentheses. Results should look like this: "Alfreds Futterkiste (Germany)" The second column name should be: "Company (Country)" Sort by CustomerID 2. List all orders, with these fields: Order10, Orderbate, CustomerID, then in a single column like above, with "Company Name (Country)" HINT: This requires a 30IN. Sort by OrderDate then Order ID 3. List all product ID's, followed by a second column combining product names with their supplier company name in parantheses. Results should look like this: "Chai (Exotic Liquids)" The second column name should read: "Product (Supplier)" Sort by Productio 4. List all Orders with Products (Suppliers) OrderID, Orderpate, Product ID, then in a single column like above, with "Product Name (Supplier)" HINT: This requires multiple 30INS. Be sure to include all orders. Additional joins can be inner joins. Sort by OrderDate then Product ID -3.1 Northwinds Calculated Fields. Madison Dewitt 1. List all customer ID's followed by a second column combining customers' company names with their country, in parentheses. Results should look like this: "Alfreds Futterkiste (Germany)" The second column name should be: "Company (Country)" Sort by CustomerID 2. List all orders, with these fields: Order10, Orderbate, CustomerID, then in a single column like above, with "Company Name (Country)" HINT: This requires a 30IN. Sort by OrderDate then Order ID 3. List all product ID's, followed by a second column combining product names with their supplier company name in parantheses. Results should look like this: "Chai (Exotic Liquids)" The second column name should read: "Product (Supplier)" Sort by Productio 4. List all Orders with Products (Suppliers) OrderID, Orderpate, Product ID, then in a single column like above, with "Product Name (Supplier)" HINT: This requires multiple 30INS. Be sure to include all orders. Additional joins can be inner joins. Sort by OrderDate then Product ID -- 5. List Employees, including EmployeeID and a second column combining LastName, FirstName into a single column called Employee In this format: "LastName, FirstName" --Sort by EmployeeID. --6. We want to create new email addresses for each employee - List the EmployeeID for each employee, LastName, FirstName, followed by - a single field named NewEmail in this format: "FirstName.LastNane@Northwinds.com" - Sort by Employee ID. -7. List all Orders, including these fields: OrderID, OrderDate, Employee with "LastName, FirstName" in a single column, and NewEmail as constructed above Sort by OrderID 8. Calculate order subtotals per record by calculating Quantity times UnitPrice -Include these fields: OrderID, OrderDate, Product ID, UnitPrice, Discount, plus a new Discount Price column, calculated as UnitPrice (UnitPrice Discount) -9. Add two columns to the above, including Quantity and a new TotalPrice column, calculated as Discount Price times Quantity (NOTE: You will have to re-calculate Discount Price as part of the calculation for the TotalPrice column) -- 5. List Employees, including EmployeeID and a second column combining LastName, FirstName into a single column called Employee In this format: "LastName, FirstName" --Sort by EmployeeID. --6. We want to create new email addresses for each employee - List the EmployeeID for each employee, LastName, FirstName, followed by - a single field named NewEmail in this format: "FirstName.LastNane@Northwinds.com" - Sort by Employee ID. -7. List all Orders, including these fields: OrderID, OrderDate, Employee with "LastName, FirstName" in a single column, and NewEmail as constructed above Sort by OrderID 8. Calculate order subtotals per record by calculating Quantity times UnitPrice -Include these fields: OrderID, OrderDate, Product ID, UnitPrice, Discount, plus a new Discount Price column, calculated as UnitPrice (UnitPrice Discount) -9. Add two columns to the above, including Quantity and a new TotalPrice column, calculated as Discount Price times Quantity (NOTE: You will have to re-calculate Discount Price as part of the calculation for the TotalPrice column)
Expert Answer:
Answer rating: 100% (QA)
To create the calculated fields in Northwind you can use the following SQL queries Query 1 SELECT CustomerID CONCATCompanyName Country AS Company Country FROM Customers ORDER BY CustomerID A single st... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Please explain what is usury? Should interest rates be regulated by the federal or local government. Give reasons to support your answer. 2) When should a minor know better in regards to business...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
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...
-
Convert decimal + 49 and + 29 to binary, using the signed-2's-complement representation and enough digits to accommodate the numbers. Then perform the binary equivalent of ( +29) + (-49), (-29) +...
-
Financial statements for E-Perform, Inc. follow: E-PERFORM, INC. Statement of Financial Position December 31 E-PERFORM, INC. Income Statement Year Ended December 31, 2015 Additional information: 1....
-
Consider an ideal dual-loop heat-powered refrigeration cycle using R-134a as the working fluid, as shown in Fig. P9.135. Saturated vapor at 90C leaves the boiler and expands in the turbine to the...
-
Internal ecological accounting provides information for a number of internal environmental impact added objects. What are these objects? Does internal ecological accounting information differ...
-
Calculate the gravitational potential due to a thin rod of length l and mass M at a distance R from the center of the rod and in a direction perpendicular to the rod.
-
LeMoyne Manufacturing Inc.'s joint cost of producing 2,000 units of Product X, 1,000 units of Product Y, and 1,000 units of Product Z is $50,000. The unit sales values of the three products at the...
-
A committee in charge of promoting a Ladies Professional Golf Association tournament is trying to determine how best to advertise the event during the two weeks prior to the tournament. The committee...
-
INDIRECT LETTER ASSIGNMENT (10%) Submit by June 2, 11:59 p.m. SCENARIO: You are a Food and Nutrition Manager working for a London ON company*. It is mid- August 2021. Last week, you had a...
-
Claudia is self-employed and earns $190,000 p.a. If she makes a tax deductible (concessional) contribution to superannuation of $15,000, will she save tax and if so, how much? Exclude Medicare Levy/...
-
Jacob Co. sells merchandise on account to Isaiah Co. for $11,200. The invoice is dated on May 1 with terms of 2/15, net 45. What is the discount, and up to what date must the invoice be paid in order...
-
UNDER ARMOUR'S STRATEGY IN 2019: ITS STRUGGLE TO REVIVE NORTH AMERICAN SALES AND PROFITABILITY 1. How strong are the competitive forces confronting Under Armour in the market for athletic apparel,...
-
Chandler participates in a defined contribution pension plan (DCPP) offered by his employer. The plan requires that both the employer and employee each make contributions of 6% of pensionable...
-
How much would Phoebe have to invest today, in one lump sum, to end up with $50,000 in eight years? You will have to figure Present Value (PV). There is a present value calculator available on the...
-
A charged particle of mass 0.0020 kg is subjected to a magnetic field which acts at a right angle to its motion. If the particle moves in a circle of radius at a speed of what is the magnitude of the...
-
Interest Compounded Annually. When P dollars is invested at interest rate i, compounded annually, for t years, the investment grows to A dollars, where A = P(1 + i) t . Trevor's parents deposit $7800...
-
Prove that the velocity potential and the stream function for a source flow, Eqs. (3.67) and (3.72), respectively, satisfy Laplace's equation.
-
Consider a velocity field where the x and y components of velocity are given by u = cy/(x2 + y2) and v = cx/(x2 + y2), where c is a constant. Obtain the equations of the streamlines.
-
Consider an oblique shock generated at a compression corner with a deflection angle = 18.2. A straight horizontal wall is present above the corner, as shown in Fig. 9.14. If the upstream flow has...
-
How reliable is the model in Task 6? Task 6 An HIV researcher explored the factors that influenced condom use with a new partner (relationship less than 1 month old). The outcome measure was whether...
-
An HIV researcher explored the factors that influenced condom use with a new partner (relationship less than 1 month old). The outcome measure was whether a condom was used (use: condom used = 1, not...
-
A female who used a condom in her previous encounter scores 2 on all variables except perceived risk (for which she scores 6). Use the model in Task 6 to estimate the probability that she will use a...
Study smarter with the SolutionInn App