Databases 101 © Dolinski 2007. What you will learn How relational databases work What are the components that make up a database How to create each component.

Slides:



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

Relational Database Systems Higher Information Systems Advanced Implementation in Filemaker Pro.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
By Wanda Gibson, CI, MMI, SME. Microsoft Access Access is a database management system. This system lets you create and process data. A database is a.
© Dolinski This presentation will help you with the database section of your coursework. It will cover: – What you need to do.
MICROSOFT OFFICE ACCESS 2007.
Start First step Create a new blank database Create a database using the option that will enable you to build your database using pre-set options. Save.
Create a new blank database First step SUBMITTry again.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Data Types and Field Properties 5.01 Understand database tables used in business.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Databases Ms. Scales. What is a Database? Database  A collection of data organized for fast search and retrieval  Examples: Telephone Directories Hospital.
Database Software Application
Database Design IST 7-10 Presented by Miss Egan and Miss Richards.
Data Types and Field Properties 5.01 Understand database tables used in business.
Database terms Mr. Brunton.
Validation and Verification
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
Microsoft Access 2000 Creating Tables and Relationships.
 Database ◦ A place where data can be stored and retrieved.  Objects ◦ An option you can manipulate. Eg. Tables, forms, queries.  Tables ◦ Tables are.
2.3 Organising Data for Effective Retrieval
ACCESS. » Access is a database management system. » This system lets you create and process data. » A database is a collection of data that is organized.
Access 2007 Database Application Managing Business Information Effectively BCIS 1 and 2.
CORE 2: Information systems and Databases COLLECTING AND DISPLAYING FOR DATABASE SYSTEMS.
Lesson 1 -What is a Database? -Fields and Records
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
WHAT IS A DATABASE? A database is an organized collection of related information. A DB organizes and stores information. an organized collection of related.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
What is a Database? A Database is…  an organized set of stored information usually on one topic  a collection of records  a way to organize information.
Database A database program is a piece of software to organize and sort information. It creates an electronic list of information that can be sorted very.
Software. Records Fields Each record is made up of fields – categories of information. The fields here are Name, Surname, Address, Telephone and Date.
Access 2013 Microsoft Access 2013 is a database application that is ideal for gathering and understanding data that’s been collected on just about anything.
1 Advanced Topics in Access How to create forms and reports Andrew Yu 03/04/2002.
Database Systems Microsoft Access Practical #1 Creating Tables Nos 215.
Databases ©
Chapter 17 Creating a Database.
Database What is a database? A database is a collection of information that is typically organized so that it can easily be storing, managing and retrieving.
DATABASE What exactly is a database How do databases work? What's the difference between a spreadsheet database and a "real" database?
Microsoft Access 2000 Presentation 1 The Basics of Access.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
ITGS Databases.
Microsoft Access. Microsoft access is a database programs that allows you to store retrieve, analyze and print information. Companies use databases for.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
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.
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.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Microsoft Access Database Creation and Management.
Key Applications Module Lesson 22 — Managing and Reporting Database Information Computer Literacy BASICS.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Microsoft Access Prepared by the Academic Faculty Members of IT.
Software. Because databases can get very big, it is important to decide exactly what is going to be stored in each field. Fields can be text, number,
Creating a Database – Estate Agent Task Starter Task Create a new folder inside your GCSE ICT folder called database. Download the database task PPT from.
Today You will become familiar with the Appleworks software. You will create your own ‘fields’ and ‘records.’ In the actually program!!!!
3.1 CSC 102 Introduction to Information Systems Databases.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
Course Contents Overview: Database basics Lesson 1: Benefits of using a database Lesson 2: Table that data Lesson 3: Analyzing, viewing, and reporting.
Notes: **A Row is considered one Record. **A Column is a Field. A Database is…  an organized set of stored information usually on one topic  a collection.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
DATABASE’S Dave McDonald Student No /05/2016 Unit 10 task 1.
DATA TYPES.
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Databases Software This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Spreadsheets, Modelling & Databases
The intended use and features of Room Four Database
Presentation transcript:

Databases 101 © Dolinski 2007

What you will learn How relational databases work What are the components that make up a database How to create each component

Relational Databases Unlike a flat file database –Database with a single flat file table Address Book Phone numbers Online Recipe Uses lots of tables which store subject specific information. This information is then linked to each other which creates the relationships.

