Designing a Database (Part I) -Identify all fields needed to produce the required information -Group related fields into tables -Determine Each Table’s.

Slides:



Advertisements
Similar presentations
Designing Tables in Microsoft Access By Ed Lance.
Advertisements

Guidelines for Setting Field Properties Each field has a number of properties, such as its name and data type, that you can set when you define the field.
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Database A collection of related information stored on a computer and organized in a manner that allows access, retrieval, and use of that data.
© Steven Alter, 2007, all rights reserved Database concepts Difference between a database and the Internet Reason for having a defined data structure Relational.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Data Types and Field Properties 5.01 Understand database tables used in business.
1 AQA ICT AS Level © Nelson Thornes Types of data.
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 Types and Field Properties 5.01 Understand database tables used in business.
Data type – determines the type of data and range of values that can be entered in a field.
Microsoft Access Tables Birgül Kutlu Bayraktar. TERMS A database is a collection of related information. An object is a competition in the database such.
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.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
Tables. What is a Table? A part of a database Container for data Pieces of data, put together, have a meaning.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Access 2007 Database Application Managing Business Information Effectively BCIS 1 and 2.
Access 2000 Part 1 Introduction to Access Agenda Starting Access. Creating Tables. Working with Tables. Setting Field Properties.
Microsoft Access Intro Class 2 Designing Databases and Tables.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
10 May Microsoft Access 2010 Relational databases’ program Part of the Microsoft Office package Administer relational database Update database through.
DATABASE DESIGN USING MICROSOFT ACCESS. What is a Database?  DMS Database management system  Database Collection of data organized in a manner that.
Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards.
Microsoft Access – Tutorial 2 Designing Databases In this tutorial, we will create a new database create a new table import tables from an existing database.
CHƯƠNG 3 Finding, Filtering, and Formatting Data.
Microsoft Access 2013 Design and Create Tables to Store Data Chapter 2.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
Microsoft Office 2013 ®® Access Tutorial 2 Building a Database and Defining Table Relationships.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Preparing To Automate Data Management Chapter 1 “You.
Using Microsoft Access 56:150 Information System Design.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
Database collection of related information stored in an organized form Database program software tool for storage & retrieval of that information.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
IE 423 – Design of Decision Support Systems Database development – Building Tables
XP Chapter 2 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Building The Database Chapter 2 “It is only the farmer.
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.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.
Data Types and Field Properties 5.01 Understand database tables used in business.
Data Types and Field Properties continued… Understand database tables used in business.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
CSCI-235 Micro-Computers in Science Microsoft Access 2002 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Pasewark & Pasewark 1 Access Lesson 2 Creating a Database Microsoft Office 2007: Introductory.
Mr C Johnston ICT Teacher
Database design Using Access 2007
Microsoft Access Prepared by the Academic Faculty Members of IT.
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.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
Microsoft Access 2016 Design and Create Tables to Store Data
Databases Chapter 9 Asfia Rahman.
Guidelines for Designing Databases
Building Tables & Defining Relationships
Microsoft Access 2013 Design and Create Tables to Store Data
Data Types and Field Properties
Design and Create Tables to Store Data Chapter 2
Introduction to Computer Science (CIS 101)
Access Lesson 2 Creating a Database
Data Types and Field Properties
Data Types and Field Properties
ICT Database Lesson 2 Designing a Database.
Data Types and Field Properties
Data Types and Field Properties
Chapter 2 Design Table and Form.
Lecture 2 Lecturer: awdang aziz MS access
Chapter 2 Design Table and Form.
Data Types and Field Properties
Data Types and Field Properties
Presentation transcript:

Designing a Database (Part I) -Identify all fields needed to produce the required information -Group related fields into tables -Determine Each Table’s Primary Key -Include a common field in related tables -Avoid Data Redundancy -Determine the properties of each field -Unique identifier -Field, Composite, New -Foreign Key

Naming Conventions -64 characters long -Letters, numbers, spaces and special characters are allowed EXCEPT.!`[] -Avoid using quotation marks -Name cannot start with a space -Table and query name MUST be unique within database Luigi’s Naming Conventions: Lesson 1 Table Names: tbl_Doctor, tbl_Patient Object Type Relevant Name

Data Types – (Access 2003) Data TypeDescriptionField Size Text Letters, digits, special characters chars Memo Equivalent to text, longer chars Number Integer, decimals 1-15 digits Date/Time Jan 1, 100 to Dec, Multiple Date and Time Formats 8 digits Currency Same as number, not subject to round- off error 15 digits Autonumber Access controlled numbers 9 digits Yes/No Boolean, True/False 1 character OLE Object Images, video, sound, documents…. 1 gig HyperLink Internet address 2048 chars Lookup Wizard Field which looks in other table for values Same as primary key of other table

Field Properties PropertyDescription Field Size Length of input Format Predefined or custom (ie. Dates) Input Mask Restricts data input to characters, digits, etc. Caption Display name on forms Default Value Automatic Value for new row Validation Rule Limits input via “formula” <>, >, <, Like, … Validation Text Error message that appears if rule is broken Required Needs data?? Allow Zero Length Strings can be “” Indexed Indexing speed up search and sort but slows update

Primary Key and Foreign Keys -Uniquely identifies each record -No Duplicate Entries (avoids data redundancy) -Entity Integrity (no null values allowed for primary key) -Access display order is by primary key -3 categories of primary keys: -Inherit in field -Composite Key -Fields created for specifically PK -Foreign Key - field whose values are primary keys from another table or null

Table Diagrams tbl_CD CDIDAutonumberPrimary Key CDTitleTextTitle of the CD ArtistIdNumberForeign Key to tbl_Artist Field name Data Type Description Table Name

Lab Assignment -Continue with our hand-held application for the hospital -Part 1 – Scheduling -Doctors who work at multiple hospitals wish to have a hand-held application that will keep track of their appointments with patients -Doctor wants to be able to find out on any given day, where the appointment is, what time, and the patient’s name -Doctor also wants general background information on the patient

Lab Assignment TO DO: 1)Create Table Structures -Proper data types and field properties -Primary and Foreign Keys -Use as few tables as possible to get the job done 2)Input Data -Enter in a minimum of 5 rows for each table (10 or more would be ideal) -Test to make sure your restrictions work 3) HAND IN (towards Assignment #1) - A brief one page summary which includes table diagrams and an explanation of your design