Databases– Part 2 Lesson 1 & 2 http://www.yahmad.co.uk/

Slides:



Advertisements
Similar presentations
BASIC SKILLS AND TOOLS USING ACCESS
Advertisements

Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
MS-Access XP Lesson 2. Input Mask Property 1.Field : Phone No Data Type : Number Input Mask : Character 0 represent a single digit and phone.
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database.
Business Computer Information Systems Microsoft Office XP Access Review Lessons 1 through 5.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Databases – Part 2 Databases– Part 2 Lesson 1 & 2.
Access Tutorial 2 Building a Database and Defining Table Relationships
Databases – Part 1 Databases– Part 1 Lesson 1 & 2.
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
10 May Microsoft Access 2010 Relational databases’ program Part of the Microsoft Office package Administer relational database Update database through.
Databases – Part 1 Databases– Part 1 Lesson 7 & 8.
® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.
Complete theory from last lesson… Put today’s date in the front of your book Read pages 46 and 47 of the textbook…
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Databases – Part 1 Databases– Part 1 Lesson 5 & 6.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
10.11 Data Manipulation 1. Getting External Data.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
1 Database Systems Introduction to Microsoft Access Part 2.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Databases – Part 2 Databases– Part 2 Lesson 5 & 6.
Databases – Part 2 Task 1 – Simple Query and Report Create a Report for the following scenarios. Remember before you create the.
Databases – Part 1 Databases– Part 1 Lesson 3 & 4.
Unit 15 – Web Authoring Web Authoring Project.
Database Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
DATABASE.
Lesson 10 Databases.
Databases Chapter 9 Asfia Rahman.
Miscellaneous Excel Combining Excel and Access.
Microsoft Access 2016 Design and Implement Powerful Relational Databases Chapter 6.
GO! with Microsoft Office 2016
Access Tutorial 1 Creating a Database
Objectives Create an action query to create a table
CIS 155 Table Relationship
GO! with Microsoft Access 2016
Access Creating a Database
Access Creating a Database
Microsoft Access 2003 Illustrated Complete
Design and Implement Powerful Relational Databases Chapter 6
Introduction to Computer Science (CIS 101)
Access Tutorial 1 Creating a Database
Access Lesson 2 Creating a Database
Access Lesson 2 Creating a Database
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Excel 2007 The L Line The Express Line to Learning L Line
Access Tutorial 1 Creating a Database
Lessons Vocabulary Access 2016.
Introduction to Database Programs
Database Relationships
Flat Files & Relational Databases
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
Implementation of physical data model
Microsoft Office Illustrated Introductory, Windows XP Edition
Introduction to Database Programs
Access Tutorial 1 Creating a Database
Tutorial 8 Sharing, Integrating, and Analyzing Data
Relationships While we are on the subject of Relationships, let’s take a quick look at them.
Presentation transcript:

Databases– Part 2 Lesson 1 & 2 http://www.yahmad.co.uk/

Starter 1 – What are Data Types? Text Currency Double Date/Time Boolean OLE Object Number (Integer) http://www.yahmad.co.uk/

Starter 2 – Types of Databases? A database is information organized in such a way that a computer program can quickly select pieces of data.  Flat File Database A 'flat-file' database is one that only contains a single table of data Relationship Database A 'relational' database is one that contains two or more tables of data, connected by key fields. http://www.yahmad.co.uk/

Starter 3 – Relationship Databases? One to Many Relationships Teacher (Primary Key) Students (Foreign Key) The 'One' side is usually the primary key The 'Many' side is usually the foreign key A relational database has more than one table and the tables are linked using key fields. Advantages Teacher details only need to be entered once into the database. Mistakes are less likely to happen when entering data if it already exists. Avoids duplicating data. Data can be accessed using key fields (Primary and Foreign Keys). Queries and reports can be created using data (fields) from a number of tables which have a relationship. http://www.yahmad.co.uk/

Lesson Overview Objectives Outcomes Time Understand the different types of Databases. Understand how to import CSV files into a Database. Understand how to establish relationships between key fields. Understand how to add and update records. Outcomes Time Task 1 Import the CSV File Task 2 Create One to Many Relationship Task 3 Add 10 new Records Task 4 Update Records http://www.yahmad.co.uk/

Refer to the Video Tutorial Task 1 – Import CSV Microsoft Access: A comma-separated values (CSV) file stores tabular data (numbers and text) in plain-text form. You have to import the BookTable, Shops and Author. Click on External Data >> Text File Browse for the CSV File and then click OK to proceed. Check the date format (DMY) and apply appropriate field types. Select appropriate primary key for each table. 1 2 Refer to the Video Tutorial http://www.yahmad.co.uk/

Task 1 – Import CSV (Data Types) Shops Field Data Shop Code Text Shop Name Online Boolean Y/N Headquarters Owner Book Table Field Data BookID Number Book Name Text Author_ID Genre Shop Current Stock Sale Boolean Y/N Sold Price Currency Authors Field Data Author Code Text Author Name Nationality DOB Date/Time University Import as Double then change to currency (2dp) in design View. Key Fields (Primary) Key Fields (Foreign) http://www.yahmad.co.uk/

Task 2 - Relationships Creating one to many relationships Click on Database tools and then relationships. Add all tables Establish Relationships using the key fields Author Code (P) >> Author_ID (F) Shop Code (P) >> Shop (F) Click the Enforce Referential Integrity. Ensures no orphan records. http://www.yahmad.co.uk/

Task 3 – Adding Records http://www.yahmad.co.uk/ 1. Add new author record to the Author Table. 2. Add 10 news records to the book Table. Author Code Author Name Nationality DOB University RL222 Robert Lawrence Stine American 08/10/1943 Ohio State University Book Name Author_ID Genre Shop Current Stock Sale Sold Price Red Rain RL222 Horror abe123 5 Yes 4 £5.50 Monster Blood pow554 12 No £4.50 The Haunted Mask vin343 17 3 £6.50 The Werewolf of Fever Swamp The Secret Bedroom 33 £4.70 Let's Get Invisible 21 £3.50 My Hairiest Adventure 16 Ghost Beach bam555 19 1 Creep from the Deep The Curse Of The Mummy's Tomb 23 2 http://www.yahmad.co.uk/

Task 4 – Updating Records Update the following Stock Levels: The Hunger Games – 11 Harry Potter And The Chamber Of Secrets – 9 The Rule of Thoughts – 5 Year of the Jungle - 17 Harry Potter and the Deathly Hallows – 7 The Lost Hero – 3 Harry Potter and the Half-Blood Prince - 13 The Titan's Curse – 15 The Fall of Arthur - 13 Update the following Prices: The Heroes of Olympus - £5.75 The Fault in Our Stars - £3.75 The Rule of Thoughts - £4.75 The Eye of Minds - £5.75 Extension: Add 10 additional books from the authors listed in the authors table. You can make up the information for some of the records (price, stock level etc). http://www.yahmad.co.uk/

Plenary – Refer to the Lesson Objectives Understand the different types of Databases. Understand how to import CSV files into a Database. Understand how to establish relationships between key fields. Understand how to add and update records. Plenary Task (Q&A) Peer Assess each others work and suggest possible improvements. Discuss the levels pupils have achieved for this task. http://www.yahmad.co.uk/