Access Test - 777rauer.com

advertisement
Access Test
This test is for J00148120
This document is your Access test. It will become available to you sometime during Friday, April 11. You
will have up to midnight on April 14 to submit it by Email. 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 sometime next week) 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 to an email directed to
777rauer@777rauer.com. Please remember we are talking about an access 2010 (or 2013) accdb file
(not a pdf, winzip, google or office 365 link)
For this test, the following applies
Your state is California
Your year is 1890
designated as
yr1890
when accessing the uspop table
Your counties are Lake, Modoc and Mono
Take a look at the Uspop database which you can access by clicking here. Don't forget to save this to
your machine (probably in mydocuments and allow for editing content. In it you will find a table
designated as uspop. Uspop has 3133 records. 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. You can access that file by
clicking here. You will have text set on the internet page. Use copy and paste to put this into a
notepad file. (Note:this is similar to what we did 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
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.
Access Test
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 where the row headings are the states in your section of the country, the
types of students as column headings (FT and PT as indicated in the education table) and the
number (using sum) of such students as the value.
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.
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
result will be only one number. Note: Your answer should be the result of the query only.
Please submit your Access database – uspop.accdb - to your instructor as an attached file. Use
777rauer@777rauer.com as the Email address for submission.
Download