Topic 12 Lesson 1 – Data and databases

Slides:



Advertisements
Similar presentations
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
Advertisements

Access Lesson 2 Creating a Database
ISP 121 Week 1 Introduction to Databases. ISP 121, Winter Why a database and not a spreadsheet? You have too many separate files or too much data.
Access Lecture 1 Database Overview and Creating Tables Create an Employee Table.
MS Access 2007 IT User Services - University of Delaware.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1 Created By Martin Schedlbauer
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Lesson 28: Exploring Access Learning Objectives After studying this lesson, you will be able to:  Define database and key terms associated with.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
ASP.NET Programming with C# and SQL Server First Edition
CITY UNIVERSITY / Vysoká Škola Manažmentu.:IS Information Systems :. © Martina Cesalova, 2005 MS ACCESS 1 Start Microsoft Access – New - Blank Database.
Data-mining & Data As we used Excel that has capability to analyze data to find important information, the data-mining helps us to extract information.
DATABASE DESIGN USING MICROSOFT ACCESS. What is a Database?  DMS Database management system  Database Collection of data organized in a manner that.
Relational Databases (MS Access)
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.
WEEK 11 Database Design. TABLE INSTANCE CHARTS Create Tables.
Chapter 17 Creating a Database.
Lesson 1: Exploring Access Learning Objectives After studying this lesson, you will be able to: Start Access and identify elements of the application.
CS1100: Microsoft Access Managing Data in Relational Databases Created By Martin Schedlbauer CS11001Microsoft Access - Introduction.
® Microsoft Office 2013 Access Creating a Database.
CREATING COMPLEX QUERIES WITH NESTED QUERIES CS1100: Data, Databases, and Queries CS1100Microsoft Access1.
DAY 14: MICROSOFT ACCESS – CHAPTER 1 Madhuri Siddula October 1, 2015.
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
CREATING COMPLEX QUERIES WITH NESTED QUERIES CS1100: Data, Databases, and Queries CS1100Microsoft Access1.
Lesson 2: Designing a Database and Creating Tables.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
QUERY CONSTRUCTION CS1100: Data, Databases, and Queries CS1100Microsoft Access1.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
ACCESS LESSON 1 DATABASE BASICS VOCABULARY. BACKSTAGE VIEW A menu of options and commands that allows you to access various screens to perform common.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
2b. Create an Access Database Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
Microsoft Access 2013 ®® Case Study Creating a Database.
Tutorial 1 Creating a Database
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Fundamentals of Database
GO! with Microsoft Office 2016
Access Tutorial 1 Creating a Database
Practical Office 2007 Chapter 10
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.
and Defining Table Relationships
Introduction to Microsoft Access
GO! with Microsoft Access 2016
Access Creating a Database
ICT Database Lesson 1 What is a Database?.
Access Creating a Database
Database Management  .
Databases and Information Management
Overview of Microsoft Access Databases Chapter 1
What is a Database and Why Use One?
Access Tutorial 1 Creating a Database
Case Study Creating a Database
PHP and MySQL.
Access Lesson 2 Creating a Database
Lessons Vocabulary Access 2016.
Databases and Information Management
Creating and Managing Database Tables
Introduction to Databases & SQL
Access Tutorial 1 Creating a Database
Building Queries using the Principle of Simplest Query (POSQ)
ICT Database Lesson 2 Designing a Database.
Microsoft Office Access is the best –selling personal computer database management system. What is Access?
Access Tutorial 1 Creating a Database
Topic 12 Lesson 2 – Retrieving Data with Queries
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.
Unit J: Creating a Database
Presentation transcript:

Topic 12 Lesson 1 – Data and databases

Data and Databases Storing, accessing, searching, and viewing data are important in any business. While spreadsheets work well for small amounts of data, databases are used for larger data collections. Learning how to access data is an important skill when working with databases. We will learn how to formulate queries in the Microsoft Access database system. Data and Databases

Reasons to Move to a Database Too much data in an individual file Difficult to manage data Have multiple uses for the data Need multiple “views” of the data Need to share the data Numerous people are entering, deleting, viewing data Need to control the data Control data values and consistency Data and Databases

This data belongs in a database… Data and Databases

Value of Knowledge What we learn here is applicable to many other database that are used by businesses: Oracle Sybase Microsoft SQL Server JavaDB MySQL … We will also learn how to logically decompose data problems. Data and Databases

