subject

Using the Heather Sweeney SQL script, create and add values provided in Titanium in order to create the HSD Database. Write and save SQL statements using a text editor (e. g., Notepad) to answer the query requests below. Although you only submit the SQL text file, you may want to test and verify the SQL statements using MS SQL Server 2012. Use comment lines as descriptors for each different SQL statement.
The text file should contain the following SQL query requests

1.List the various product numbers only once in the line item table.

2.List the number of products ordered in line item by product number.

3.List the first name, last name, and number of contacts made for each customer who live in Dallas regardless of contact type .

4.List the first name, last name and phone number for customers who purchased the video companion titled ‘Kitchen Remodeling Basics’. Use a subquery.

5. List the number of invoices for each email address where the payment is made using Mastercard and the total invoice amount is less than $100.00.

6.Use the previous SQL statement to show all records regardless of payment type or amount with 2 or more invoices.

7.Verify that the total listed in line item is accurate and correct by creating a calculated field and displaying it next to the original total field.

8.Use previous SQL statement and modify it to show grand totals by invoice number.

9.List the total number of transactions by payment type greater than 8.

10. List the grand total for each customer making payments with their Visa cards.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
question
Computers and Technology, 24.06.2019 12:50
When is it most apprpriate for a development team to change the definition of done
Answers: 1
You know the right answer?
Using the Heather Sweeney SQL script, create and add values provided in Titanium in order to create...
Questions
question
Mathematics, 27.03.2020 21:40
question
Mathematics, 27.03.2020 21:40
question
Mathematics, 27.03.2020 21:40