Do it now – PAGE 3 You will find your do it now task in your workbook – look for the start button! Tuesday, 09 April 2019.

Slides:



Advertisements
Similar presentations
MICROSOFT OFFICE ACCESS 2007.
Advertisements

Topic Denormalisation S McKeever Advanced Databases 1.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Attribute databases. GIS Definition Diagram Output Query Results.
Databases and Database Management Systems
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
G057 - Lecture 02 Introduction To Database System Concepts Mr C Johnston ICT Teacher
Session 8: Databases Teaching Computing to GCSE Level with Python.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 23 Getting Started with Access Essentials 1 Morrison / Wells / Ruffolo.
Database Applications – Microsoft Access Lesson 1 Introduction 26 Slides in Presentation Updated 8/12.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
The Database Concept and the Database Management System (DBMS) Databases.
Introduction to Database Programming with Python Gary Stewart
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
Microsoft Access 2013 ®® Case Study Creating a Database.
Entity/Relationship Modelling
Web Software Year 11.
Let try to identify the conectivity of these entity relationship
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA
Project Management: Messages
Databases Chapter 9 Asfia Rahman.
Client/Server Databases and the Oracle 10g Relational Database
Introduction To Database IT-402
GO! with Microsoft Office 2016
Using E-Business Suite Attachments
Creating a Database Microsoft Access.
Databases Chapter 16.
MIS2502: Data Analytics Relational Data Modeling
Information Systems Today: Managing in the Digital World
Database Concepts Relational Databases Start ….
GO! with Microsoft Access 2016
Mr C Johnston ICT Teacher
CSCI-100 Introduction to Computing
Chapter 4 Relational Databases
Introduction CSE 1310 – Introduction to Computers and Programming
RELATIONAL DATABASE MODEL
Do it now – PAGE 13 You will find your do it now task in your workbook – look for the start button! Thursday, 20 September 2018.
What is a Database and Why Use One?
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Case Study Creating a Database
Do it now activity Since the beginning of the term you have planned a database based on your own scenario. Using your plan you are going to create a database,
Database Applications – Microsoft Access
Do it now – PAGE 8 You will find your do it now task in your workbook – look for the start button! Tuesday, 20 November 2018.
Do it now – PAGE 11 You will find your do it now task in your workbook – look for the start button! Wednesday, 21 November 2018.
Teaching slides Chapter 8.
Databases Lesson 2.
PHP and MySQL.
Databases Software This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
MIS2502: Data Analytics Relational Data Modeling
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Do it now – PAGE 10 You will find your do it now task in your workbook – look for the start button! Tuesday, 15 January 2019.
Flat Files & Relational Databases
Getting to First Base: Introduction to Database Concepts
Advanced Database Concepts: Reports & Views
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Getting to First Base: Introduction to Database Concepts
Do it now – PAGE 10 You will find your do it now task in your workbook – look for the start button! Sunday, 28 April 2019.
Getting to First Base: Introduction to Database Concepts
MIS2502: Data Analytics Relational Data Modeling 2
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.
Introduction to MySQL NELINET October 28th, 2005.
Understanding Browsers
Do it now – PAGE 8 You will find your do it now task in your workbook – look for the start button! Sunday, 19 May 2019.
Do it now – PAGE 7 You will find your do it now task in your workbook – look for the start button! Sunday, 19 May 2019.
Do it now – PAGE 8 You will find your do it now task in your workbook – look for the start button! Sunday, 12 May 2019.
Database Management system
Do it now – PAGE 3 You will find your do it now task in your workbook – look for the start button! Thursday, 23 May 2019.
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Information system analysis and design
Presentation transcript:

Do it now – PAGE 3 You will find your do it now task in your workbook – look for the start button! Tuesday, 09 April 2019

Home learning This term we will be creating a database for a burger bar which uses smart phones for taking orders. Think of a DIFFERENT scenario that a database could be used for and write a functional specification for it – this is all the things the database will need to do. DUE:

Green pen activity Complete the green pen activity in your booklet based on your teachers feedback. Tuesday, 09 April 2019

Introduction to relational databases

“Investigate how database tables are linked together” Learning Objective “Investigate how database tables are linked together” You will find differentiated outcomes for this lesson on the front of your workbook. Tuesday, 09 April 2019

Investigate how database tables are linked together New learning Issues with working with large amounts of data: What is the best way to structure the data so that it can be retrieved easily? What is the best way to search and sort the data? How will changes to the structure of the data impact on the program? Investigate how database tables are linked together