Relational Databases DVD Rental Shop Flat file databases tend to store lots of repeated data. This means the databases becomes very inefficient. Flat files are also very restrictive. Updating a DVD’s price means changing every single record. This can lead to mistakes. NameAgeDVDPriceRating David15Matrix£3.99PG David15Mission Impossible 3£ Laura14Mean Girls£2.99PG David15Mean Girls£2.99PG

Relational Databases The solution to our problem is simple. Break down the tables into subject specific categories. In our rental shop example we would end up with three tables: –Customer –DVD –Rental

Relational Databases Customer Table: –Would store all the information we need to know about the customer. –This means we only need to store the customer’s details once. –This means that if a customer’s details change, for example, their address, then we only need to change one record.

Relational Databases DVD Table: –This would store information about the DVD’s in our shop. –Again, we only need to store the information once. –This means that we only have to change the details of a DVD once if they might change, for example, its rental price.

Relational Databases Rental Table: –Would store all the information about each rental. –The rental table would store the membership code of the customer, the DVD code and a rental code. –From the membership code in the rental table, we can find the customer’s details in the customer table, and likewise for the DVD details, we can find the details in the DVD table by using the DVD code.

Relational Databases In MS Access, we could see how our tables were linked by using the Relationships View:

Relational Databases Databases have different components that you can use. –Tables –Queries –Forms –Reports

Relational Databases Tables –Used for storing data Queries –Used for finding data Forms –Used for entering data Reports –Used for displaying data

Tables These are the first things you set up. In MS Access, you can use the design view to set up tables quickly and easily. You must decide on two main things: –Field Name –Data Type

Tables Field Names are used to identify the actual piece of data which needs to be entered. –Name –Address –Phone Number –Etc They are basically headings for the table.

Tables Data Types let us know what type of data each field will store. There are lots and it is important to chose the right one.

Tables Below is a list of data types that you might use: Data TypeWhat is it used for? TextStoring text and numbers which are not used in calculations, e.g. telephone and house numbers. NumberUsed for storing numbers such as quantities and ages. Date/TimeUsed for storing dates and times, e.g. Date of Births and booking dates. Yes/NoUsed for storing yes or no data, e.g. Has the Customer Paid? CurrencyUsed for storing money values, e.g. Prices AutoNumberUsed for storing unique values, e.g. membership numbers.

Tables Here is an example of a table in the design View:

Tables Data validation is another important aspect of table design. Data validation is the method of preventing bad data from entering the system. For your project you will only need to show two or three examples of your system using data validation.

Tables Data validation can be used on things such as: –Dates Not allowing underage people from buying certain products –Numbers Not allowing a number to be entered below or above a certain level e.g. Number of beds in a room

Tables Validation rules are entered in the validation rule field in the table design. Rules can be simple things such as: –>20  This rule means a number must be greater than 20 when entered. –Like “Mr” Or “Miss” Or “Mrs”  This rule means that only defined entries can be made into the system.

Tables This is an example validation rule for a customer table. –It defines the entries that are needed for the Title Field. –The validation text appears when data has been entered incorrectly or doesn’t meet the validation rule.

Queries These are used to find information. They can search through tables for data that we ask it to find, for example: –A name –Records between certain dates –Telephone numbers

Queries When writing a query we need to know two things: –What data fields we want to display –What data we want to look for

Queries This is the design view for a query: This query will ask the user to enter a valid customer number.

Queries The database will display a user input box and the user can type in the customer number: The results of the query will be shown.

Queries The code to do this is: In the Criteria field write this: –[Enter Customer number:] [This means open ended…the user defines]

Queries If I always wanted to find customer 0001 then in the criteria field I would enter 0001! AMAZING!!!

Forms Forms are used for data entry. They should be designed to allow data to be entered quickly and accurately. You can use a design wizard to help you set up your form but you will need to change the design to make it more user friendly.

Forms The wizard will produce something like this: This isn’t very user friendly and will probably result in some bad data from being entered.

Forms Changing the design can vastly improve: –The speed at which data is entered. –The accuracy of the data being entered. Using drop down boxes and option menus are a great way of speeding up data entry and they provide some data validation.

Forms Or you can use Option Buttons for example. You can use Drop Down Menus

Reports Reports are used to output data from the database. –Such as printing off a list of customers for example. Like the forms, you can use the design wizard to get the initial layout. You will need to tweak the layout to maximise the efficiency of the report. The wizard does a good job of wasting space!

Reports An example report produced by the wizard might look like this: The report can be designed to output data in any particular order. This report prints data out in ascending order of last name.