Databases – Part 2 Databases– Part 2 Lesson 1 & 2.

Slides:



Advertisements
Similar presentations
Database Relationships in Access As you recall, the data in a database is stored in tables. In a relational database like Access, you can have multiple.
Advertisements

Intro to Access 2007 Lindsey Brewer CSSCR September 18, 2009.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Microsoft Access.
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.
Access Lesson 2 Creating a Database
Integrating Access with the Web and with Other Programs.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
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.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
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.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Access Lesson 2 Creating a Database
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.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Databases – Part 1 Databases– Part 1 Lesson 7 & 8.
Unit 15 – Web Authoring Web Authoring – Qatar Tourism Lesson 1 & 2.
® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Unit 10 – Web Authoring Web Authoring – Qatar Tourism Lesson 5 & 6.
Unit 10 – Web Authoring Web Authoring – Qatar Tourism Lesson 3 & 4.
® 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.
® Microsoft Office 2013 Access Creating a Database.
1 Database Systems Introduction to Microsoft Access Part 2.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Database revision.
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.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Pasewark & Pasewark 1 Access Lesson 2 Creating a Database Microsoft Office 2007: Introductory.
Databases – Part 2 Databases– Part 2 Lesson 5 & 6.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Unit 9 – Google Sketch up Google Sketch up – Intro Lesson 1 & 2.
Databases – Part 1 Databases– Part 1 Lesson 3 & 4.
Database Applications – Microsoft Access Lesson 5 Shared Data.
Access Tutorial 2 Building a Database and Defining Table Relationships
DATABASE.
Databases Chapter 9 Asfia Rahman.
Access Tutorial 1 Creating a Database
Databases– Part 2 Lesson 1 & 2
Objectives Create an action query to create a table
Access Creating a Database
Access Creating a Database
Access Tutorial 1 Creating a Database
Access Lesson 2 Creating a Database
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Office Access 2003
Microsoft Office Access 2003
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
Microsoft Office Illustrated Introductory, Windows XP Edition
Access Tutorial 1 Creating a Database
Tutorial 8 Sharing, Integrating, and Analyzing Data
Presentation transcript:

Databases – Part 2 Databases– Part 2 Lesson 1 & 2

Databases – Part 2 Starter 1 – What are Data Types?

Databases – Part 2 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.

Databases – Part 2 Starter 3 – Relationship Databases? Students (Foreign Key) Teacher (Primary Key) One to Many Relationships 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.

Databases – Part 2 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. Lesson Overview OutcomesTime Task 1Import the CSV File Task 2Create One to Many Relationship Task 3Add 10 new Records Task 4Update Records

Databases – Part 2 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. 1.Click on External Data >> Text File 2.Browse for the CSV File and then click OK to proceed. 3.Check the date format (DMY) and apply appropriate field types. 4.Select appropriate primary key for each table. Refer to the Video Tutorial 1 2

Databases – Part 2 Task 1 – Import CSV (Data Types) Key Fields (Primary) Book Table FieldData BookIDNumber Book NameText Author_IDText GenreText ShopText Current StockNumber SaleBoolean Y/N SoldNumber PriceCurrency Authors FieldData Author CodeText Author NameText NationalityText DOBDate/Time UniversityText Shops FieldData Shop CodeText Shop NameText OnlineBoolean Y/N HeadquartersText OwnerText Key Fields (Foreign) Import as Double then change to currency (2dp) in design View.

Databases – Part 2 Task 2 - Relationships Creating one to many relationships 1)Click on Database tools and then relationships. 2)Add all tables 3)Establish Relationships using the key fields Author Code (P) >> Author_ID (F) Shop Code (P) >> Shop (F) Click all boxes.

Databases – Part 2 Task 3 – Adding Records 1. Add new author record to the Author Table. 2. Add 10 news records to the book Table. Book NameAuthor_IDGenreShopCurrent StockSaleSoldPrice Red RainRL222Horror abe1235Yes4£5.50 Monster BloodRL222Horror pow55412No5£4.50 The Haunted MaskRL222Horror vin34317Yes3£6.50 The Werewolf of Fever SwampRL222Horror abe1233Yes4£4.50 The Secret BedroomRL222 Horrorpow55433No3£4.70 Let's Get InvisibleRL222 Horrorvin34321No3£3.50 My Hairiest AdventureRL222 Horrorabe12316Yes5£6.50 Ghost BeachRL222 Horrorbam55519Yes1£4.50 Creep from the DeepRL222 Horrorpow55433No4£5.50 The Curse Of The Mummy's TombRL222 Horrorvin34323No2£4.50 Author CodeAuthor NameNationalityDOBUniversity RL222Robert Lawrence StineAmerican 08/10/1943Ohio State University

Databases – Part 2 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).

Databases – Part 2 Plenary Task (Q&A) Peer Assess each others work and suggest possible improvements. Discuss the levels pupils have achieved for this task. Plenary – Refer to the Lesson Objectives 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.