DAY 16: MICROSOFT ACCESS – CHAPTER 2 Madhuri Siddula October 8, 2015.

Slides:



Advertisements
Similar presentations
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Advertisements

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
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.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
With Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Querying a Database Microsoft Office Access 2003.
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.
Access Presentation 3 By: Rasagnya Waghray Ali Murtuza.
ACCESS TABLES & QUERIES. OBJECTIVES Create tables Establish table relationships Create queries Specify criteria for different data types Compact & Repair.
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Chapter 3 Maintaining a Database
DAY 16: ACCESS CHAPTER 2 Tazin Afrin October 10,
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access 2007 Committed to Shaping the Next Generation of.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Microsoft Access – Tutorial 3
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational.
You can use a query to view a subset of your data or to answer questions about your data. For example, if you want to view a list of student names and.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
Analyzing Data For Effective Decision Making Chapter 3.
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.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
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.
1 Database Systems Introduction to Microsoft Access Part 2.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
Maintaining a Database Access Project 3. 2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This.
® Microsoft Office 2013 Access Maintaining and Querying a Database.
Chapter 6 Creating, Sorting, and Querying a Table
INTRODUCTION TO QUERIES William Klingelsmith. Reminders MyITLab Lesson C due 10/22 Homework #4 (Nielson TV Problem) due 10/26 Last day to drop is also.
Access Chapter 1: Intro to Access Objectives Navigate among objects in Access database Difference between working in storage and memory Good database file.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Aliya Farheen October 29,2015.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Microsoft Access Database Creation and Management.
Microsoft Access 2000 Presentation 5 Creating Databases Part IV (Creating Queries)
Chapter 1 Introduction to Database. Database Concept Field: a basic data element or attribute of an object Record: a set of fields Table: a set of records.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
Lesson 4: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Set query.
DAY 14: ACCESS CHAPTER 1 RAHUL KAVI October 8,
Access Query Design. IT Fundamentals2 Access Query Design The Query design screen provides a mechanism for selecting specific data from datafile(s) by:
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
MICROSOFT ACCESS – CHAPTER 3 CONTD. Sravanthi Lakkimsetty Mar 09, 2016.
Access Tutorial 3 Maintaining and Querying a Database
Microsoft Access – Tutorial 3
Objectives Query for top values Create a parameter query
Larry Reaves October 9, 2013 Day 16: Access Chapter 2 Larry Reaves October 9, 2013.
Microsoft Office Access 2003
GO! with Microsoft® Access e
Tutorial 3 – Querying a Database
Microsoft Office Access 2003
Access: Queries IV Participation Project
Access: Queries I Participation Project
Lesson 3 Chapter 10.
Grauer and Barber Series Microsoft Access Chapter One
Relationships While we are on the subject of Relationships, let’s take a quick look at them.
Presentation transcript:

DAY 16: MICROSOFT ACCESS – CHAPTER 2 Madhuri Siddula October 8, 2015

TOPICS Single Table queries –Run the Query –Sort the query –Criteria on the query –Wildcards –Conditions on Numeric Data Multiple Table Queries

TABLE RELATIONSHIPS Access Databases are relational databases, they connect to each other tables through common fields. –Common fields are fields that contain the same data in more than one table After you have a table for each subject in your database, you must provide a way to connect the data in the tables when you need meaningful information.

TABLE RELATIONSHIPS To connect the data in your tables, create common fields in related tables, and then define table relationships. –A relationship is an association established between two tables based on common fields. –Once established, you create a query, a form, or a report that displays information from more than one table.

CREATE TABLE RELATIONSHIPS Add tables to your relationships tab

CREATE TABLE RELATIONSHIPS

Create two relationships –MemberStates and Demographics –MemberStates and Economics Enable “Enforce referential integrity” and “Cascade update related fields” Disable “Cascade delete related fields”

QUERIES Query is: –Answers a question –Creates a subset of records, according to your specifications Select query – database object that retrieves (selects) specific data from one or more tables Query design view – creates complex queries

CREATE A QUERY IN DESIGN VIEW Data source – table or tables where a query selects its data

ADD “DEMOGRAPHICS” TABLE

DISPLAY “MEMBER ID”, “CAPITAL” AND “POLITICAL SYS”

RUN THE QUERY AND SEE THE RESULTS

SORT THE QUERY Sort the result by Member ID and then by Capital in Ascending order. Remember, the sorts are applied from left to right, so any additional sorts must be applied to fields located to the right of your primary sort. If necessary, you can rearrange the fields by clicking the top of a field and dragging it to a new location.

CRITERIA ON QUERIES Display only Political Sys = “Republic”

USING WILDCARDS IN A QUERY Wildcard characters – serve as a placeholder for one or more unknown characters in the criteria. Use wildcard characters in place of the characters: –Asterisk (*) is a place holder to match one or more characters. –Question mark (?) is a wildcard that is used to search for unknown single characters.

USING WILDCARDS IN A QUERY Display records whose capital starts with either “S” or “N”.

USING WILDCARDS IN A QUERY

Also display records whose capital second letter in the name is “a”

USING WILDCARDS IN A QUERY

CONDITIONS ON NUMERIC DATA Add “Population” field to your query. Display records where population is greater than 50 million and less than 80 million.

SAVE THE QUERY

MULTIPLE TABLE QUERIES Create a query that lists the ID, full name, capital, year of entry, population, and political system of EU member states.

MULTIPLE TABLE QUERIES Add two tables “Member States” and “Demographics” when creating a query.

RUN THE QUERY

THINGS TO DO Create separate queries to provide the information requested below. Name each query after the step in which it appears (e.g., name the query in Step a as QueryA). HINT: Run your queries to test them. Make sure that they display all and only the records that you would expect to appear. Specify criteria a)Create a query that lists the ID, full name, capital, year of entry, population, and political system of EU member states. i.Run the query to see the unrestricted results. ii.Restrict the query to return records for only those member states that are Republics. HINT: The query returns 18 records.

THINGS TO DO b) Create a new query that lists the full name, GDP, employment rate, and population of member states. Only display states where the population is greater than 50 million and the employment rate is 60% or higher. Member states with GDP greater than 900 should be included irrespective of the population and employment rate. HINT: The query returns 5 records.

THINGS TO DO Sort query results c) Create a copy of Query5B. Sort the results by GDP and then by name, both in descending order. HINT: The query returns 5 records Use wildcard operators d) We wish to create a new query that lists all member countries whose names begin with “L” or “S”. We must also include countries where the second letter in the name is “R”. Display the member ID, full name, year of entry, and capital. HINT: The query returns 10 records.