3.5 Databases Relationships.

Slides:



Advertisements
Similar presentations
Organisation Of Data (1) Database Theory
Advertisements

Databases. A database program can be used to:  sort a file into a different order  Maintain contact with clients  search through the records for a.
Queries Help Topics Using the Access 2007, you can press the F1 to pop up the help windows, where you can search the following topics to help to generate.
CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING.
Introduction to SQL Steve Perry
Introduction to Microsoft Access Overview 1. Introduction What is Access? A relational database management system What is a Relational Database? Organized.
Database Management. ICT5 Database Administration (DBA) The DBA’s tasks will include the following: 1. The design of the database. After the initial design,
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Database Queries. Queries Queries are questions used to retrieve information from a database. Contain criteria to specify the records and fields to be.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
CPSC 203 Introduction to Computers Tutorial 03 & 29 By Jie (Jeff) Gao.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Indexes and Views Unit 7.
Databases.  A database is simply a collection of information stored in an orderly manner.  A database can be as simple as a birthday book, address book.
Databases Letts Chapter 11. A database program can be used to:  sort a file into a different order;  search through the records for a matching string.
Database Management System. DBMS A software package that allows users to create, retrieve and modify databases. A database is a collection of related.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Queries Objective 5.02 Understand queries, forms, and reports used in business.
A table is a set of data elements (values) that is organized using a model of vertical columns (which are identified by their name) and horizontal rows.
Microsoft Access Database Creation and Management.
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
ACCESS CHAPTER 2 Introduction to ACCESS Learning Objectives: Understand ACCESS icons. Use ACCESS objects, including tables, queries, forms, and reports.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
KEY STAGE 3 ICT Databases – Lesson 2. Recap of keywords – Task 2A In your workbooks from last lesson What is a database? A DATABASE is a collection of.
Key Stage 3 ICT. Open the ICT levels spread sheet and find the Database tab Read each orange box and answer in the white box. S TARTER.
Database Relationships
Databases: What they are and how they work
Microsoft Office Access 2010 Lab 1
IGCSE 4 Cambridge Designing a database table Computer Science
Query Methods Simple SQL Statements Start ….
Query Methods Where Clauses Start ….
Databases Key Revision Points.
Access Maintaining and Querying a Database
3.5 Databases Relationships.
Creating a Database Microsoft Access.
COP 4540 Database Management
Practical Office 2007 Chapter 10
Access Tutorial 3 Maintaining and Querying a Database
MS Access: Creating Advanced Queries
DATABASE CONCEPTS A database is a collection of logically related data designed to meet the information needs of one or more users Data bases are store-houses.
Database Systems Unit 16.
Database application MySQL Database and PhpMyAdmin
Database Concepts Relational Databases Start ….
Larry Reaves October 9, 2013 Day 16: Access Chapter 2 Larry Reaves October 9, 2013.
Hierarchy of Data in a Database
Week 12 Option 3: Database Design
Access Creating a Database
Microsoft Office Illustrated Fundamentals
Database Relationships
CSCI-100 Introduction to Computing
Access Creating a Database
Access Maintaining and Querying a Database
Database Management  .
Databases A brief introduction….
Lecturer: Mukhtar Mohamed Ali “Hakaale”
Database Queries.
More about Databases.
Access Lesson 2 Creating a Database
Database.
Database Relationships
Database Design and Development
Spreadsheets, Modelling & Databases
The ultimate in data organization
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.
Microsoft Access Date.
Access Click on file and then you want a new database.
Tutorial 9 Using Action Queries and Advanced Table Relationships
Presentation transcript:

3.5 Databases Relationships

3.5 Databases 3.5.1 Understand the characteristics of structured and unstructured data 3.5.2 Understand that data can be decomposed and organised in a structured database [tables, records, fields, relationships, keys] 3.5.3 Understand the need for and be able to use SQL statements

Querying a database One of the main purposes of holding data in a database is to be able to answer queries For example: What is the school record for the Senior Boys 800m, and when was it set? Which new records have been set this year? Which records have not been broken since 2010?

Creating a query In Access, you can create a query involving data from one or more tables Once a query has been created, it can be saved and run whenever it is needed

How many records have not been broken since 2011?

Records set in 2011 or before

Comparison operators used in queries Meaning Example < Less than DateRecordSet<2012 <= Less than or equal > Greater than >= = <>

Combining logical operators The two logical operators AND and OR let you combine different criteria In Access, you can combine criteria by putting them on the same line This condition can be written: DateRecordSet<=2011 AND Record = “No”

Combining logical operators How do you write criteria for a query which will list all the database records for Shot AND Hammer? (Be careful!) Write criteria which will list all the database records for which a new record was set in 2012 or 2013 in the EventCategory “Year 7 Boys”

Speeding up searches In a small database, the computer can find any record very quickly In a database containing millions of records, it can take much longer! One way of speeding up searches on a particular field such as, for example, surname, is to index the field

Indexing a database An index can be searched much more quickly than searching every record in a large database The primary key field is automatically indexed You can specify that other selected fields are to be indexed Indexed fields do not have to be unique

Worksheet 3 Now complete the Tasks 1 and 2 on Worksheet 3

Combining data from two linked tables A query can be used to combine data from two or more linked tables into a single results table The results table can be used, for example, as the basis for a form or a report

Worksheet 3 Now complete Task 3 on Worksheet 3