Microsoft Access 3 Database Creation and Management.

Slides:



Advertisements
Similar presentations
Work Orders Throughout this slide show there will be hyperlinks (highlighted in blue). Follow the hyperlinks to navigate to the specified Topic or Figure.
Advertisements

Microsoft Access 2 Database Creation and Management.
The Ribbon Standard to all Office 2007 applications Organized by feature and functionality Navigation Pane Access to all objects in the current database.
Microsoft Access 3 Database Creation and Management.
Database Creation and Management
Microsoft Access 4 Database Creation and Management.
Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
Relationship and Query Assignment. Creating Relationship Assignment: Create a blank database (use any names you like) And then, import the three Excel.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Access Tutorial 3 Maintaining and Querying a Database
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
Querying a Database Using the Select Query Window
Querying a Database Microsoft Office Access 2003.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
QUERYING A DATABASE By: Dr.Ennis-Cole. OBJECTIVES: Learn how to use the Query window in Design view Create, run and Save queries Define a relationship.
SQL (Standard Query Language) Yong Choi School of Business CSU, Bakersfield.
Access Tutorial 3 Maintaining and Querying a Database
Database Creation and Management
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Maintaining and Querying a Database Microsoft Access 2010.
An INTRODUCTION to MICROSOFT ACESS 2000 By Dr. Ennis-Cole.
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Food Recall System Pre Code System Design Layout Version 1.0.
Microsoft Access – Tutorial 3
Microsoft Access 2 Database Creation and Management.
Microsoft Access 3 Database Creation and Management.
Microsoft Access Introduction. What Is a Database Suppose you are a school administrator. You need to have information about –Students –Faculty –Staff.
Microsoft Access Queries Birgül Kutlu. SORTING AND FILTERING Sorting and filtering allow you to view records in a table in different ways such as: reordering.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
Microsoft Office 2007 Access Chapter 2 Querying a Database.
Examining data using Microsoft Access Queries Using Criteria and Calculations SESSION 3.2 This section covers specifying an exact match condition in a.
Concepts of Database Management Seventh Edition
Database1 Database Creation and Management. About Database Development…. The course is not designed to train you as an IT specialist……. It is not about.
Microsoft Access Intro Class 6 Relationships.
SESSION 3.1 This section covers using the query window in design view to create a query and sorting & filtering data while in a datasheet view. Microsoft.
Part II. Query Types On the design query table pane, right click and the cascading window will appear.
Filtering Data A filter is a set of restrictions you place on the records of an open datasheet or form to temporarily isolate a subset of the records.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
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.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
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.
IBS 520 Introduction to Internet Technology Database Fundamentals Week 4.
Microsoft Access 4 Database Creation and Management.
Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.
BA271 Week 6 Lecture Dave Sullivan. Goal for today… Status Report – Review where we are … Status Report – Review where we are … Begin learning about Microsoft.
MS-Access XP Lesson 4. Modifying Queries 1.Select query in queries 2.Click design button or Right click on query and click design view 3.Change query.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
DAY 18: MICROSOFT ACCESS – CHAPTER 3 CONTD. Akhila Kondai October 21, 2013.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Access Query Design. IT Fundamentals2 Access Query Design The Query design screen provides a mechanism for selecting specific data from datafile(s) by:
Microsoft Access 1 Database Creation and Management.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
Access Chapter 2 Querying a Database.
Microsoft Access – Tutorial 3
Querying a Database Using the Select Query Window
Microsoft Office Access 2003
Creating and Modifying Queries
Tutorial 3 – Querying a Database
Microsoft Office Access 2003
New Perspectives on Microsoft
Presentation transcript:

Microsoft Access 3 Database Creation and Management

What is an Access query? You can create a query when you need ONLY a portion of the data form tables (or existing queries). For example, you may only need to see customers who live in CA. The response would be to display only the records whose state field matches with CA. Multiple tables or queries can be used. Restrictions can be used Comparison operators The design view is used to specify the fields and records you want to see.

The Query Design view window Fields used in the query are selected from the field list and added to the design grid. You can run the query at any time by clicking the Run button.

Before creating a query Review each table Identify necessary information such as data type, PK, FK, and so on. Possibly figure it out manually (improve accuracy) Review relationships Identify primary and related tables Identify corresponding fields

Creating a Sample Query Kim Carpenter, the director of marketing at the Valle, wants a list of all restaurant customers so that her staff can call customers to check on their satisfaction with Valle coffee’s services and products. She wants to have only followings; CustomerName, City, State, OwnerName, and Phone. Use restaurant 3 databasedatabase Save the query as First Customer List.

