Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MySql Database 1. Write the SQL query for the following questions, base on the database structure provided below. 1) List down average totaltaxOwed by each

MySql Database

1. Write the SQL query for the following questions, base on the database structure provided below.

1) List down average totaltaxOwed by each business type. Display business type and average total tax owed. 2) Show the names of all those individuals and their corresponding tax id, last date tax filed and total tax owed such that these individuals have filed their taxes after 2015-03-01 and owe total tax more than 5000 USD. 3) Show the names of the individual and their corresponding IRSAgentsID and order them in decreasing order of the job level of IRSAgents. (notice name is not under IRSagents)

4) Find the names of the individuals and businesses who have made not more than three payments.

5) List down Individuals names and their addresses who do not have a spouse and owe tax less than 5000 USD.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Individuals Columns taxpayerlD name address spouselD lastDateFiled lastDatePaid totalTaxOwed IRSagents Columns IRSagentlD taxpayerlD jobLevel active | TaxReturns 5 Columns taxpayer!D taxYear kind dateFiled income taxOwed Payments Columns taxpayerlD datePaid amountPaid Delinquents Columns taxpayerlD IRSagentlD collectionAgenc... Businesses Columns taxpayerlD name address businessType lastDateFiled lastDatePaid totalTaxOwed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

Which personal relationships influenced you the most?

Answered: 1 week ago