ACCESS TABLES & QUERIES. OBJECTIVES Create tables Establish table relationships Create queries Specify criteria for different data types Compact & Repair.

Slides:



Advertisements
Similar presentations
Computer Concepts BASICS 4th Edition
Advertisements

1 Chapter 1 & 2 Relational Databases and Queries CS101 WVU.
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.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
SUNY Morrisville-Norwich Campus-Week 10 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
Access Tutorial 1 Creating a Database
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
Querying a Database Microsoft Office Access 2003.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
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.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Computer Science & Engineering 2111 Introduction to Database Management Systems Relationships and Database Creation 1 CSE 2111 Introduction to Database.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
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.
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.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Access Tutorial 2 Building a Database and Defining Table Relationships
Microsoft Access Lecture -13- By lec. (Eng.) Hind Basil University of Technology Department of Materials Engineering 1.
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast, Mary Anne Poatsy Chapter.
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 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
Press Esc to Exit ©2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
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.
Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System.
1 Database Systems Introduction to Microsoft Access Part 2.
26 Mar 04 1 Application Software Practical 5/6 MS Access.
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.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
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.
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.
CHAPTER 1 – INTRODUCTION TO ACCESS Aliya Farheen March 5, 2014.
DAY 16: MICROSOFT ACCESS – CHAPTER 2 Madhuri Siddula October 8, 2015.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
1 MS Access. 2 Database – collection of related data Relational Database Management System (RDBMS) – software that uses related data stored in different.
Planning & Creating a Database By Ms. Naira Microsoft Access.
Access Chapter 1: Intro to Access Objectives Navigate among objects in Access database Difference between working in storage and memory Good database file.
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.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
Microsoft Access Database Creation and Management.
DAY 20: HOMEWORK # 4 OVERVIEW Akhila Kondai October 28, 2013.
HOMEWORK # 4 OVERVIEW Aliya Farheen Oct
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
DAY 14: ACCESS CHAPTER 1 RAHUL KAVI October 8,
Chapter 6 Many-to Many Relationship. Agenda AutoNumber Many-to-many relationship Cascaded updating and deleting Auto Lookup Parameter query Total query.
FINAL EXAM REVIEW PROJECT Computer Science 101 West Virginia University 1.
Access Tutorial 2 Building a Database and Defining Table Relationships
Tutorial 1 Creating a Database
CIS 155 Table Relationship
Microsoft Access 2003 Illustrated Complete
Access Tutorial 1 Creating a Database
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
Presentation transcript:

ACCESS TABLES & QUERIES

OBJECTIVES Create tables Establish table relationships Create queries Specify criteria for different data types Compact & Repair Database 2

CREATE TABLES Create fields in Design View Import data from another database or application –Examples: Excel spreadsheets or Word text files Enter data directly into rows in Datasheet views 3

FIELDS IN TABLES Field names should be meaningful! Access uses CamelCase notation Use uppercase letters for each first letter of each new word Example: ProductCost 4

FIELD DATA TYPES Every field has a data type Determines: –The type of data that can be entered –The operations that can be performed on that data Access recognizes 10 data types 5

DATA TYPES 6 Notice Yes/No and Lookup Wizard

EXAMPLE Download the file European_Union database Rename the file as lastname_firstname_eu.accdb. 7

LETS CREATE OUR FIRST TABLE Create a table named MemberStates Fields are MemberID and Member with data type as Text 8

9

ENTER DATA INTO TABLE 10

PRIMARY KEYS Designate appropriate primary keys MemberStates: MemberID Demographics: MemberID Economics: CountryID 11

RELATIONSHIPS Create appropriate relationships between MemberStates and Demographics MemberStates and Economics Enforce referential integrity and enable cascade updates, but do not enable cascade deletes. 12

QUERY1 Create a query that lists the ID, full name, capital, year of entry, population, and political system of EU member states. Run the query to see the unrestricted results. Restrict the query to return records for only those member states that are Republics. 13

14

15

QUERY2-QUERY WITH OPERATORS 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. 16

17

18

QUERY3-FROM QUERY2 Create a copy of Query2. Sort the results by GDP and then by name, both in descending order. 19

20

21

COMPACTING & REPAIRING A DATABASE Access databases increase in size over time Compacting –Avoids loss of data –Recovers unclaimed space –Defragments fragmented databases –Repairs corrupt databases