What is the average income of citizens

Assignment Help Database Management System
Reference no: EM133055432

Learning Activity:

Create your own database with the following name format mi602_your_student_number.

Create a single table that would hold information about a citizen entity for the tax department i.e. you would need to include fields to hold information such as:

  1. Name
  2. Address
  3. Data of Birth
  4. Tax File Number
  5. Other fields that you deem necessary

Make sure that you include a variety of data types. e.g date, character,number

Insert some rows of data into your table using SQL statements and create queries that will answer the following questions. You will need at least 15 rows to provide meaningful results.

  1. What is the average age of citizens?
  2. What is the average income of citizens?
  3. Which state has the highest income earner?
  4. The department wishes to add a citizen's title to the table i.e. a field to hold the value of "Mr", "Mrs", "Dr" etc.
    Alter your table to add the new column and update your data using SQL statements for both activities.
  5. Given the following tax table create a view that shows how much tax each person will pay. The view should show title, name, state and tax paid.
    You can name this view vw_TaxPayable.
  6. How many people pay no tax?
    Taxable income Tax on this income
     0 - $18,200  Nil
     $18,201 - $45,000  19 cents for each $1 over $18,200
     $45,001 - $120,000  $5,092 plus 32.5 cents for each $1 over $45,000
     $120,001 - $180,000  $29,467 plus 37 cents for each $1 over $120,000
     $180,001 and over  $51,667 plus 45 cents for each $1 over $180,000
  7. Calculate the total tax collected for all citizens. 
  8. Write a query to remove data from your table for people who pay no tax.
    Document your solution to this activity in a Word document and post your database create, data insert, table alter, create view statement and SQL statement results into Module 5.1 mi602_your_student_number database discussion forum.

Reference no: EM133055432

Questions Cloud

Determine the predetermined overhead rate for July : The company's budgeted fixed manufacturing overhead is $95,460 per month, Determine the predetermined overhead rate for July
Identify the governmental services : Can you identify the governmental services that have been provided to you since you got up this morning?
By how much the Investment in Singleton Ltd account change : Under equity accounting, by how much would the 'Investment in Singleton Ltd' account change for the year ended 31 December 20X0
Criminal investigation discussion : Describe the three basic ways computer crime can be categorized. Explain the steps taken for processing a crime scene involving electronic evidence.
What is the average income of citizens : Create a single table that would hold information about a citizen entity for the tax department - What is the average income of citizens
Summarize your findings on drug-related crimes : Summarize your findings on drug-related crimes. Explain the legal cases associated with organized crime. Explain legal cases associated with drug-related crimes
Calculate NOPAT and ROI for Tri Town Millls : For the most recent year, Tri Town had net income of $19,200,000. Calculate NOPAT, invested capital, and ROI for Tri Town Mills
What is the amount of the discount on the bonds at issuance : Shay retires these bonds by buying them on the open market for $315,750. What is the amount of the discount on the bonds at issuance
What is the firm AFN for the coming year : Cold Duck Manufacturing Inc. reported sales of $743,000 at the end of last year; What is the firm AFN for the coming year

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd