Murach MySQL Chapter 6 – All queries with screenshots attached in one word document – Study Guide – Perfect Solution

Lab Price = $8
Please feel free to send us your queries at: support@iqrajavaid.com
Payment methods

Add to Cart

Buy Now

View Cart


Problem Statement
Exercises
1. Write a SELECT statement that returns one row for each vendor in the Invoices table that contains these columns : The vendor_id column from the Vendors table The sum of the invoice_total columns in the Invoices table for that vendor
This should return 34 rows.

2. Write a SELECT statement that returns one row for each vendor that contains these columns: The vendor_name column from the Vendors table The sum of the payment_total columns in the Invoices table for that vendor
Sort the result set in descending sequence by the payment total sum for each vendor.
3. Write a SELECT statement that returns one row for each vendor that contains three columns: The vendor_name column from the Vendors table The count of the invoices in the Invoices table for each vendor The sum of the invoice_total columns in the Invoices table for each vendor
4. Write a SELECT statement that returns one row for each general ledger account number that contains three columns: The account_description column from the General_Ledger_Accounts table The count of the items in the Invoice_Line_Items table that have the same account_number The sum of the line_item_amount columns in the Invoice_Line_Items table that have the same account_number
Return only those rows where the count of line items is greater than 1. This should return 10 rows.
Group the result set by account description. Sort the result set in descending sequence by the sum of the line item amounts.
5. Modify the solution to exercise 4 so it returns only invoices dated in the second quarter of 2014 (April 1, 2014 to June 30, 2014). This should still return 10 rows but with some different line item counts for each vendor. Hint: Join to the Invoices table to code a search condition based on invoice_date.
6. Write a SELECT statement that answers this question: What is the total amount invoiced for each general ledger account number? Return these columns: The account number from the Invoice_Line_Items table The sum of the line item amounts from the Invoice_Line_Items table
Use the WITH ROLLUP operator to include a row that gives the grand total. This should return 22 rows.
Note: Once you add the WITH ROLLUP operator, you may need to use MySQL Workbench’s Execute SQL Script button instead of its Execute Current Statement button to execute this statement.
7. Write a SELECT statement that answers this question: Which vendors are being paid from more than one account? Return these columns: The vendor name from the Vendors table The count of distinct general ledger accounts that apply to that vendor’s invoices
This should return 2 rows.

Relevant Material

div class=”heading”>

Screenshots
Ch 6: Query 7

Ch 6: Query 7

Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at support@iqrajavaid.com.
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at support@iqrajavaid.com and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at support@iqrajavaid.com.
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on support@iqrajavaid.com
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.
Lab Price = $8
Please feel free to send us your queries at: support@iqrajavaid.com

Payment methods

Add to Cart

Buy Now

View Cart