Answered step by step
Verified Expert Solution
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 SCACbFirstLastNameaccdb, available for download.
Save the file SCACbFirstLastNameaccdb as SCACbFirstLastNameaccdb
o Edit the file name by changing to
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 SupportACbTourGuideData.xlsx
With the file SCACbFirstLastNameaccdb 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
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
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
c Save the changes to the HighPriceTours query.
Open the query in Datasheet View, then close it
Open the ChildrenOrAdult query in Design View and add criteria to select only those records where the NumAdult field value equal or the NumChild field value equal 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.
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
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 then close it
Figure : ComparisonStartDate Query Results
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
Open the ChildrenAndAdult query in Design View and add criteria to select only those records where the NumChild field value equal and the NumAdult field value equal 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.
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.
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.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started