Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

City Tours Ltd . CREATING QUERIES GETTING STARTED Open the file SC _ AC 3 6 5 _ 2 0 2 1 _ 2 b

City Tours Ltd.
CREATING QUERIES
GETTING STARTED
Open the file SC_AC365_2021_2b_FirstLastName_1.accdb, available for download.
Save the file SC_AC365_2021_2b_FirstLastName_1.accdb as SC_AC365_2021_2b_FirstLastName_2.accdb
o Edit the file name by changing 1 to 2.
o If you do not see the .accdb file extension, do not type it. The file extension will be added for you automatically.
To complete this Project, you will also need the following files:
o Support_AC365_2021_2b_TourGuideData.xlsx
With the file SC_AC365_2021_2b_FirstLastName_2.accdb open, ensure that your first and last name is displayed as the first record in the _GradingInfoTable table.
o If the table does not display your name, delete the file and download a new copy.
PROJECT STEPS
1. City Tours Ltd. is a company that provides tours in a city that is a popular tourist destination for travelers. As a customer service manager for the company, you need to be able to query the database to help make decisions about tours and to answer questions from other employees.
Create a query based on the Guides table in Query Design View with the following options:
a. Add the GuideID, FirstName, LastName, and StartDate fields to the design grid in that order.
b. Sort the records in Ascending order by LastName.
c. Save the query using GuideLastNameSorted as the name.
Open the query in Datasheet View, then close it.
2. Open the HighPriceTours query in Design View and make the following changes to the query:
a. Delete the Length column from the design grid.
b. Add criteria to select only those records where the BasicCost field value is greater than 50.
c. Save the changes to the HighPriceTours query.
Open the query in Datasheet View, then close it.
3. Open the ChildrenOrAdult query in Design View and add criteria to select only those records where the NumAdult field value equal 1 or the NumChild field value equal 1. Save the changes to the query. Open the query in Datasheet View, confirm that six records appear in the ChildrenOrAdult query results, then close the query.
4. Open the ComparisonStartDate query in Design View and make the following changes to the query:
a. Add the FirstName field to the query design grid. The FirstName field should immediately follow the LastName field.
b. Add criteria to select only those records where the StartDate field value is less than 1/1/2016.
c. Set the format to Medium Date for the StartDate field.
d. Set the caption to DateHired for the StartDate field.
e. Save the changes to the ComparisonStartDate query.
Open the query in Datasheet View, confirm that the results match Figure 1, then close it.
Figure 1: ComparisonStartDate Query Results
5. Open the StateNameSort query in Design View and make the following changes:
a. Move the State field to the beginning of the design grid so that the order of the fields in the grid is State, CustomerID, LastName, and FirstName.
b. Sort the records in descending order by the State field and in ascending order by LastName.
Save the changes to the query. View the query in Datasheet View, then close it.
6. Open the ChildrenAndAdult query in Design View and add criteria to select only those records where the NumChild field value equal 2 and the NumAdult field value equal 2. Save the changes to the query. Open the ChildrenAndAdult query in Datasheet View, confirm that two records appear in the query results, then close the query.
7. Open the MassachusettsCustomers query in Design View and add criteria to select only those records where the State field value is MA. Save the changes to the query. Open the query in Datasheet View, confirm that four records appear in the query results, then close the query.
8. Because customers often reserve tours over the phone, it is often difficult to know the exact spelling of a particular customer when you need to request more details. Open the CustomerName query in Design View and add criteria to select only those records where the LastName field value begins with the letter M. Save the changes to the query. Open the query in Datasheet View, confirm that five records appear in the query results, then close the query.
9. Many queries require data from more than one table. For example, you may want a query to display the customer last name rather than the customer ID for a tour confirmation. Create a query in Design View based on the Customers and Confirmations tables with the following options:
a. Add the Customers table and the Confirmations table to the design window.
b. Add the LastName field from the Customers table to the design grid.
c. Add the ConfirmationID, TourNumber, and TourDate fields from the Confirmations table to the design grid.
d. Join the Customers table and the Confirmations table by drawing a line from the CustomerID field in the Customers table to the CustomerID field in the Confirmations table. (Hint: Because the field names are identical in both tables, the l

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

Step: 3

blur-text-image

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

Ehs 2.0 Revolutionizing The Future Of Safety With Digital Technology

Authors: Tony Mudd

1st Edition

B0CN69B3HW, 979-8867463663

More Books

Students also viewed these Databases questions

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago