Databases Section 4: Select Queries Presented By: Lindani Ncube Based on Materials by: M Halse.

Slides:



Advertisements
Similar presentations
Creating Reports for a Database. Reports in Access are usually created when a repetitive task is performed regularly. For example when a business needs.
Advertisements

Computer Concepts BASICS 4th Edition
Lesson 30: Maintaining a Database. Learning Objectives After studying this lesson, you will be able to:  Change the layout of a table by adjusting column.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Chapter 1 Databases and Database Objects: An Introduction
Access Tutorial 3 Maintaining and Querying a Database
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
Queries Help Topics Using the Access 2007, you can press the F1 to pop up the help windows, where you can search the following topics to help to generate.
Querying a Database Microsoft Office Access 2003.
Access Tutorial 4 Creating Forms and Reports
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 2010 Chapter 7 Using SQL.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Maintaining and Querying a Database Microsoft Access 2010.
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Lesson 31: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Design.
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.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
Chapter 1 Databases and Database Objects: An Introduction
PIVOT TABLES AND CHARTS CS1100 Computer Science and its Applications CS1100Pivot tables and charts1.
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.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
FIRST COURSE Access Tutorial 4 Creating Forms and Reports.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
SESSION 3.1 This section covers using the query window in design view to create a query and sorting & filtering data while in a datasheet view. Microsoft.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
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.
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
1 After completing this lesson, you will be able to: Change the format of a table. Sort records in a table. Find records in a table Use filters with a.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
There are seven main components of a database in Access 2000: Tables. Use tables to store database information. Forms Use forms to enter or edit the information.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
® Microsoft Office 2013 Access Maintaining and Querying a Database.
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.
1 After completing this lesson, you will be able to: Create and run a query. Specify criteria in a query. Create a calculated field. Create a multiple-table.
1 Access Lesson 3 Creating Queries. 2 Creating a Query with the Simple Query Wizard Query-- database object that lets you ask the database about the data.
® Microsoft Access 2010 Tutorial 10 Automating Tasks with Macros.
Microsoft Access 2000 Presentation 3 Creating Databases Part II (Creating Forms)
Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.
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.
1 Lesson 18 Managing and Reporting Database Information Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
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.
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.
1 Access Lesson 2 Creating Queries, Forms, and Reports Microsoft Office 2007 Fundamentals Story / Walls.
Key Applications Module Lesson 22 — Managing and Reporting Database Information Computer Literacy BASICS.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 2 ® Building Queries.
Microsoft Access Prepared by the Academic Faculty Members of IT.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
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 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.
Lesson 3: Working with Forms. Learning Objectives After studying this lesson, you will be able to: Identify form design elements Create and print forms.
1 Access Lesson 2 Creating Queries, Forms, and Reports Microsoft Office 2010 Fundamentals Story / Walls.
Access Maintaining and Querying a Database
Lesson 23 Managing and Reporting Database Information
Access Tutorial 3 Maintaining and Querying a Database
Access Maintaining and Querying a Database
Find and Replace Used to quickly find and/or replace data quickly
Chapter 9 Lesson 2 Notes.
Chapter 1 Databases and Database Objects: An Introduction
Access: Forms Participation Project
Lesson 24 Managing and Reporting Database Information
Access: Reports Participation Project
Pivot tables and charts
Tutorial 10 Automating Tasks with Macros
Assignment 3 Querying and Maintaining a Database
Presentation transcript:

Databases Section 4: Select Queries Presented By: Lindani Ncube Based on Materials by: M Halse

Simple Select Queries A SIMPLE select query (can only be performed on one table) can be used to: choose one column to display choose multiple columns to display from one able limit the data in one column with Criteria limit the data in multiple specific columns Select queries vs. Simple select queries A select query retrieves data and values from one or more tables where as a simple select query can only be performed on one table. The results are displayed of both types of queries are displayed in a datasheet view.

Using the Query Wizard for a simple Select Query Click on Query Wizard in the Queries group in the create tab of the ribbon For both Simple select queries and normal select queries use the Simple query wizard

Using the Query Wizard for a simple Select Query

Creating a Select Query in Design View Click on the Query design button in the Queries group of the Create tab on the Ribbon A Query Tools Design tab appears on the Ribbon

Creating a Select Query In Design View Add all the tables you need to perform your query. This can be one or more tables. You can add more later by using the Show Table button

Creating a Select Query In Design View Either Click on the selection button on the design tab of the Ribbon, OR Right click on the query background area. In the context menu provided, choose Select Query from Query Type OR

Creating a Select Query In Design View This is what you will see when you have created your query in design view:

Creating a Select Query in Design View

You can choose to sort (ascending [A-Z] or descending [Z- A]) by one or more Fields You can choose whether you want a column to be visible in the result or not, even if you apply criteria to the column You can specify select criteria

Creating a Select Query in Design View This query is equivalent to the MySQL statement it creates behind the scenes: SELECT Wines.Name, Wines.[White/Red/Rose], Wines.Type, Wines.Price FROM Wines WHERE (((Wines.Price)<200)) ORDER BY Wines.Name; This can be viewed by choosing SQL View from the View button

Saving a Query Run the query by pressing the Run button. The results of the query look like this i.e. they will be shown to you in datasheet view. Remember to save your query with a name that will indicate what data it extracts.

Editing a Query Double click on the query in the Navigation Pane Switch to Design View and then edit your query. Remember to save if you want to keep the changes.

Section 4 Summary Using the Query Wizard for a Select Query Creating a Select Query in Design View Saving a Query Editing a query