Database Design Week 10.

Slides:



Advertisements
Similar presentations
Designing MS-Access Tables
Advertisements

Designing Tables in Microsoft Access By Ed Lance.
Microsoft Access.
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
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
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.
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.
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.
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.
FIRST COURSE Access Tutorial 1 Creating a Database.
© 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.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Access Tutorial 2 Building a Database and Defining Table Relationships
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
Microsoft Access Data Base Application. A Few Terms Database – A collection of related information. Database – A collection of related information. Field.
® 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.
® Microsoft Access 2010 Tutorial 1 Creating a Database.
Microsoft Access 2010 Building and Using Queries.
WEEK 10 Database Design. Agenda – Week 10 Review Hybrid Review Table Instance Charts Primary Keys Normalization.
Access 2013 Microsoft Access 2013 is a database application that is ideal for gathering and understanding data that’s been collected on just about anything.
WEEK 11 Database Design. TABLE INSTANCE CHARTS Create Tables.
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.
IE 423 – Design of Decision Support Systems Database development – Building Tables
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Modify a Table – Add, Delete, Move Fields Modify a Table.
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.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
Lesson 2: Designing a Database and Creating Tables.
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.
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.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
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
Tutorial 1 Creating a Database
GO! with Microsoft Office 2016
Access Tutorial 1 Creating a Database
Practical Office 2007 Chapter 10
and Defining Table Relationships
GO! with Microsoft Access 2016
Access Creating a Database
Access Creating a Database
Building and Using Queries
Access Tutorial 1 Creating a Database
Creating and Modifying Queries
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
Access Tutorial 1 Creating a Database
Lecture 2 Lecturer: awdang aziz MS access
Presentation transcript:

Database Design Week 10

Table Instance Charts

Create Tables For the tables for the sample in the Wk10_TableInstanceChart.xlsx

Types of Data

Common Data Types in Access Autonumber Text Memo 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.

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.

Memo 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 Wk10_TableInstanceChart.xlsx

Review Relationship Essentials Need a primary key EVERY TABLE NEEDS A PRIMARY KEY Should be 1st 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

Build Time For each of the following scenarios: Create and write out a business narrative Create list of ENTITIES/tables Create the attributes for the table Create the ERD and the relationship rules Create a table instance chart

HUMAN RESOURCES DEPT. 1 BUSINESS NARRATIVE: This database will collect names of employees, their contact info, skill sets, current salary, job titles and descriptions, hire date, and departments. TABLES” EMPLOYEE,

HUMAN RESOURCES 2

HUMAN RESOURCES 3

Create Tables in ms access

Table Design View Exercise: Create table for gender

Datasheet View Exercise: Add data to the gender table

Table Design View Exercise: Create Ribbon > Table Design in the Tables grouping Identify your own PK Moving the order of the rows

Create Table with Lookups Exercise: Add data to the city entity using a look up wizard as the data type for the province

Add Data to an Entity Based on another entity Exercise: Create the students table (studentID, fname, lname and gender fields only)

Edit an Entity Exercise: Complete the Students table Go back and look at your default value (note it was not added to previous records entered)

Edit Data in Datasheet View Exercise: Go back and add the age group and city for each of the students previously entered Datasheet view Record count Add a new record Search for a record Sort the records

Importing “EXCEL” Files 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

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

Importing “EXCEL” Files cont. 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

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 Visit the following site. http://www.functionx.com/access/index.htm

Queries

QUERIES: DEFINITION 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

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 From http://fontstuff.com/access/acctut06.htm

OR Statement From http://fontstuff.com/access/acctut06.htm

IN Statement From http://fontstuff.com/access/acctut06.htm

NOT Statement From http://fontstuff.com/access/acctut06.htm

NOT IN Statement From http://fontstuff.com/access/acctut06.htm

LIKE “Text*” Statement From http://fontstuff.com/access/acctut06.htm

LIKE “*Text” Statement From http://fontstuff.com/access/acctut06.htm

Hybrid / Homework Read Calculating in Access Queries Read Calculating Totals in Access Read Working out Someone’s Age Watch Multi-Table Queries Part 1 & 2 Database Assignment Part 2

HYBRID: MYITLAB HYBRID: MYITLAB MYITLAB HOMEWORK:

Quiz Time