Creating a Relational Database

Slides:



Advertisements
Similar presentations
GCSE Computing#BristolMet Session Objectives# 21 MUST describe methods of validating data as it is input. SHOULD explain the use of key fields to connect.
Advertisements

Microsoft Access Removing Redundancy in a Database.
Access A Relational Database Management System. Prof. Leighton2 Database ► A database is a collection of data that’s related to a particular topic ► A.
FIRST COURSE Microsoft Access (Basics). XP Objectives Define the terms field, record, table, relational database, primary key, and foreign key. Learn.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
Database – Part 2a Dr. V.T. Raja Oregon State University.
Database Software Application
Database Relationships Objective 5.01 Understand database tables used in business.
Microsoft Access 2013 Build User-Friendly Database Systems Chapter 7.
Database Relationships Objective 5.01 Understand database tables used in business.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Databases Week 5 LBSC 690 Information Technology.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
© Relational Databases. © Entities Data is stored in tables. Each table is concerned with one entity An entity is a.
Access Manual 2 By Dhawala Kovuri Elham S.Khorasani Ismail Guneydas.
Database Design. Referential Integrity : data in a table that links to data in another table must always work in such a way that following the link will.
1 Outline  What is a Primary Key?  AutoNumber primary keys  Single-field primary keys  Composite-field primary key  About Foreign Keys  Database.
Microsoft Access Intro Class 6 Relationships.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
1 Database Systems Introduction to Microsoft Access Part 2.
McGraw-Hill/Irwin ©2005 The McGraw-Hill Companies, All rights reserved ©2005 The McGraw-Hill Companies, All rights reserved McGraw-Hill/Irwin.
Forms and Subforms 5.02 Understand database queries, forms, and reports used in business.
Database revision.
Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 2 – Relationships and Lookup fields.
Access Database Things to Know…. Your database is managed from this DATABASE WINDOW:
Ch6. Introduction to Database. What is a Database? Database is a collection of related information. It is organized so that it can easily be accessed,
Quiz questions. 1 A data structure that is made up of fields and records? Table.
OBJECTIVES  Understand relational databases  Explore a database  Create a database  Create a table  Create primary keys  Relate two tables  Enter.
Lesson 2: Designing a Database and Creating Tables.
Planning & Creating a Database By Ms. Naira Microsoft Access.
Referential Integrity
Exploring Office Grauer and Barber 1 One-to-Many Relationships: Subforms and Multiple-Table Queries(Wk7)
Chapter 9 Vocabulary Databases. 1.Table – a collection of information, or data arranged in columns and rows. 2.Record – all of the information about one.
The Rent-A-Dress Database
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
Database Relationships Objective 5.01 Understand database tables used in business.
Software. Because databases can get very big, it is important to decide exactly what is going to be stored in each field. Fields can be text, number,
Test SEITA.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
1 Microsoft Access 2002 Tutorial 2 – Creating And Maintaining A Database.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Data.
Year 12 > 13 Applied GCE ICT Unit 7 Using Database Software.
Creating a database table
Tables & Relationships
Microsoft Access 2016 Build User-Friendly Database Systems
Creating a Database Microsoft Access.
Basic Database Concepts
Basic Database Design COSC 2328 – Web Programming.
Stock control EPOS Just in time.
Cameron Blashka| Informer Implementation Specialist
CSCI-100 Introduction to Computing
Data Tables Product Table Vendor Table Product ID# Vendor ID#
Order Database – ER Diagram
Insert, Update, Delete Manipulating Data.
5.02 Understand database queries, forms, and reports used in business.
Databases Software This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Microsoft Applications
Primary key Introduction Introduction: A primary key, also called a primary keyword, is a key in a relational database that is unique for each record.
Order Database – ER Diagram
Databases This topic looks at the basic concept of a database, the key features and benefits of a Database Management System (DBMS) and the basic theory.
Identifying the elements of a database
Microsoft Access Date.
Databases WOW!! A database is a collection of related data.
Relationships While we are on the subject of Relationships, let’s take a quick look at them.
Presentation transcript:

Creating a Relational Database Using Microsoft Access

A Relational Database is….. A database that has more than one table in it

The main table has to have… Each table has to have….. Fields in it One of the fields has to be a primary field The main table has to have… A unique primary field

Each table has to have a relationship to the other tables This means that some field names in each table need to be the same

An example of relationships in a travel company database We have three tables: The customerid field is common to both customers and flights – this builds their relationship The hotelid field is common to both flights and hotels – this builds their relationship The three tables are therefore linked together

The travel ‘relationship’ explained Any customer can have many hotels and any hotel can have many customers. This is called…. A MANY TO MANY RELATIONSHIP This relationship cannot be created, so, we need a link table to create these relationships. This is the FLIGHT table – it ‘delivers’ the customers to the hotels.

The travel ‘relationship’ understood If you have a flight table you can now build: A ONE TO MANY RELATIONSHIP Where: A customer can have many flights, and:- A hotel can have many customers delivered to it through many flights.

Advice for creating your own travel firms relational database Choose your table headings carefully – always end them with tbl, for example customertbl. Don’t use more than 3 tables to create your relational database. Choose your field headings for each table carefully – make sure each table has a primary field that links into another table, for example the customerid is in both the customer table and the flights table. Make sure that one of your tables has a unique primary field called customer id – and that this field is an automatic number