Review of Main Database Features

Slides:



Advertisements
Similar presentations
Microsoft® Office Access® 2007 Training
Advertisements

Microsoft Access 3 Database Creation and Management.
Tutorial 3 Queries and Table Relationships
Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Normalization Queries (contd)
Mgt 240 Lecture MS Excel and Access: Introduction to Databases September 23, 2004.
Querying a Database Using the Select Query Window
Week 2 Normalization and Queries
LSP 121 Week 2 Normalization and Queries. Normalization The Old Car Club database presented a problem – what if one person owns multiple cars? (One owner.
Build a database IV: Create queries for a new Access database Overview: Ask your data — create queries It’s time to create queries, one of the most powerful.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Concepts of Database Management, Fifth Edition
LSP 121 Week 2 Normalization and Advanced Queries.
CS&E 1111 AcQueries Querying in Access Sorting data Aggregating Data Performing Calculations Objectives: Learn how to use the Access Query Design Tool.
Microsoft Access 3 Database Creation and Management.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
Database Queries. Queries Queries are questions used to retrieve information from a database. Contain criteria to specify the records and fields to be.
Microsoft Access 2010 Building and Using Queries.
Analyzing Data For Effective Decision Making Chapter 3.
Inner Join vs. Outer Join
Microsoft ® Access ® 2010 Training Create Queries for a New Database If a yellow security bar appears at the top of the screen in PowerPoint, click Enable.
Concepts of Database Management Seventh Edition
Using Special Operators (LIKE and IN)
Part II. Query Types On the design query table pane, right click and the cascading window will appear.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making Chapter.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
ACCESS Part 2. OBJECTIVE  Use the Query Wizard.  Work with data in a query.  Use Query Design View.  Sort and find data.  Filter data Apply AND criteria.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
Reports and Queries Chapter 3 – Access text Reports – Page Queries – Page
What are queries? Queries are a way of searching for and compiling data from one or more tables. Running a query is like asking a detailed question of.
1 Access Lesson 3 Creating Queries. 2 Creating a Query with the Simple Query Wizard Query-- database object that lets you ask the database about the data.
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
DAY 18: MICROSOFT ACCESS – CHAPTER 3 CONTD. Akhila Kondai October 21, 2013.
Lecture Access – Queries. What’s a Query? A question you ask a database –ie: “Who are my Stockton customers?” –ie: “How much did Bob sell on the 14th?”
DAY 18: ACCESS CHAPTER 3 Tazin Afrin October 22,
ACCESS PROJECT TWO. PROJECT ONE In project one you: -Created Tables -Created Forms -Created Reports In this project you will learn about queries. Databases.
Computer Science & Engineering 2111 Inner Joins and Advanced Queries 1CSE 2111 Lecture-Advanced Queries.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
Querying in Access Objectives: Learn how to use the Access Query Design Tool manipulate data in Access: Sorting data Aggregating Data Performing Calculations.
Queries.
Inner Joins Objectives: Creating Queries with data from Multiple Tables Joining two tables using an Inner Join Referential Data Integrity Cascade Update.
Objectives Query for top values Create a parameter query
Plug-In T7: Problem Solving Using Access 2007
Objectives Create an action query to create a table
Learning Objective Marketers frequently have occasion to focus on data in one or several tables that is most relevant to the problem they are trying to.
Database Relationships
Learning Objective: What is referential integrity and how does it enhance marketer productivity when using a database? Discuss the implications of the.
Microsoft Access 2003 Illustrated Complete
Building and Using Queries
Microsoft Office Access 2003
GO! with Microsoft® Access e
Database Queries.
Querying Database ISYS 363.
5.02 Understand database queries, forms, and reports used in business.
Microsoft Office Access 2003
Nagendra Vemulapalli Access chapters 3&5 Nagendra Vemulapalli 1/18/2019.
Query Functions.
Access: Queries III Participation Project
Spreadsheets, Modelling & Databases
Nagendra Vemulapalli Access chapters 3&6 Nagendra Vemulapalli
Joins and other advanced Queries
Tutorial 9 Using Action Queries and Advanced Table Relationships
New Perspectives on Microsoft
Presentation transcript:

Review of Main Database Features -- Relationship Editor -- Query by Example Grid -- And/Or Logic -- Sort -- Total Query -- Sum, Average, Count, Max -- Group By, Where -- Expression Builder -- Inner/Outer Joins

Relationship Editor The relationship editor is used primarily when you are planning the query, i.e., identifying the tables that contain data that must be included in the query and the bridge tables that connect the tables containing the data.

Relationship Editor In this query, fields are drawn from the Brides and Product tables. Here are two versions of the query, the first wrongly formed because the bridge table that connects the Brides and Product tables was not included, the second properly formed because the bridge makes it possible to know which product goes with which bride.

Query By Example Grid -- Post Tables -- Select Fields from Tables -- Sort fields alphabetically or numerically -- Set criteria for selecting records using AND or OR logic -- AND operates horizontally, e.g., a record must be Condy AND 22517 to be selected or Blather AND 22517. -- OR operates vertically. All persons named Jilbert will be selected (regardless of their zip code since there is no zip AND) along with Condy and Blather.

Total Query: 1 -- Total Query opened with sigma: ∑ -- Adds to query by example grid a TOTAL row that combines values in a single field. -- Values in the field can be combined by adding them all up, SUM, by calculating their average, AVG, by counting up the number of records, COUNT, or by identifying the largest, MAX, or smallest, MIN value.

Total Query: 2 -- The GROUP By and WHERE options in a TOTAL query can be used to aggregate subsets of records, e.g., just the Flower and Food records. -- GROUP BY creates a separate record for each value found in the GROUP BY field, i.e., for Flowers and Food in the example. GROUP By can be used with or without criteria. When there are no criteria, subtotals are reported for all values in the field, i.e., the query would yield subtotals for Apparel, Venue, Food, Flowers, and Musicians since those five values exist in that field. -- WHERE is used only with criteria and only when there is more than one value in the criteria rows. It selects all records that meet the criteria, but then treats them as one big group with only one average or summed value. Result Result

Expression Builder: -- Expression Builder opens with the magic wand icon. It is like a piece of paper on which formulas may be written--but you don’t have to write the values. You can just point and click to post them on the writing slate. Expression builder is used to carry out some operation on two or more fields to create a new calculated value. Formulas are standard math. Nothing special. (Quantity x Price) x FindFee

Inner Versus Outer Joins: The join type determines which records will be reported when a query is run. When an INNER join connects two tables, records are reported only if there are values (a primary key value and a matched foreign key value) in both tables. When a LEFT OUTER join connects the tables, all records in the primary table (table on the 1side of the 1 to ∞ relationship) are reported. Only matched records (records with a foreign key value) in the related table (table on ∞ side) are reported. When a RIGHT Outer join connects the tables, all records in the related table (∞ side) are reported. Only matched records in the primary table are reported. -- The join type is specified in this menu. Note that the effects of establishing each join type are described. Option 1 is an INNER join, option 2 a LEFT OUTER and option 3 a RIGHT OUTER join.

Joins and their results are shown below. Note that every vendor is matched with a product in the inner join. The left outer join reports all vendors (including 2 with no product). The right outer join reports all products (including 2 that have no associated vendor). INNER JOIN LEFT OUTER JOIN RIGHT OUTER JOIN

Your Task: Match Database Features with the Business Problem -- Calculate the amount of tax your firm owes the state in the current year. -- Your dealership sells three different kinds of sports car. What is overall average amount that has been spent by people who bought a sports car? -- Send a thank you card to customers who, in the last month, spent $500 or more on shoes or $1000 or more on a dress at your store. -- Identify all the suppliers listed in your supplier table from whom you have never purchased a product. Delete them from the table. -- Determine how many purchases were been paid for by Master Card, American Express Card, Visa, or cash during December last year. -- What percentage of your overall sales did you pay to the credit card companies in fees last year. -- Run a query to identify the people who are your best customers—i.e., those from whom you have earned the most money. Flag them in the database so staff will bend over backwards to take good care of them.