Queries

272 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
272
On SlideShare
0
From Embeds
0
Number of Embeds
39
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Queries

  1. 1. Queries Objective 5.02 Understand queries, forms, and reports used in business.
  2. 2. Database Objects <ul><li>Objective 5.01 discussed and explained how tables are the building blocks for all databases. </li></ul><ul><li>This objective will use tables to create three types of database objects: </li></ul><ul><ul><li>Queries </li></ul></ul><ul><ul><li>Forms </li></ul></ul><ul><ul><li>Reports </li></ul></ul>
  3. 3. Query <ul><li>A query takes a database filter to the next level </li></ul><ul><li>It is created by placing filters and selecting multiple criteria (comparison operators) to extract information from one or more tables </li></ul><ul><li>The resulting data becomes an object and can be saved, recalled, and used to perform other operations </li></ul>
  4. 4. Advantages of a Query <ul><li>A query can be saved and used to perform other operations. </li></ul><ul><li>One table can be associated with multiple queries. </li></ul><ul><li>A query can perform specialized operations, such as performing calculations on field values, and place the results in a new column of a datasheet. </li></ul>
  5. 5. The Difference Between Queries and Filters <ul><li>A filter is a one-time deal. It allows application of a set of selection criteria and/or sorting instructions to the records in a table. It is a quick and temporary tool that is created for one-time use in the context of a particular table. </li></ul><ul><li>A query is reusable . It allows the selection criteria and/or sorting instructions to be saved and reused. </li></ul>
  6. 6. Comparison Operators for Queries and Filters = Equal To > Greater Than < Less Than <> Not Equal To >= Greater Than or Equal To <= Less Than or Equal To
  7. 7. Conditional Operators for Queries and Filters <ul><li>The AND condition reduces the number of records because both conditions must be met. </li></ul><ul><li>The OR condition increases the number of records because records are selected if either condition is met. </li></ul>

×