OrderNumCustomerNumPaidInvoiceAmtBillingDate No /15/2001 OrderNumProductCodeQty ProductCodeCoffeeNameWeight/SizePriceDecaf 2301Colombian Aged Crop1 lb pkg7.99 Billing Address Table Customer Table Order Table Order Detail Table Product Table CustomerNumCustomerNameStreetCityStateZipCodeOwnerNamePhoneFirstContact 000ChoiCOB 105CSUBCA93311Scott Choi534809/20/2001 CustomerNumBillingNameStreetCityStateZip 129Sandy Lookout Restaurant PO Box 2800GrandvilleMI49468

More about a Query When you use the query design window, you use Query By Example (QBE). Do not include any unnecessary tables or queries in Design View of the query. Otherwise, you have to deal with unexpected problems. On your midterm, you will be penalized if you include unnecessary tables or queries. Always use a primary table. CustomerNum: Customer vs. BillingAddress Restrictions can be used as well.

Creating Queries using Multiple Tables Since there have been some major changes in the Restaurant database, Barbara wants to make sure that the database is reliable. In order to test the reliability of database query function, She wants you to generate a query. The query must include following fields: Order Number, Coffee Name, Quantity, Price, and Weight/Size. Save as Test Should select OrderNum from the Order table (primary table)

Querying and Sorting of multiple Tables Barbara wants to have following information for the upcoming quarterly report: CustomerName, City, State, BillingDate, InvoiceAmt, Paid, and First Contact. At same time, Barbara wants to sort the records by the InvoiceAmt field in ascending order. Barbara also wants to move the Paid field between the State and BillingDate field. Save as Customer Orders

Words begin or end with a: LIKE a* or LIKE *a Find between values: (NOT) BETWEEN AND Find exact match value: 1/10/2013 Expressions

Stating Query Condition And conditions stated on the “Criteria” line.

Applying Exact Condition Barbara would like to have a list of all orders billed on 01/15/2013. The list must include following fields; OrderNum, Paid, InvoiceAmt, BillingDate, CustomerName, State, OwnerName, and Phone Save as Jan Orders

Using Like a* Barbara wants to know a list of all Customer Names that begins with M. The list must include following fields; Customer Name, Order Number, First Contact and Billing Date. In addition, the Order Number must be sorted in ascending order. Save as Customer Name Begins With M

Using Between ** and ** Barbara wants to know a list of all Product Code between 2465 and The list must include following fields; Product Code, Coffee Name and Price. There should a space between number and word Save as Product Code Between 2465 And 2763.

Using Greater than (>) Barbara wants to know those records whose InvoiceAmt exceeds $2,000. Use the Customer Orders query. The query must include only following fields; Customer Name, Invoice Amount, and Billing Date. Save as High Invoice Amounts

Using And and Or Operators The And condition. The Or condition.

Creating And and Or conditions in the design grid And conditions must be specified on the same line. Or conditions must be specified on different lines.

Using AND Leonard asks Barbara for a list of orders billed on 01/15/2013 that are still unpaid. He wants to know which customers are slow in paying their invoices. Use the Customer Orders query again and make sure that this query includes following fields; CustomerName, Paid, BillingDate, and InvoiceAmt. 01/15/2013 AND unpaid (No) Save as Unpaid Jan Orders

Using OR Leonard wants to determine which restaurant customers are most valuable to Valle Coffee. Specifically, he wants to see a list of customers whose first contact date is earlier than 01/01/2004. OR who has been placed orders for greater than $2,000, so that he can call the customers personally and thank them for their business.

Using OR Make sure that this query includes following fields; CustomerName, InvoiceAmt, and First Contact. He also wants to have a sorted output in ascending order based on the customer name. If you want, you can use the Customer Orders query again Save as Top Customers

Query Practice: Generating Queries Download a database: “Roadrunner” 1. I would like to have a query that includes following fields; Employee Number, Instructor Last Name, Instructor First Name, Course Name and Time. Save as Your Course Info. 2. I would like to have a query that ONLY includes the male members who live in Burbank using following fields; First Name, Last Name, Gender, City, and State. Save as Males in Burbank.

Query Practice: Generating Queries 3. I would like to know a list of all members whose last name begins with P using following fields; First Name, Last Name, City, and State. Save as Last Names begin with P.

Query Practice: Generating Queries 4. I would like to know a list of all members whose last name that begins with A or a first name that begins with R including the following fields: First Name, Last Name, City, and State. Save as Names with A or R.

Query Practice: Generating Queries 5. I would like to know an instructor who teaches handball and students who are taking handball course. Following fields must be appear on the query: Instructor First Name, Instructor Last Name, Course Name, Member Last Name and Member First Name. In addition, the member last names should be sorted in alphabetical order. Save as Handball Listing