Querying a Database - A question or an inquiry (dictionary.com) - WHAT ARE WE ASKING QUESTIONS ABOUT? THE DATA - BY ASKING QUESTIONS OF THE DATA WE OBTAIN?

Slides:



Advertisements
Similar presentations
Relational Database Systems Higher Information Systems Advanced Implementation in Filemaker Pro.
Advertisements

Working with Tables 1 of 5. Working with Tables 2 of 5.
Microsoft Office Illustrated Fundamentals Unit K: Working with Data.
Microsoft Access 3 Database Creation and Management.
Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
Microsoft Excel Working with Excel Lists, Subtotals and Pivot Tables.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
With Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Querying a Database Using the Select Query Window
Structured Query Language Part I Chapter Three CIS 218.
QUERYING A DATABASE By: Dr.Ennis-Cole. OBJECTIVES: Learn how to use the Query window in Design view Create, run and Save queries Define a relationship.
A Guide to SQL, Seventh Edition. Objectives Retrieve data from a database using SQL commands Use compound conditions Use computed columns Use the SQL.
Microsoft Access 2010 Chapter 7 Using SQL.
Access Tutorial 3 Maintaining and Querying a Database
Software Development Unit 2 Databases What is a database? A collection of data organised in a manner that allows access, retrieval and use of that data.
Spreadsheet Operations and Functions.  Spreadsheet Operations and Functions increase the efficiency of data entry, the performing of calculations, and.
Concepts of Database Management, Fifth Edition
Chapter 3 Single-Table Queries
You can use a query to view a subset of your data or to answer questions about your data. For example, if you want to view a list of student names and.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access Committed to Shaping the Next Generation.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
Excel Projects 5 & 6 Notes Mr. Ursone. Excel Project 5: Sorting a List  Sorting: Arranging records in a specific sequence  The Sort command is on the.
Microsoft Access 3 Database Creation and Management.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
10 May Microsoft Access 2010 Relational databases’ program Part of the Microsoft Office package Administer relational database Update database through.
Database Queries. Queries Queries are questions used to retrieve information from a database. Contain criteria to specify the records and fields to be.
Analyzing Data For Effective Decision Making Chapter 3.
Nasca Access BasicsMore Access Access Again Access Continued Access Leftovers.
WHAT IS A DATABASE? A database is an organized collection of related information. A DB organizes and stores information. an organized collection of related.
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.
Examining data using Microsoft Access Queries Using Criteria and Calculations SESSION 3.2 This section covers specifying an exact match condition in a.
1 Single Table Queries. 2 Objectives  SELECT, WHERE  AND / OR / NOT conditions  Computed columns  LIKE, IN, BETWEEN operators  ORDER BY, GROUP BY,
Concepts of Database Management Seventh Edition
DAY 22: MICROSOFT ACCESS – REVIEW Akhila Kondai November 04, 2013.
Using Special Operators (LIKE and IN)
Database Systems Microsoft Access Practical #3 Queries Nos 215.
Query – One of the objects in Microsoft Access – It can help users extract data, which meets the criteria defined by them, from a database file. – It must.
SQL for Data Retrieval. Running Example IST2102 Data Preparation Login to SQL server using your account Select your database – Your database name is.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
Performing Calculations—1 of 2 In addition to using queries to retrieve, update, sort, and filter data in a database, you can use a query to perform calculations.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T7: Problem Solving Using Access 2007 Business Driven Technology.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
DATA RETRIEVAL WITH SQL Goal: To issue a database query using the SELECT command.
Access Chapter 3-Obtaining Answers to Your Data Questions.
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.
1 Lesson 18 Managing and Reporting Database Information Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
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.
Concepts of Database Management Seventh Edition Chapter 3 The Relational Model 2: SQL.
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.
1 PROJECT 10 DATABASE QUERIES— TEXTBOOK DATABASE Management Information Systems, 9 th edition, By Raymond McLeod, Jr. and George P. Schell © 2004, Prentice.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Microsoft Access Database Creation and Management.
Databases Competency Explain advanced database concepts and functions.
ACCESS 3. OBJECTIVES Calculated fields in query design Total option in query design Creating Forms.
1 Chapter 3 Single Table Queries. 2 Simple Queries Query - a question represented in a way that the DBMS can understand Basic format SELECT-FROM Optional.
Microsoft Access By Ritesh Sharma. Introduction Microsoft Access is a desktop database program that enables you to enter, store, analyze,and present data.For.
Access Query Design. IT Fundamentals2 Access Query Design The Query design screen provides a mechanism for selecting specific data from datafile(s) by:
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
CST221: Database Systems (II)
Lesson 23 Managing and Reporting Database Information
The Database Exercises Fall, 2009.
Microsoft Office Illustrated Fundamentals
GO! with Microsoft® Access e
Database Queries.
Query Functions.
Shelly Cashman: Microsoft Access 2016
Presentation transcript:

Querying a Database - A question or an inquiry (dictionary.com) - WHAT ARE WE ASKING QUESTIONS ABOUT? THE DATA - BY ASKING QUESTIONS OF THE DATA WE OBTAIN? INFORMATION

What do Access queries allow you to do? 1)Display selected fields and records from tables 2)Sort records 3)Perform calculations 4)Generate data for forms, reports and queries 5)Update data in the tables of a database 6)Find and display data from two or more tables

Select Queries -Ask questions of data and retrieve results -Types of results: -Entire Tables -Certain Fields -Data based on criteria CriteriaMeaning = Equal to (implies exact match) <, <= Less than / Less than or Equal To >, >= Greater Than / Greater Than or Equal To <> Not Equal To Between…and Between value1 and value2 inclusive In() In(value1, value2) – contained in the list Like Matches a pattern

Sorting Data 1)Alphabetically (A to Z) or (Z to A) 2)Numerically (Number or Currency) 3)Chronological Order (Date/Time) -All data can be sorted either in ascending or descending order -Sorting can be accomplished through the datasheet view or the query builder screen -Ability to sort on two or more fields - Primary, Secondary, … sort keys

Conditional Operators AND - value1 AND value2 - requires that both conditions are met to return a value OR - value1 OR value2 - requires that one or the other or both conditions are met to return a value -DoctorFName = “Luigi” AND DoctorIQ>200 -PatientFName = “Frank” or PatientLName = “Smith”

Calculated Fields CalculationsMeaning Avg Calculate the average of a column Count Count the number of records Max Obtain the Maximum Value of a column Min Obtain the Minimum Value of a column Sum Add the contents of a column User Defined Create a new column based on a math formula DoctorYearlySalary / 12 DoctorMonthlySalary * 0.07

Lab Assignment TO DO: Answer the following questions about the data: 1)List all doctors in the system 2)List all patients in the system 3)List all doctors whose last name begins with “A” 4)List all appointments that have occurred in the last week in order of date 5)List all appointments which occur today and show the patient, doctor, and hospital associated with the appointment along with date and time 6)Show the number of appointments that have occurred in the last month

Lab Assignment cont. -Now, assume that we want to keep track of each individual doctor’s yearly salary. Make the appropriate adjustment to your table and enter in the data. -Answer the following questions: - Compile a list of doctors in order of their yearly salary from highest to lowest - Calculate the average salary for a doctor in our system - If a doctor gets taxed 11% of his salary per month, calculate the total amount of tax the doctor will pay in one year