Relational Databases Today we will look at: Different ways of searching a database Creating queries Aggregate Queries More complex queries involving different.

Slides:



Advertisements
Similar presentations
Relational Database Systems Higher Information Systems Advanced Implementation in Microsoft Access.
Advertisements

Relational Database Systems Higher Information Systems Advanced Implementation in Filemaker Pro.
AESuniversity Ad hoc Reporting. Ad hoc Reports What are ad hoc reports? Why would you use ad hoc reports? Creating an ad hoc report from a query Building.
Using a database to organize information
Microsoft Excel Working with Excel Lists, Subtotals and Pivot Tables.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
ACCESS PART 2. Objectives Database Tables Table Parts Key Field Query and Reports Import from Excel Link to Excel.
Introduction to Access. What is Access? Database tool Creates a database Good data query (lookup and analysis) ability Good entry forms Good reports Multi-user.
Querying a Database Using the Select Query Window
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Week 2 Normalization and Queries
Mary K. Olson PS Reporting Instance – Query Tool 101.
Build a database IV: Create queries for a new Access database Overview: Ask your data — create queries It’s time to create queries, one of the most powerful.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 3 – Finding, Filtering,
Database Software Application
CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING.
Access 2007 ® Use Databases How can Access help you to find and use information?
Spreadsheets. What are the parts Rows are numbered vertically Columns are lettered horizontally Where rows and columns intersect is called a cell A sheet.
MELISSA PICO SUMMER 08 Data Storage & Retrieval: Access instead of Excel.
LESSON 17 PREPARED BY MANJU. database A database is a collection of related information Access is the Microsoft Office database program that enables you.
WEEK 11 Database Design. Agenda Hybrid Review Create Tables Add, Edit Data Create Relationships in MS Access 2010 Queries.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 3-1 LINKS TO OBJECTIVES Save a Filter as a Query Save a Filter as a Query Parameter Query Inner, Left,
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
Chapter 10: Working with Large Data Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Tutorial 8 Advanced Queries. Notes Switch to new database! Tutorial.08 folder Only Session 8.1 and 8.2.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
Microsoft Access 2010 Building and Using Queries.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 3 – Queries and Reports.
MICROSOFT ACCESS With your host: Daniel McAllister.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
What have we learned?. What is a database? An organized collection of related data.
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
® Microsoft Office 2013 Access Maintaining and Querying a Database.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Microsoft Office 2003: Advanced 1 ADVANCED MICROSOFT ACCESS Lesson 10 – Analyzing Data.
Chapter 6 Creating, Sorting, and Querying a Table
You can sort Access data so you can view records in the order you want to view them, and you can filter data so you only see the records you want to see.
Today’s Goals Answer questions about homework and lecture 2 Understand what a query is Understand how to create simple queries using Microsoft Access 2007.
1 MS Access. 2 Database – collection of related data Relational Database Management System (RDBMS) – software that uses related data stored in different.
Planning & Creating a Database By Ms. Naira Microsoft Access.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Queries Objective 5.02 Understand queries, forms, and reports used in business.
USING ACCESS TO SEGMENT SURVEY DATA. OPEN ACCESS You May Need to Search for the Program You May Need to Search for the Program Access is a Database Access.
Chapter 1 Introduction to Database. Database Concept Field: a basic data element or attribute of an object Record: a set of fields Table: a set of records.
When you open Access you can open or import an existing.csv file. Check that it recognises that the fields are separated by commas.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
MICROSOFT ACCESS With your host: Daniel McAllister.
Access Maintaining and Querying a Database
Microsoft Office Illustrated Introductory, Windows Vista Edition
Access Tutorial 3 Maintaining and Querying a Database
MS Access: Creating Advanced Queries
Advanced Queries in MS Access
Database Systems Unit 16.
Essential Skills Wales
Access Maintaining and Querying a Database
Microsoft Access 2003 Illustrated Complete
Building and Using Queries
Spreadsheets.
Database Vocabulary Terms.
DB Implementation: MS Access Queries
Access Quiz.
Access: Queries IV Participation Project
Access: Queries III Participation Project
Spreadsheets, Modelling & Databases
Lessons Vocabulary Access 2016.
DB Implementation: MS Access Queries
Microsoft Office Illustrated Introductory, Windows XP Edition
Cycle 3: Unit 27 Lessons 104 – 111.
New Perspectives on Microsoft
Presentation transcript:

Relational Databases Today we will look at: Different ways of searching a database Creating queries Aggregate Queries More complex queries involving different types of relationships

Query By Example Access and Base allow us to use filters like those in spreadsheet applications

Query By Example We can also create queries to help us search We first select the table we want to use And then which fields we want to see in the results table We can also sort results Finally, we enter the criteria used to select the results

Complex Queries With a relational database we can also do queries across multiple tables Usually they need to be linked, but you can do this in the query itself This query shows all of the students in alphabetical order, together with the name of their tutor.

Aggregate Queries Aggregate queries are ones that perform calculations across groups of records – e.g. counting them, or working out totals or averages This query shows how many students there are in each year The first step is to group the records, e.g. into years, and then the function works on a group at a time

Relationship Types By default, queries only show rows where there are records in each table In this example, only students that have a transport type entered will appear in the results Can we show the students who haven’t had a transport type entered?

Relationship Types We can change the type of the relationship to show those missing records We can choose the table from which we want to see all records We can also use the criteria Is Null (or Is Empty in LibreOffice) to find blank entries