About Microsoft Access Not available with MacOS – you should be running Windows in a Virtual Box You can use RemoteApps (remotely login to a virtual Northeastern session). (Use myneu to have access to RemoteApps ) DOWNLOAD AND SAVE! You must download and save Access files BEFORE starting to work on them or you will lose your work .laccdb files:  file locking is controlled by a locking file with the file name extension .laccdb. Do not submit this file! Close your file first and the .laccdb file goes away. Data and Databases

Relational Databases Microsoft Access is a relational database which means that it stores data in tables Each table stores information about a single subject Each table contains rows; one row for each record, i.e., a contact, order, product, etc. Each column (or field) contains different kinds of information about the subject Each row in a table has a unique identifier (or primary key), e.g., OrderID, ProductID, ContactID, etc. Data and Databases

Relational Databases Each table in the database contains information related to a single subject and only that subject. You can manipulate data about two classes of information (such as customers and orders) based on related data values Example: it would be redundant to store all customer information with every order. In a relational DB, the table for orders contains one field that stores data such as a customer ID This duplicated field connects (or relates) each order with the appropriate customer information. The duplicated field is known as a foreign key It allows a user to determine which customer placed each order Data and Databases

Relational Databases Microsoft Access is a relational database which means that it stores data in tables (a 2 dimensional structure, row by column). Tables contains records; one row for each record, e.g., a contact, an order placed, a product, etc. Tables have attributes; one column for each attribute, each record has a place to store a value for each attribute, e.g., a product’s name, the price of a product, a product’s dimensions… Each row in a table has a unique identifier attribute called a primary key, e.g., OrderID, ProductID, ContactID, etc. Data and Databases

LAYOUT OF THE ORDERS DATABASE Microsoft Access Tutorial: Data, Databases, and Queries Data and Databases

The Orders Database We will be using a database that contains data for orders placed by customers for our examples. This database stores the following information: For each order, we know what was ordered, how many of that item was ordered, and at what price. For each order, we know who placed that order. For each customer (called a contact), we store where he/she lives. For each product, we track its description and price. Data and Databases

The Database Layout These are all of the tables in the database: Data and Databases

The Database Layout For each order item we know what was ordered, how many of that item were ordered, and at what price. For each product, we know its description and price. For each order, we know who placed that order and when the order was placed For each customer (called a contact), we know where he/she lives. Data and Databases

A Sample Order Order O0001 Customer Contact Contact ID: C0004 Name: Colon, Nicholas Address: 9020 N.W. 75 Street Coral Springs, FL 33065 Order Date: 4/15/1999 Product ID Product Name Quantity UnitPrice ExtendedPrice P0013 DVD Disks 1 $ 23.00 $ 23.00 P0014 HD Floppy Disks 4 $ 9.99 $ 39.96 P0027 Norton Anti-Virus $ 115.95 $ 115.95 Order Total: $ 178.91 Data and Databases

Where Does The Data Come From? Orders.OrderID Order O0001 Customer Contact Contact ID: C0004 Name: Colon, Nicholas Address: 9020 N.W. 75 Street Coral Springs, FL 33065 Order Date: 4/15/1999 Product ID Product Name Quantity UnitPrice ExtendedPrice P0013 DVD Disks 1 $ 23.00 $ 23.00 P0014 HD Floppy Disks 4 $ 9.99 $ 39.96 P0027 Norton Anti-Virus $ 115.95 $ 115.95 Order Total: $ 178.91 Contacts ZipCodes ExtendedPrice = Quantity * UnitPrice Orders.OrderDate LineItems Total Order Amount Data and Databases

A closer look at the Contacts table The Design view Design your table in this view: Data and Databases

Field Data Types Short Text – alphanumeric data up to 255 characters Long Text– alphanumeric data up to 1 gigabyte Number – numeric data Date/Time – dates and times Currency – monetary data AutoNumber – unique value generated by Access for each new record (not editable) Data and Databases

A closer look at the Contacts table The Datasheet view Enter new data in this view by typing data into the cells Can be accessed from the View icon Data and Databases

Relationships: Fundamental to a Relational database A relational database separates the data into a collection of related tables The relationships pull the data together in a meaningful and useful way A user manages (creates, review, updates, deletes) the relationships between the Tables by using the ‘Relationships’ icon found on the ‘Database Tools’ tab. Data and Databases

Relationships in Access Each line represents a relationship between two tables Typically, the fields in the two tables have the same name, but this is not a requirement (see ProductID and ProdID) We can have a 1 to 1 relationship, a many to many relationship or the more common 1 to many relationship Example: 1 ContactID in the Contact table is related (has placed) many Orders in the Orders table. Data and Databases