Question

3. Create a query that will show how much money was spent by those people living in Clinton Township. Include in your output
Auntie Bs Antic ERD CUSTOMER OWNER จ PeoplelD PEOPLE จ People!d จ CharitylD City City WORKERS จ PeopleD Zip Zip Phone TermDa
3. Create a query that will show how much money was spent by those people living in Clinton Township. Include in your output the first and last name as one column, the subtotal of what they spent, the sales tax and the grand total. Make sure you round your sales tax to 2 decimals. Order your output by the customer last name. My output looked like the following (I shortened my money columns due to page size. You do not have to decrease the size of your columns) Customer Name Patricia Jones Paul Jones Tara Roswell Simon Tara Theodore Turner Subtota Sales Tax Total 48.00 2.88 50.88 4.49 19.70 1.18 20.88 0.27 4.76 145.00 8.70 153.70 16.25 0.98 7.23 4. Create a query that will find out which baby category sold more than $40 worth of items. Include in your output the item type name and price. My output looked like the following ame Total Sold Toys Baby Furniture Baby 42.50 47.95
Auntie B's Antic ERD CUSTOMER OWNER จ PeoplelD PEOPLE จ People!d จ CharitylD City City WORKERS จ PeopleD Zip Zip Phone TermDate SSN EMail PeopleType ORDERS DONATION จ Donation ITEM 9 temID temTypel ORDER ITEM OrderlD OwnerlD ITEM DONATION 9 ItemlD ITEM TYPE hemTypelD ITEM PICKUP Date
0 0
Add a comment Improve this question Transcribed image text
Answer #1

I write these two queries in structured query language because here i used MYSQL database.

3.SELECT CONCAT(first name, ',' ,last name)AS CustomerName,subtotal,ROUND(SalesTax,2),SUM(subtotal,SalesTax)AS Total FROM table ORDER BY last name;

Note:here inplace of table you have to mention the table name.

4.SELECT itemtypename AS name,price AS Total sold FROM table WHERE price>$40;

Note:here you have to mention the table name in place of table in the query and here price is nothing but total sold.

Add a comment
Know the answer?
Add Answer to:
3. Create a query that will show how much money was spent by those people living in Clinton Towns...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Hi, I'm trying to do my homework for my SQL Server class I keep getting stuck on the questions 1-...

    Hi, I'm trying to do my homework for my SQL Server class I keep getting stuck on the questions 1-5  I found out like how the format need to be I'm just stuck on implanting the code in. Auntie B's Antic ERD CUSTOMER OWNER PEOPLE PeoplelD CustomerSince CHARITY Peopleld FirstName LastName Address City State Zip Phone CellPhone EMail PeopleType CharityID Name Address City State WORKERS PeoplelD HireDate TermDate SSN ip Phone ContactID ORDERS OrderlD OrderDate CustomerlD EmployeelD DONATION DonationID DonationDate...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT