INF2070 Database 2. What Will You Do? Using skills learned in the last Database module, you will yet again make more tables This time we are going to.

Slides:



Advertisements
Similar presentations
This demonstration will be taking you through the new look ‘Fees’ tab in SMT.
Advertisements

Microsoft® Access® 2010 Training
INTRODUCTORY MICROSOFT ACCESS Lesson 1 – Access Basics
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Access Lesson 2 Creating a Database
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Microsoft Office 2007 Access Chapter 2 Querying a Database.
Chapter 1 Databases and Database Objects: An Introduction
Microsoft Access 2003 Introduction To Microsoft Access 2003.
Staff Development Daze June 27 & 28 Tony Gauvin. 2 Schedule  Monday June 27  Monday June 27  9:00 – 12:00 Basic Excel  12:00 – 1:00 Lunch for all.
Querying a Database Microsoft Office Access 2003.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 3 Maintaining a Database Using the Design and Update Features of Access.
Management Information Systems MS Access 2003 By: Mr. Imdadullah Lecturer, Department of M.I.S. College of Business Administration, KSU.
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.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Microsoft ® Office Access ® 2007 Training Build a database III: Build relationships for a new Access database ICT Staff Development presents:
Access Tutorial 10 Automating Tasks with Macros
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Datasheets II: Sum, sort, filter, and find your data Overview: Sum it up, and more Access 2007 makes it easier than ever to perform math functions on your.
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
INF1050- Databases In this module you will use Microsoft Access to create digital databases.
Access Lesson 2 Creating a Database
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 1 – Access Basics.
Advanced Forms Lesson 10.
Chapter 1 Databases and Database Objects: An Introduction
Viewing Tip: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click and select.
G-Databases Competency 7.00 Objective 7.01 Demonstrate basic database concepts and functions.
Microsoft Access Get a green book. Page AC 2 Define Access Define database.
Microsoft ® Office Access ® 2007 Training Datasheets II: Sum, sort, filter, and find your data ICT Staff Development presents:
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Microsoft Office 2007 Access Chapter 2 Querying a Database.
XP 1 Microsoft Access 2003 Introduction To Microsoft Access 2003.
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.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T6: Basic Skills and Tools Using Access 2010 Business Driven Technology.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 8 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 8 Creating.
® Microsoft Office 2013 Access Creating a Database.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
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.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Build a database III: Build relationships for a new Access database Overview: You can relate This course teaches you how to build relationships between.
D ATABASE O BJECTS Putting the Objects to Work. Database Objects When creating a database, you are creating a database that will store objects. Database.
Build a database V: Create forms for a new Access database Overview: A window into your data So far in this series of courses, you’ve built tables, relationships,
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
Creating a Database Angelo Lafratta- Website: Search: Keith Valley Physical.
Create ReportsCreate Reports Lesson 6 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Access Microsoft Access 2013.
PestPac Software. Pay On Commission Commission can be paid on Production, Receipt, or Up-Front. Production: Commission will be paid when work is completed/an.
Create FormsCreate Forms Lesson 5 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Access Microsoft Access 2013.
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.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
ACCESS PROJECT TWO. PROJECT ONE In project one you: -Created Tables -Created Forms -Created Reports In this project you will learn about queries. Databases.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
Datasheets II: Sum, sort, filter, and find your data – Easy math, sorts, and searches Lesson 19 By the end of this lesson you will be able to complete.
Microsoft Office Illustrated Fundamentals
Introduction to Database Programs
Introduction to Database Programs
Presentation transcript:

INF2070 Database 2

What Will You Do? Using skills learned in the last Database module, you will yet again make more tables This time we are going to learn about Queries, which give us the ability to look up things We will also learn more about Relationships We will also learn how to create Reports that display the data we want to see

First Steps Open up Access and click on Blank Database We are going to create 3 tables. Use the steps shown below: Call the tables Computers, Computer Techs, and Techs

Here are the categories in the 3 tables. Go to Design View to put in the categories

Next….Relationships Don’t put anything in the tables yet! You have a many-to-many relationship when a single record in one table can relate to many records in another, and a single record in that second table can also relate to many records in the first. For example, say your company has several types of computers and several technicians, with each technician certified to work on some, but not all, of the computers. Each technician can be related to more than one computer, and in turn, each computer can be related to more than one technician. To track who can work on a given machine, you create a many-to-many relationship by adding the primary keys from both sides of the relationship to a third table, called a junction or link table. The picture shows a typical junction table, and you can see that its structure is relatively simple — a pair of primary key fields and some related information. Now your data can answer questions such as, "Which computers did a given technician work on last month?"

Relationships Open the Relationships tab and put in the tables. Look where the Primary Keys are. The middle one doesn’t have one.

Primary Keys If you forget how to get the primary keys, do this: Click where you want it to go, then click the primary key button

Make the tables have these Data Types: If you don’t do this just right, The relationships will not work Correctly later because you do Not have all the similar data Types to line up if you don’t.

Open the Relationships tab Arrange your tables so they are in this order:

More… Click This Grab the Tech ID primary key from The Techs table and drag it onto the Tech ID for the Computer Techs table

Next Relationship Move the Computer ID Primary Key Over to the Computer Techs table Which does not have the Primary Key.

You should have this:

Now the fun part! Under the Computers table And Techs table we get a drop-down for Computer Techs

Entries Create 10 entries for each of the tables. All of the data has to be the same I know its boring But it is important for later! Make up fake names and numbers to make it go faster. Make sure you use a variety of makes, like Sony, HP, Dell, Toshiba, Acer, etc. For the serial numbers, they should be in the thousands, ranging from the number 1000 up to 8000.

Queries Do you have questions that you want to answer with your data? For example: Who worked on which computer? Which computer needed work? What computer had the most value? Which computer was the last one repaired?

Queries Queries can answer those questions by assembling stored data from your database, or by performing calculations with the data to provide further information. To answer questions, queries retrieve, filter, sort, and assemble data on command. Another important power of queries is to combine the data from several tables into a single view. When a query finds data and shows it to you, it can also process that data according to your instructions. A query can perform calculations using the data: What is the sales total minus shipping costs? A query can also remove data: Delete names of members who have not paid dues for 24 months. You should use caution when executing queries that change data, and consider backing up your data first.

First, Go Here:

Add a Query for The First Table

Down Below! So what we want to do is to select the Table and the fields that we want to use from the drop-down menu. Use the fields listed below to make it look like this:

Look Here In this case, we want to be able to look up a serial number under ‘Model’ that will show us which computer serial numbers that we made up are over 500. Just type > 500 right there.

Next We want to look up any manufacturer that uses the letter S as the first part of their name. For example, Sony. We put what you see below in the table for Manufacturer.

Under DataSheet view It tells me which computer starts with an S and is over 5000.

Hit Save To save the table

Now we want to see our table Use an existing query as the record source of a form or report In Design view, set the Record Source property to an existing query that you want to use. Open the form or report in Design view. If the property sheet is not already open, press F4 to open it. In the property sheet, on the Data tab, click the Record Source property box

Next Do one of the following: Start typing the name of the query that you want to use. Access automatically fills in the name of the object as you type. - or - Click the arrow and then select the query that you want to use.

Create a query as the record source of a form or report In Design view, use the Build button (…) in the Record Source property box to create a new query to use as the record source. Open the form or report in Design view. If the property sheet is not already open, press F4 to open it. In the property sheet, on the Data tab, click the Record Source property box. Click.

Our Report You should see something similar to this, depending on which information you included in your database:

Save your Report! On the right-hand side of your screen, where all the tables and stuff are, right click on your report and see if you can print it!