The real-estate.accdb database contains four tables.
Here are the tables with their column names:
Listings: Listing Number (PK), Address, City, State, Zip,
Number of Stories, Frame Type, Basement, Heating Type, Central Air,
Taxes, School District.
Agents: Agent ID (PK), Last Name, First Name, Address, City,
Phone Number
Agent Listing: ID (PK), Agent Code, Listing Code
Rooms: RoomID (PK), Room Width, Room Length,
Floor Type, Type of Room, Listing Code
Important reminder: When constructing a query, only include those
tables that will be necessary to perform that one query.
If you include unnecessary tables, unpredictable results may occur.
Use Queries to answer the following questions. Save the queries
with names Query1, Query2, ... , Query8, corresponding to the question
being answered. For each question, show the answer to the question,
the result table and the Access query. Show the Query in a Word table.
- Compute the count of how many brick houses and how
many frame houses there are currently on the market.
- Compute the average width and average length of all
rooms in all listings. Note that not all listings even have
room information. You are computing the average width and
length for the rooms that are listed.
- Calculate the average width and average length of each
type of room. (Group by Type of Room.)
- Compute the average width and average length of all
bedrooms in all listings.
- Compute the count of how many homes have Gas FA
(forced air), Gas Boiler, Electric, or Solar heating.
You can use the trick described in
Section L, Subsection Queries with Summaries or Groupings.
- What is the highest property tax and what is the
lowest property tax for all the listings in the database.
- What are the highest and lowest property taxes
in River Forest?
- Create a Parameter Query which prompts for an agent's last name and then
displays the street address for each listing for that agent.
(The query will require three tables: Listings, Agents, and Agent
Listing.) See the Access Tutorial,i the end of Section L
to see how to construct Parameter Queries.