Access Test - 777rauer.com

advertisement

Access Test

name:Brooks-Wilson, Sarah L. jnumber: J00187849

Hi Sarah

This document is your Access test. It will be available for 4 days. If set on schedule this will be Nov 15 through Nov 18. Below in this Word document is instructions on submitting this test. Entries submitted after this date will probably receive a zero although your instructor always tries to be accommodating.

However, once the tests begin to be marked (we expect this to start the next weekend) he will refuse to acknowledge any late coming Email.

This test counts for 20% of your mark. It is expected that a curve will be established for this test.

However, once established it will only apply to those submitting tests. The test submission should be the

Uspop.accdb database you will be working on attached as a file to an email directed to

777rauer@777rauer.com

. You should CC yourself on this ti have a copy of your submission. Please remember we are talking about an access 2010 or 2013 accdb file (not a pdf, winzip, google or office 365 link). Do not be confused and send only the uspop.laccdb as this is not your access database.

Below are 9 questions. All but one require you to write queries or use the tables in the USPOP database.

Where it is designated as aggregate functions, you are required to use sum,avg, cout etc in a query to answer the question to receive full credit.

Here are the files you will need and the links to get them:

The text file usinfo.txt

. The Access database uspop.accdb

.Save both these files to your machine in order to use them and don’t forget to enable content.

For this test, the following applies

Your state is Alabama

Your year is 1880 designated as yr1880 when accessing the uspop table

Your counties are Clarke,Clay,Coffee

Open up the uspop database. It should look like what you saw in class. Each record contains a state and county and then information per census data from 1790 through 1960.

You are to do a set of queries which you can designate as q1,q2,q3.. or query1,query2,query3... q1.

For your year, write a query using an aggregate function that indicates the population of the entire country. There should only be one number as the result of the query. Note: Your answer should be the result of the query only. q2.

For your state and your year, write a query showing the population of each county in your state for your year q3.

There is a text file that you have to access and put on your system. It is indicated above as usinfo.txt. Use copy and paste to put this into a notepad file. (Note:this is similar to what we did

Access Test

with the Hurricane problem) Use the external data tab in Access to import this text file into an

Access table. Use the default that should set the table name to usinfo. q4.

Write a query using the usinfo table to determine the section of the country (section) that your

state is a part of. We will call this your section. Write your section here to use in the next (and other) query_____________________________ q5.

With this information about section from above, write a query that lists the states and each state's population in your year in your section of the country. This will be a join between the two tables. q6.

There is another table in your database designated as education. Write a query listing the number of colleges listed for each state in your section of the country. q7.

Write a crosstab query showing the number of fulltime students where the rows are the states of your section and the columns being the types of the colleges listed q8.

Write a query that lists the population of Your Counties for your year. Remember the Library discussion on unions and joins which will apply here. Make sure that each county is listed and the population of that county for your year is listed next to it. Also, there is no requirement of uniqueness as to county names in this country so add another constraint indicating which state the query should apply to. q9.

Repeat the above to some degree with a new query, however this time use an aggregate function in your query design to give a sum of the population of your counties in your year. The

constraints are the same. The result will be only one number. Note: Your answer should be the result of the query only.

As indicated above, Please submit your Access database – uspop.accdb - to your instructor as an attached file. Use 777rauer@777rauer.com

as the Email address for submission. CC yourself.

Download