Investigate how database tables are linked together New learning Issues with working with large amounts of data: What is the best way to structure the data so that it can be retrieved easily? What is the best way to search and sort the data? How will changes to the structure of the data impact on the program? Databases help to resolve these problems by providing us with guidelines on how the data should be structured and by providing mechanisms to enable searching and sorting without having to worry about how these methods work Investigate how database tables are linked together

Investigate how database tables are linked together New learning A database is a organised body of related information that you can access in a clearly defined way. A database management system controls your access to the database and enables you to define, create and maintain that database. The database management system that we will using is called SQLite. It is used widely by companies as diverse as Apple, Airbus, General Electric and Mozilla to provide the database functionality in some of their applications. We will use SQLite as it is provided as part of the standard Python library and provides us with all of the functionality that is necessary to teach databases at A-Level. Whilst it lacks some of the advance features of systems such as MySQL or PostgreSQL it is much easier to use as it requires no additional configuration or installation. Investigate how database tables are linked together

Investigate how database tables are linked together Learning Development A database is only useful when it has a clearly defined data model. This means that you have described how the data should be structured and added any constraints that are necessary. This structure is defined as an entity-relationship model and then created using the structured query language or SQL for short. The database management system that we will using is called SQLite. It is used widely by companies as diverse as Apple, Airbus, General Electric and Mozilla to provide the database functionality in some of their applications. We will use SQLite as it is provided as part of the standard Python library and provides us with all of the functionality that is necessary to teach databases at A-Level. Whilst it lacks some of the advance features of systems such as MySQL or PostgreSQL it is much easier to use as it requires no additional configuration or installation. Investigate how database tables are linked together

Investigate how database tables are linked together Learning Development This term you will be developing a database to represent the order system of a small burger bar Over the course of this tutorial you will develop a database to represent the order system of a small burger bar. Imagine that you want customers to be able to order their food (and extras) without having to queue up - maybe they can build an order on their smartphone and then submit it whilst the sit surfing the web on their laptop at one of your benches. Investigate how database tables are linked together

Investigate how database tables are linked together Learning Development To construct a data model for we must have an understanding of both the entities and relationships that exist in a given system. The entities that may exist in the coffee shop database include: Products Customers In general you can think of an entity as an object or person in your system. This means that a single product or single customer is an entity. A group of products is an entity-type but most people refer to the grouping as an entity as well. A single entity will have various attributes to represent its characteristics. Each attribute will have an attribute name (to describe the characteristic) and an attribute type (what kind of data it is). Investigate how database tables are linked together

Investigate how database tables are linked together Learning Development Customers Products Product Customer ER Diagram In your booklet create an ER diagram for our burger bar Separate entities in the system may be related to one another. For example, a product may be purchased by customers - we can represent this as an entity-relationship diagram Notice the relationship between the entities has “crow’s feet” at each end, this means: a single product may be purchased by many customers a single customer may purchase many products Investigate how database tables are linked together

Investigate how database tables are linked together Learning Development We call this the degree of the relationship, in this instance the degree is many-to-many. There are four possible degrees of relationship: Investigate how database tables are linked together

Investigate how database tables are linked together Independent Task Make a list of all of the burgers that you will sell in your burger bar and a price that each one will cost Products To begin with we will ignore relationships and focus on a single entity - product. There are usually a number of different types of burger available, as well as soft drinks, and other food such as fries. Investigate how database tables are linked together

Investigate how database tables are linked together Learning Development We can describe product using an entity description: Product(ProductID, Name, Price) Create an entity description for your burger table There are lots of different pieces of data that we could store about each product but we will keep it simple for now. The product name and price are obvious pieces of data to store about each product but why product id? This provides us with an obvious unique identifier for each product, making it easy to locate a particular product. This is called the Primary Key. In an entity description this is underlined to set it apart from the other fields in the table. Investigate how database tables are linked together

Investigate how database tables are linked together Independent Task import sqlite3 with sqlite3.connect('example.db') as db: pass Try changing the file name (the example bit) to a different name – what happens? Students should write this in Python IDLE Creating a new, blank database using SQLite is very simple: Students can go to file > New database and save the database file Investigate how database tables are linked together

Investigate how database tables are linked together Talk Task What is the word for storing data in linked tables? What is meant by a relational database? How would you use a database with a game? What are the different relationships a table can have? Can you suggest a better way of storing data other than a spreadsheet? Based on what you know explain how a computer program stores data that it will need to access later. Investigate how database tables are linked together

Investigate how database tables are linked together Exit ticket What storage structure must data be written in when adding it to a database? R A G Investigate how database tables are linked together