WEEK 11 Database Design. TABLE INSTANCE CHARTS Create Tables.

Slides:



Advertisements
Similar presentations
Database Design Week 10.
Advertisements

MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Access Lesson 2 Creating a Database
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
© Steven Alter, 2007, all rights reserved Database concepts Difference between a database and the Internet Reason for having a defined data structure Relational.
ISP 121 Week 1 Introduction to Databases. ISP 121, Winter Why a database and not a spreadsheet? You have too many separate files or too much data.
Access Tutorial 1 Creating a Database
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
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.
Access Lecture 1 Database Overview and Creating Tables Create an Employee Table.
Tables. Any database must contain one or more tables, because that’s where the data is stored. For any table there are two views provided: Datasheet view.
Data type – determines the type of data and range of values that can be entered in a field.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Chapter 2 Querying a Database
WEEK 11 Database Design. Agenda Hybrid Review Create Tables Add, Edit Data Create Relationships in MS Access 2010 Queries.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 3-1 LINKS TO OBJECTIVES Save a Filter as a Query Save a Filter as a Query Parameter Query Inner, Left,
Microsoft Access 2000 Creating Tables and Relationships.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Access Tutorial 2 Building a Database and Defining Table Relationships
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.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
Microsoft Access 2010 Building and Using Queries.
WEEK 10 Database Design. Agenda – Week 10 Review Hybrid Review Table Instance Charts Primary Keys Normalization.
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics to be covered §Comparing Values in Selection Criteria §Calculating Values in a Query §Changing the appearance.
WEEK 10 Database Design. Agenda – Week 10 Review Hybrid Review Primary Keys Table Instance Charts.
® 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.
Chapter 17 Creating a Database.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Using Microsoft Access 56:150 Information System Design.
® Microsoft Office 2013 Access Creating a Database.
Tutorial 9 Using Action Queries and Advanced Table Relationships.
IE 423 – Design of Decision Support Systems Database development – Building Tables
A Skills Approach Access 2010 Working with Tables © 2012 The McGraw-Hill Companies, Inc. All rights reserved Chapter 2.
Access  Getting Started  Creating Tables  Designing Tables Worksheet #8.
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.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Notes: **A Row is considered one Record. **A Column is a Field. A Database is…  an organized set of stored information usually on one topic  a collection.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
Access Tutorial 2 Building a Database and Defining Table Relationships
GO! with Microsoft Office 2016
Access Tutorial 1 Creating a Database
Practical Office 2007 Chapter 10
and Defining Table Relationships
Objectives Create an action query to create a table
GO! with Microsoft Access 2016
Building and Using Queries
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
Access Tutorial 1 Creating a Database
ICT Database Lesson 2 Designing a Database.
Access Tutorial 1 Creating a Database
Lecture 2 Lecturer: awdang aziz MS access
Tutorial 9 Using Action Queries and Advanced Table Relationships
Presentation transcript:

WEEK 11 Database Design

TABLE INSTANCE CHARTS

Create Tables

TYPES OF DATA

Common Data Types in Access Autonumber SHORT Text LONG Text Number Currency Date/Time Yes/No

Autonumber Use for unique sequential numbering Commonly used for PK (Primary Key) Increments by 1 Automatically inserted when a record is added.

SHORT Text Used for text or combinations of text and numbers, such as addresses, or for numbers that do not require calculations, such as phone numbers, part numbers, or postal codes. Stores up to 255 characters.

LONG Text Use for lengthy text and numbers, such as notes or descriptions. Should be used “sparingly”, because it takes up too much room in database Stores up to 65,536 characters (if not more)

Number Use for data to be included in mathematical calculations, except calculations involving money (use “Currency” type). When you are creating a RELATIONSHIP with an “AUTOnumber” field with the “PARENT” table

Yes/No Use for data that can be only 1 of 2 possible values, such as Yes/No, True/False, On/Off. Null values are NOT allowed

Rule One chart completed for each table Click here to open: “TableInstanceChart.xlsx” Click here

Review Relationship Essentials Need a primary key EVERY TABLE NEEDS A PRIMARY KEY Should be 1 st field Need a foreign key a Foreign Key is a column in a table used to reference a Primary Key in another table. A table does NOT necessarily have to have a Foreign Key Whenever you see: “MANY”—this will be the Foreign Key Primary key and foreign keys are essential when you create relationships that join together multiple tables in a database

CREATE TABLES IN MS ACCESS

EXTERNAL DATA tab > select the type of file you would like to import i.e. “Excel” Click on the BROWSE button, to select the location of the file you would like Double-click on the file > OK Select the checkbox: “First Row Contains Column Headings”, if you would like to use the “EXCEL” column headings Click on the NEXT button Importing “EXCEL” Files

APPEND A COPY  External Data tab > Import & Link group > click the Excel button > Browse button > double-click the file you would like  Click:  Append a copy of the records to the table > OK > NEXT > FINISH > CLOSE

Select the field name, set the Indexed option to Yes (NO Duplicates) and then click NEXT. Select your PRIMARY KEY NEXT> key in a NAME FINISH > CLOSE, without Saving the IMPORT step Importing “EXCEL” Files cont.

COMPACTING & REPAIRING A DATABASE DATABASE TOOLS > COMPACT & REPAIR button As you add, edit, & delete objects, a database changes in size To minimize the size of a database & improve performance should be done on a regular basis Rearranges how a fragmented database is stored on disk

Want More Information If you would like more information on how to use MS Access, click hereclick here

QUERIES

Is a QUESTION to the database-asking for a “set of records” from 1 or more Tables/Queries MS Access responds by displaying the requested data is a stored question, rather than a stored response results automatically update, IF table is edited, it allows you to view & operate on “selected subsets” of your data QUERIES: DEFINITION

Click here Click here to open: “Northwind Database”

Single Table Queries Select fields to display Sort by? Simple Conditions When you enter text into the criteria cell your text should be enclosed in quotes ("") to distinguish it from other expressions and operators that you may need to add.

WORKING WITH TEXT

Matching Text

OR Statement

IN Statement

NOT Statement

NOT IN Statement

LIKE “Text*” Statement

LIKE “*Text” Statement

Hybrid / Homework View “14 Week Schedule” > Week 11 > 3 rd Column