Advanced Topics in Access: Queries

Size: px
Start display at page:

Download "Advanced Topics in Access: Queries"

Transcription

1 I. Types of Queries A. Select: displays selected data from one or more tables B. Delete: removes records from a table based on criteria specified C. Make Table: creates a new table from existing table(s) and populates with qualified records D. Append: appends qualified records to an existing table based on specified criteria E. Update: globally changes records with a qualified field value to another specified value F. Crosstab: creates a two-dimensional grid of summary data from one or more tables Open the CemSurvey database and look at the Cemeteries table. II. Terminology A. Query By Example (QBE) Window 1. Field List 2. Design Grid 3. Field Header 4. Table 5. Sort 6. Show 7. Criteria III. Selection Queries 8. Datasheet View/Design View/SQL View button 9. Run Query ( Bang ) button A. Specifying Fields for Inclusion in Query

2 1. Drag-and-drop field from the field list box to a column of the design grid 2. Double click a field in the field list box 3. Use the drop box in the field row of the design grid to select a field 4. Shortcut: To specify several fields at once, use the shift or control key in the list box and drag all to the design grid. 5. Shortcut: To specify all fields in a table, just drag the asterisk ( * ) item from the field list box. B. Specifying Criteria 1. Enter a valid expression in the appropriate column of the query design grid. 2. Entering expressions for different fields in the same row means the criteria are joined by a logical AND (for example, Color = red AND Size = small ). 3. Entering expressions for different fields in separate rows means the criteria are joined by a logical OR (for example, Type = SUV OR DriveTrain = 4WD ) 4. Complex combinations of logical ANDs and logical ORs may be formed (for example, Type = SUV AND Mfr = Ford OR Mfr = Volvo ) 5. A parameter query is useful when the criteria value may change from run to run. Embed a question in square brackets in the criteria row under the appropriate column. The user s response is taken for the criteria value at run time ([Which manufacturer would you like?]). 6. Fields used as criteria in the query do not necessarily have to appear in the query results (simply clear the Show box). Devise a query to return all cemetery plots in Kentucky. mwstate Modify it to select only those in Knott County, Kentucky. mwcounty Now get all plots in Knott or Pike County, Kentucky (careful!). mwpike Write a parameter query to return plots in a state to be specified at run time. mwstateparameter C. Setting Sort Keys 2

3 1. In the appropriate column of the query design grid, choose Ascending or Descending in the Sort row. 2. You may select multiple sort keys, but you must arrange the columns so that the primary sort field occurs first in the grid (reading left-to-right), the secondary sort field is next, and so on for as many sort keys as you may have. D. Returning Query Results 1. Methods for executing a query a) From design mode: (1) Click the Run ( Bang ) button. (2) Click the Query View button. b) From the table of contents window (1) Double click the query (2) Select the query, click the open button 2. Recordset types a) Dynaset (default) recordsets are live. Any edits done to the query results recordset are transmitted back to the original table(s). Use the State parameter query to get all plots in Ohio ( OH ). Change the state to KY. Re-issue the query. b) Snapshot recordsets are unbound and edits are not permitted. Change the Recordset type property of the preceding query to Snapshot. Attempts to edit a field should fail. 3. Top Values a) Set the Top Values property to return just the first x number of records or x% number of records. b) Specify percents with a % sign (e.g. 10%) and absolute numbers with a simple number (e.g. 10). c) Works with the sort field settings to return top or bottom values. 4. Unique Values / Records 3

4 a) Setting the Unique Values property to Yes discards records that have duplicate values for fields in the datasheet view. b) Setting the Unique Records property to Yes discards records that have duplicate values in all fields of the underlying table(s). c) Either Unique Values or Unique Records may be set on, but both cannot be on at the same time. Get a list of all agencies who registered for workshops. Toggle unique values and unique records to show difference. mwunique 5. Aliasing Field Names a) Aliasing gives a field a new name in the query result. b) The alias precedes the field name in the field column (e.g. Car_Make: Make would rename the Make field to Car_Make in the query results). c) Used most often in Access query expressions (next section). IV. Expressions in Access Construct a query that returns all plots in Kentucky with a surname of Smith. Only return a Name field the concatenates First name and Surname (e.g. Robert Smith ) and the County name. mwsmiths A. An Access expression has a least one operator and at least one literal, identifier, or function. 1. Operators a) Arithmetic (1) +, -, *, / -- need no explanation (right?) (2) ^ -- exponentiation (3^2=9) (3) \ -- integer division, remainders are discarded ( 10 \ 3 = 3 ) (4) mod -- modulus or remainder division (10 mod 3 = 1 ) b) Assignment and comparison (1) = -- assignment to a variable or field (Make = Isuzu ) (2) compares two values and returns either True or False (a) < -- less than ( 3 < 5 returns TRUE ) (b) <= -- less than or equal to ( 3 <= 3 returns TRUE ) (c) = -- equal to ( 3 = 5 returns FALSE ) (d) >= -- greater than or equal to ( 3 >= 5 returns FALSE) 4

5 (e) > -- greater than ( 3 > 3 returns FALSE ) (f) <> -- not equal to ( 3 <> 3 returns FALSE ) c) Logical (or Boolean) (1) Combine logical expressions of TRUE, FALSE, or NULL (2) AND -- returns TRUE only if both expressions are TRUE (3) OR -- returns TRUE if either expression is TRUE (4) NOT -- negates a logical value (e.g. NOT TRUE returns FALSE) d) String (1) & -- preferred concatenation symbol ( Dodge & & Viper evaluates to Dodge Viper (2) + -- also concatenates as &, but should be reserved for addition to avoid ambiguity e) Identifier (1)! (bang) -- combines object classes and names to specify a single instance (e.g. Forms![AutomobileSales] specifies the form AutomobileSales as a member of the Forms class) (2). (period or dot) -- separates object names from object properties or methods (e.g. TextBox1.Value = Miata ) (3) To identify a specific field value on a form: Forms!MyForm![MyControl].Value f) Other (1) Is -- only used with Null to test whether or not value Is Null or Not Is Null (2) Like -- used with wildcard characters (* and?) to test string values (e.g. Like V* returns true for Volvo and Volkswagen, but not for Chevrolet) (3) Between -- used to test if a value lies within a range (e.g. Between 30 And 60 returns TRUE when tested with a value of 30, 45, or 60). Note that range limits are inclusive. (4) In -- used to see if a string value is in a list (e.g. In ( Compact, Subcompact, Economy ) 2. Literals a) Numeric b) Text -- enclosed in quote marks (e.g. Literal text ) c) Date/time -- enclosed in pound signs (#) such as #11/15/2001# 3. Identifiers a) Uniquely define an object b) syntax follows the form : class!collection!objectname (e.g. Forms!Students![First Name]) 5

6 c) note that any identifier with embedded blanks must be enclosed in square brackets (e.g. [First Name]) 4. Functions a) Functions evaluate to a single value when executed (e.g. Sum(1,2,3) returns 6 b) Usually take inputs in the form of a parameter list enclosed in parentheses after the function name c) There are over one hundred individual functions in Access in several categories (1) Date and time (2) Text manipulation (3) Conversion (numeric data to string conversion for example) (4) Math (5) Financial (6) Other d) search help system for details ( functions reference ) B. Expressions in Query Criteria 1. Enter expression on criteria row a) Like J* would return all records with field value beginning with J Get all Access classes (Like *Access*). mwlike1 Get all classes on teen dates (Like 11/1?/01 ) mwlike2 b) Between 5 And 10 would return all records with field values greater than or equal to 5 and less than or equal to 10 Get all classes between 11/8/01 and 11/13/01. mwbetween1 Get all student with last names C-G. mwbetween2, mwbetween2a c) >=Date()+1 would return all records with a date values of tomorrow or later Show all classes schedule before yesterday (< Date()-1) mwfunction1 d) In ( CA, NV, OR, WA ) would return records with State field values of these 4 states Show classes with codes of AA1, L1, or O1 mwin 2. Expressions in Calculated Fields in Queries 6

7 a) In the field row of the query grid, define a new field name followed by colon, then expression b) example -- given fields Quantity and Price, create the calculated field of extended price as ExtendedPrice: [Quantity] * [Price] Create a calculated field, Open, that subtracts spots reserved for SANDAG staff from capacity of class. Open: [Capacity] [SANDAG] mwcalc1 3. Using Groups in Query Expressions a) to create queries that aggregate data, use the sum button on the query button bar b) a new row, Total, is placed in the query grid c) twelve options are available in the Total row (1) Group By -- groups on like values, left to right across grid Create a list of all class descriptions. mwgroup1 Create a list of Instructors and their classes (add Instructor group before Description group). mwgroup2 (2) Sum -- totals numbers (use w/group By for subtotals) How many students can we accommodate? mwsum1 How many by each class? mwsum2 (save this query for later) (3) Avg (average) -- finds average for a group of numbers What is the average class capacity? mwaverage (4) Min (minimum) -- finds smallest value in a set of records When is does the first class take place? mwmin (5) Max (maximum) -- finds largest value in a set of records When is does the last class take place? mwmin (6) Count -- counts number of records How many classes is each instructor assigned to? mwcount1 Are there any students with same first name? mwcount2 (7) StDev (standard deviation) -- a measure of central tendency (8) Var (variance) -- a measure of central tendency (9) First -- finds first item in a group (best used with sorting) (10) Last -- finds last item in a group (best used with sorting) (11) Expression -- create a calculated field that includes an aggregate function in its expression How many students per class can we overbook if we assume 13% no show rate? mwsumexpression 7

8 V. Multitable Queries A. Inner (or Equi-) joins (12) Where -- used to set criteria for a field not defined in the groupings Get the aggregate capacity of all classes taught by M. Woodall mwsum2where d) note that the aggregate functions (2-8) don t count Null values 1. Returns records in result only when values of join fields in both tables are identical. 2. By far the most common type of join in Access. Retrieve names of everyone on the wait list for Intermediate Access. mwequi1 Get a count of students by agency. mwequi2 Get a count of registrations by agency. mwequi3 B. Outer joins 1. Returns records in result for all records in one table of the join and records from second table where join field values match. How many requests for each class? (normal, inner join). mwouter1 What about the Any Date classes? Use a left outer join for them. mwouter2 C. Self joins 1. Relate fields from a table to a copy of the same table. Who requested an Intermediate Access class? mwselfjoin1 Who requested both Intermediate AND Advanced Access? mwselfjoin2 D. Theta joins 1. Not equal (< >) joins. Query design window doesn t show these joins with lines, but rather through WHERE criteria. Are there any students registered twice? mwtheta VI. Crosstab Queries A. Used to present summary data in a spreadsheet-like format. B. Very useful when creating charts and graphs. 8

9 C. A Wizard is available to help with creating Crosstab queries, BUT it can only handle single tables. Create a single table Crosstab using a Wizard that shows the number of students by status in each of the classes. mwcrosstab1 Create a similar Crosstab, but add links to Class table so we can see the Description field (as a Row Heading) and add a link to the Status table so we can see the status labels (as Column Headings). mwcrosstab2 9

10 VII. Extras A. How many registrations in each status type (confirmed, flexible, wait, dropped)? B. 10

PowerPoint Presentation to Accompany GO! All In One. Chapter 13

PowerPoint Presentation to Accompany GO! All In One. Chapter 13 PowerPoint Presentation to Accompany GO! Chapter 13 Create, Query, and Sort an Access Database; Create Forms and Reports 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Objectives Identify Good

More information

Microsoft Access XP Queries. Student Manual

Microsoft Access XP Queries. Student Manual Microsoft Access XP Queries Student Manual Duplication is prohibited without the written consent of The Abreon Group. Foster Plaza 10 680 Andersen Drive Suite 500 Pittsburgh, PA 15220 412.539.1800 800.338.5185

More information

Name: Class: Date: Access Module 2

Name: Class: Date: Access Module 2 1. To create a new query in Design view, click CREATE on the ribbon to display the CREATE tab and then click the button to create a new query. a. Query b. Design View c. Query Design d. Select Query ANSWER:

More information

Concepts of Database Management Eighth Edition. Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra

Concepts of Database Management Eighth Edition. Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra Concepts of Database Management Eighth Edition Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra Relational Databases A relational database is a collection of tables Each entity

More information

Microsoft Access 2016

Microsoft Access 2016 Access 2016 Instructor s Manual Page 1 of 10 Microsoft Access 2016 Module Two: Querying a Database A Guide to this Instructor s Manual: We have designed this Instructor s Manual to supplement and enhance

More information

Access Intermediate

Access Intermediate Access 2013 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC124 AC125 Selecting Fields Pages AC125 AC128 AC129 AC131 AC238 Sorting Results Pages AC131 AC136 Specifying Criteria Pages

More information

Microsoft Access 2016

Microsoft Access 2016 Access 2016 Instructor s Manual Page 1 of 10 Microsoft Access 2016 Module Two: Querying a Database A Guide to this Instructor s Manual: We have designed this Instructor s Manual to supplement and enhance

More information

Shelly Cashman Series Microsoft Office 365 and Access 2016 Introductory 1st Edition Pratt TEST BANK

Shelly Cashman Series Microsoft Office 365 and Access 2016 Introductory 1st Edition Pratt TEST BANK Shelly Cashman Series Microsoft Office 365 and Access 2016 Introductory 1st Edition Pratt TEST BANK Full clear download (no formatting errors) at: https://testbankreal.com/download/shelly-cashman-series-microsoft-office-365-access-

More information

Access Intermediate

Access Intermediate Access 2010 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC116 AC117 Selecting Fields Pages AC118 AC119 AC122 Sorting Results Pages AC125 AC126 Specifying Criteria Pages AC132 AC134

More information

Getting started with Ms Access Getting Started. Primary Key Composite Key Foreign Key

Getting started with Ms Access Getting Started. Primary Key Composite Key Foreign Key Getting started with Ms Access 2007 Getting Started Customize Microsoft Office Toolbar The Ribbon Quick Access Toolbar Navigation Tabbed Document Window Viewing Primary Key Composite Key Foreign Key Table

More information

HKTA TANG HIN MEMORIAL SECONDARY SCHOOL SECONDARY 3 COMPUTER LITERACY. Name: ( ) Class: Date: Databases and Microsoft Access

HKTA TANG HIN MEMORIAL SECONDARY SCHOOL SECONDARY 3 COMPUTER LITERACY. Name: ( ) Class: Date: Databases and Microsoft Access Databases and Microsoft Access Introduction to Databases A well-designed database enables huge data storage and efficient data retrieval. Term Database Table Record Field Primary key Index Meaning A organized

More information

Microsoft Access Illustrated. Unit B: Building and Using Queries

Microsoft Access Illustrated. Unit B: Building and Using Queries Microsoft Access 2010- Illustrated Unit B: Building and Using Queries Objectives Use the Query Wizard Work with data in a query Use Query Design View Sort and find data (continued) Microsoft Office 2010-Illustrated

More information

Language. f SQL. Larry Rockoff COURSE TECHNOLOGY. Kingdom United States. Course Technology PTR. A part ofcenqaqe Learninq

Language. f SQL. Larry Rockoff COURSE TECHNOLOGY. Kingdom United States. Course Technology PTR. A part ofcenqaqe Learninq Language f SQL Larry Rockoff Course Technology PTR A part ofcenqaqe Learninq *, COURSE TECHNOLOGY!» CENGAGE Learning- Australia Brazil Japan Korea Mexico Singapore Spain United Kingdom United States '

More information

Enforce Referential. dialog box, click to mark the. Enforce Referential. Integrity, Cascade Update Related Fields, and. Cascade Delete Related

Enforce Referential. dialog box, click to mark the. Enforce Referential. Integrity, Cascade Update Related Fields, and. Cascade Delete Related PROCEDURES LESSON 8: MANAGING RELATIONSHIPS BETWEEN TABLES Renaming a Table 1 In the Navigation pane, right-click the table you want to rename 2 On the shortcut menu, click Rename 3 Type the new table

More information

Access 2007: Advanced Instructor s Edition

Access 2007: Advanced Instructor s Edition Access 2007: Advanced Instructor s Edition ILT Series COPYRIGHT Axzo Press. All rights reserved. No part of this work may be reproduced, transcribed, or used in any form or by any means graphic, electronic,

More information

Microsoft Access XP (2002) - Advanced Queries

Microsoft Access XP (2002) - Advanced Queries Microsoft Access XP (2002) - Advanced Queries Group/Summary Operations Change Join Properties Not Equal Query Parameter Queries Working with Text IIF Queries Expression Builder Backing up Tables Action

More information

Follow these steps to get started: o Launch MS Access from your start menu. The MS Access startup panel is displayed:

Follow these steps to get started: o Launch MS Access from your start menu. The MS Access startup panel is displayed: Forms-based Database Queries The topic presents a summary of Chapter 3 in the textbook, which covers using Microsoft Access to manage and query an Access database. The screenshots in this topic are from

More information

Microsoft Certified Application Specialist Exam Objectives Map

Microsoft Certified Application Specialist Exam Objectives Map Microsoft Certified Application Specialist Exam Objectives Map This document lists all Microsoft Certified Application Specialist exam objectives for (Exam 77-605) and provides references to corresponding

More information

Skills Exam Objective Objective Number. Creating crosstab queries Create a crosstab query

Skills Exam Objective Objective Number. Creating crosstab queries Create a crosstab query 12 Advanced Queries SKILL SUMMARY Skills Exam Objective Objective Number Creating crosstab queries Create a crosstab query. 3.1.2 Creating a subquery Add fields. Remove fields. Group data by using comparison

More information

Relational Databases. APPENDIX A Overview of Relational Database Structure and SOL

Relational Databases. APPENDIX A Overview of Relational Database Structure and SOL APPENDIX A Overview of Relational Database Structure and SOL - THIS APPENDIX CONTAINS a brief overview of relational databases and the Structured Query Language (SQL). It provides the basic knowledge necessary

More information

Complete Quick Reference Summary

Complete Quick Reference Summary Microsoft Access 2010 Complete Quick Reference Summary Microsoft Access 2010 Quick Reference Summary Advanced Filter/Sort, Use AC 153 Advanced button (Home tab Sort & Filter, Advanced Filter/Sort) All

More information

Formulas, LookUp Tables and PivotTables Prepared for Aero Controlex

Formulas, LookUp Tables and PivotTables Prepared for Aero Controlex Basic Topics: Formulas, LookUp Tables and PivotTables Prepared for Aero Controlex Review ribbon terminology such as tabs, groups and commands Navigate a worksheet, workbook, and multiple workbooks Prepare

More information

Microsoft Office Illustrated Introductory, Building and Using Queries

Microsoft Office Illustrated Introductory, Building and Using Queries Microsoft Office 2007- Illustrated Introductory, Building and Using Queries Creating a Query A query allows you to ask for only the information you want vs. navigating through all the fields and records

More information

DESIGNING, BUILDING, AND USING DATABASES (BEGINNING MICROSOFT ACCESS, X405.4)

DESIGNING, BUILDING, AND USING DATABASES (BEGINNING MICROSOFT ACCESS, X405.4) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DESIGNING, BUILDING, AND USING DATABASES (BEGINNING MICROSOFT ACCESS, X405.4) Section 3 AGENDA

More information

Full file at

Full file at David Kroenke's Database Processing: Fundamentals, Design and Implementation (10 th Edition) CHAPTER TWO INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) True-False Questions 1. SQL stands for Standard

More information

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 7 Introduction to Structured Query Language (SQL)

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management Tenth Edition Chapter 7 Introduction to Structured Query Language (SQL) Objectives In this chapter, students will learn: The basic commands and

More information

STIDistrict Query (Basic)

STIDistrict Query (Basic) STIDistrict Query (Basic) Creating a Basic Query To create a basic query in the Query Builder, open the STIDistrict workstation and click on Utilities Query Builder. When the program opens, database objects

More information

Oracle Syllabus Course code-r10605 SQL

Oracle Syllabus Course code-r10605 SQL Oracle Syllabus Course code-r10605 SQL Writing Basic SQL SELECT Statements Basic SELECT Statement Selecting All Columns Selecting Specific Columns Writing SQL Statements Column Heading Defaults Arithmetic

More information

CSC Web Programming. Introduction to SQL

CSC Web Programming. Introduction to SQL CSC 242 - Web Programming Introduction to SQL SQL Statements Data Definition Language CREATE ALTER DROP Data Manipulation Language INSERT UPDATE DELETE Data Query Language SELECT SQL statements end with

More information

Relational Database Management Systems for Epidemiologists: SQL Part I

Relational Database Management Systems for Epidemiologists: SQL Part I Relational Database Management Systems for Epidemiologists: SQL Part I Outline SQL Basics Retrieving Data from a Table Operators and Functions What is SQL? SQL is the standard programming language to create,

More information

MIS Cases: Decision Making With Application Software, Second Edition. Database Glossary

MIS Cases: Decision Making With Application Software, Second Edition. Database Glossary MIS Cases: Decision Making With Application Software, Second Edition Database Glossary This database glossary is designed to accompany MIS Cases: Decision Making With Application Software, Second Edition,

More information

Tutorial 3 Maintaining and Querying a Database. Finding Data in a Table. Updating a Database

Tutorial 3 Maintaining and Querying a Database. Finding Data in a Table. Updating a Database Tutorial 3 Maintaining and Querying a Database Finding Data in a Table Must navigate to a record before view/delete/change it Find is a great way to navigate to a record But... Find can t: show matching

More information

Objective 1: Familiarize yourself with basic database terms and definitions. Objective 2: Familiarize yourself with the Access environment.

Objective 1: Familiarize yourself with basic database terms and definitions. Objective 2: Familiarize yourself with the Access environment. Beginning Access 2007 Objective 1: Familiarize yourself with basic database terms and definitions. What is a Database? A Database is simply defined as a collection of related groups of information. Things

More information

Using Microsoft Access

Using Microsoft Access Using Microsoft Access Creating Select Queries Norm Downey Chapter 2 pages 173 193 and Chapter 3 pages 218 249 2 1 This PowerPoint uses the Sample Databases on the class website Please download them now

More information

Oracle Database 11g: SQL and PL/SQL Fundamentals

Oracle Database 11g: SQL and PL/SQL Fundamentals Oracle University Contact Us: +33 (0) 1 57 60 20 81 Oracle Database 11g: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn In this course, students learn the fundamentals of SQL and PL/SQL

More information

Databases II: Microsoft Access

Databases II: Microsoft Access Recapitulation Databases II: Microsoft Access CS111, 2016 A database is a collection of data that is systematically organized, so as to allow efficient addition, modification, removal and retrieval. A

More information

GIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement

GIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement GIFT Department of Computing Science [Spring 2013] CS-217: Database Systems Lab-2 Manual Data Selection and Filtering using the SELECT Statement V1.0 4/12/2016 Introduction to Lab-2 This lab reinforces

More information

K Hinds Page 1. Information Communication Technology Microsoft Access

K Hinds Page 1. Information Communication Technology Microsoft Access www.smsbarbados.wordpress.com Page 1 Information Communication Technology Microsoft Access www.smsbarbados.wordpress.com Page 2 What is a database? A database is a collection of information that is organized

More information

Table of Contents. PDF created with FinePrint pdffactory Pro trial version

Table of Contents. PDF created with FinePrint pdffactory Pro trial version Table of Contents Course Description The SQL Course covers relational database principles and Oracle concepts, writing basic SQL statements, restricting and sorting data, and using single-row functions.

More information

1.8.1 Research various database careers SE: 335

1.8.1 Research various database careers SE: 335 AR Advanced Database Framework (492140) Correlated to Benchmark Series: Microsoft Access 2010 Part 1 Unit 1: Introduction to Relational Databases and Database Careers 1.1 Define terminology 1.1.1 Prepare

More information

1 Writing Basic SQL SELECT Statements 2 Restricting and Sorting Data

1 Writing Basic SQL SELECT Statements 2 Restricting and Sorting Data 1 Writing Basic SQL SELECT Statements Objectives 1-2 Capabilities of SQL SELECT Statements 1-3 Basic SELECT Statement 1-4 Selecting All Columns 1-5 Selecting Specific Columns 1-6 Writing SQL Statements

More information

SE: 4, 6, 31 (Knowledge Check), 60, (Knowledge Check) 1.2 Explain the purpose of a relational Explain how a database is

SE: 4, 6, 31 (Knowledge Check), 60, (Knowledge Check) 1.2 Explain the purpose of a relational Explain how a database is AR Advanced Database Framework (492140) Correlated to Marquee Series: Microsoft Access 2010 Unit 1: Introduction to Relational Databases and Database Careers 1.1 Define terminology 1.1.1 Prepare a list

More information

Microsoft Access XP (2002) Queries

Microsoft Access XP (2002) Queries Microsoft Access XP (2002) Queries Column Display & Sorting Simple Queries And & Or Conditions Ranges Wild Cards Blanks Calculations Multi-table Queries Table of Contents INTRODUCTION TO ACCESS QUERIES...

More information

SQL functions fit into two broad categories: Data definition language Data manipulation language

SQL functions fit into two broad categories: Data definition language Data manipulation language Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Beginning Structured Query Language (SQL) MDM NUR RAZIA BINTI MOHD SURADI 019-3932846 razia@unisel.edu.my

More information

Access - Introduction to Queries

Access - Introduction to Queries Access - Introduction to Queries Part of managing a database involves asking questions about the data. A query is an Access object that you can use to ask the question(s). The answer is contained in the

More information

Test Bank for Database Processing Fundamentals Design and Implementation 13th Edition by Kroenke

Test Bank for Database Processing Fundamentals Design and Implementation 13th Edition by Kroenke Test Bank for Database Processing Fundamentals Design and Implementation 13th Edition by Kroenke Link full download: https://testbankservice.com/download/test-bank-fordatabase-processing-fundamentals-design-and-implementation-13th-edition-bykroenke

More information

Access 2013: Intermediate to advanced queries

Access 2013: Intermediate to advanced queries Access 2013: Intermediate to advanced queries Practical workbook Aims and Learning Objectives This document shows you how to do things with queries that take you slightly beyond the norm. It is not supposed

More information

New Perspectives on Access Module 5: Creating Advanced Queries and Enhancing Table Design

New Perspectives on Access Module 5: Creating Advanced Queries and Enhancing Table Design New Perspectives on Access 2016 Module 5: Creating Advanced Queries and Enhancing Table Design 1 Objectives Session 5.1 Review object naming standards Use the Like, In, Not, and & operators in queries

More information

Kaseya 2. User Guide. Version 7.0. English

Kaseya 2. User Guide. Version 7.0. English Kaseya 2 Custom Reports User Guide Version 7.0 English September 3, 2014 Agreement The purchase and use of all Software and Services is subject to the Agreement as defined in Kaseya s Click-Accept EULATOS

More information

Exact Numeric Data Types

Exact Numeric Data Types SQL Server Notes for FYP SQL data type is an attribute that specifies type of data of any object. Each column, variable and expression has related data type in SQL. You would use these data types while

More information

ENGG1811: Databases 1

ENGG1811: Databases 1 ENGG1811 Databases Computing for Engineers Why Databases How do they work? Views of databases, and Linking multiple databases Problems that databases try to deal with Table, field, record, keys, etc Different

More information

DB2 SQL Class Outline

DB2 SQL Class Outline DB2 SQL Class Outline The Basics of SQL Introduction Finding Your Current Schema Setting Your Default SCHEMA SELECT * (All Columns) in a Table SELECT Specific Columns in a Table Commas in the Front or

More information

Microsoft Excel 2010 Handout

Microsoft Excel 2010 Handout Microsoft Excel 2010 Handout Excel is an electronic spreadsheet program you can use to enter and organize data, and perform a wide variety of number crunching tasks. Excel helps you organize and track

More information

You can write a command to retrieve specified columns and all rows from a table, as illustrated

You can write a command to retrieve specified columns and all rows from a table, as illustrated CHAPTER 4 S I N G L E - TA BL E QUERIES LEARNING OBJECTIVES Objectives Retrieve data from a database using SQL commands Use simple and compound conditions in queries Use the BETWEEN, LIKE, and IN operators

More information

6) The technique allows managers to view data in a data warehouse on a global level and on successively lower levels.

6) The technique allows managers to view data in a data warehouse on a global level and on successively lower levels. SPRING 07-08 CIS108 MIDTERM EXAM /FACULTY OF ECON. &ADMIN. SCIENCES OF EUL Student Registration No: Instructor: Prof.Dr.Hüseyin Oğuz Student Name-Surname: Dept. of Computer Information Systems Room#: AS207

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the fundamentals of SQL and PL/SQL along with the

More information

Oracle Database 10g: Introduction to SQL

Oracle Database 10g: Introduction to SQL ORACLE UNIVERSITY CONTACT US: 00 9714 390 9000 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database

More information

Microsoft Access 2016 Intro to Select Queries

Microsoft Access 2016 Intro to Select Queries Microsoft Access 2016 Intro to Select Queries training@health.ufl.edu Access 2016: Intro to Select Queries 2.0 hours Queries compile data from tables into a desired dataset. You can choose multiple fields

More information

Microsoft Access 2010 Select Queries

Microsoft Access 2010 Select Queries Microsoft Access 2010 Select Queries Email: training@health.ufl.edu Web Page: http://training.health.ufl.edu Microsoft Access 2010: Select Queries 2.0 hours Topics include table filters, select queries,

More information

Oracle Database: SQL and PL/SQL Fundamentals Ed 2

Oracle Database: SQL and PL/SQL Fundamentals Ed 2 Oracle University Contact Us: Local: 1800 103 4775 Intl: +91 80 67863102 Oracle Database: SQL and PL/SQL Fundamentals Ed 2 Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals

More information

Chapter 7. Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel

Chapter 7. Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: The basic commands

More information

Quick Start Guide. Version R94. English

Quick Start Guide. Version R94. English Custom Reports Quick Start Guide Version R94 English December 12, 2016 Copyright Agreement The purchase and use of all Software and Services is subject to the Agreement as defined in Kaseya s Click-Accept

More information

CHAPTER 6 SUMMARY. Objective 1: Identify Good Database Design

CHAPTER 6 SUMMARY. Objective 1: Identify Good Database Design Objective 1: Identify Good Database Design CHAPTER 6 SUMMARY A database is an organized collection of data facts about people, events, things, or ideas related to a specific topic or purpose. Information

More information

Creating a Crosstab Query in Design View

Creating a Crosstab Query in Design View Procedures LESSON 31: CREATING CROSSTAB QUERIES Using the Crosstab Query Wizard box, click Crosstab Query Wizard. 5. In the next Crosstab Query the table or query on which you want to base the query. 7.

More information

Microsoft. Student Edition. The Richard Stockton College of New Jersey. Computer Courseware

Microsoft. Student Edition. The Richard Stockton College of New Jersey. Computer Courseware Microsoft Working with Queries in Access 2002 Student Edition The Richard Stockton College of New Jersey Computer Courseware CustomGuide.com granted to Computer and Telecommunication Services a license

More information

Formulas and Functions

Formulas and Functions Conventions used in this document: Keyboard keys that must be pressed will be shown as Enter or Ctrl. Controls to be activated with the mouse will be shown as Start button > Settings > System > About.

More information

Unit 3 Fill Series, Functions, Sorting

Unit 3 Fill Series, Functions, Sorting Unit 3 Fill Series, Functions, Sorting Fill enter repetitive values or formulas in an indicated direction Using the Fill command is much faster than using copy and paste you can do entire operation in

More information

Unit 3 Functions Review, Fill Series, Sorting, Merge & Center

Unit 3 Functions Review, Fill Series, Sorting, Merge & Center Unit 3 Functions Review, Fill Series, Sorting, Merge & Center Function built-in formula that performs simple or complex calculations automatically names a function instead of using operators (+, -, *,

More information

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

SUM - This says to add together cells F28 through F35. Notice that it will show your result is COUNTA - The COUNTA function will examine a set of cells and tell you how many cells are not empty. In this example, Excel analyzed 19 cells and found that only 18 were not empty. COUNTBLANK - The COUNTBLANK

More information

AUSTIN COMMUNITY COLLEGE CONTINUING EDUCATION. INTERMEDIATE DATABASE/FILE AMANGEMENT (Access Intermediate) (12 hours) ITSW 1055 COURSE SYLLABUS

AUSTIN COMMUNITY COLLEGE CONTINUING EDUCATION. INTERMEDIATE DATABASE/FILE AMANGEMENT (Access Intermediate) (12 hours) ITSW 1055 COURSE SYLLABUS Course Description: Instruction in data validation, data manipulation, browsing through records, records selection and query, indexing, and sorting. Topics include modifying tables, using database wizards,

More information

Outline. Data and Operations. Data Types. Integral Types

Outline. Data and Operations. Data Types. Integral Types Outline Data and Operations Data Types Arithmetic Operations Strings Variables Declaration Statements Named Constant Assignment Statements Intrinsic (Built-in) Functions Data and Operations Data and Operations

More information

USING FORMULAS AND FUNCTIONS...

USING FORMULAS AND FUNCTIONS... Overview NOTES... 2 OVERVIEW... 3 VIEW THE PROJECT... 5 USING FORMULAS AND FUNCTIONS... 6 BASIC EXCEL REVIEW... 6 FORMULAS... 7 Typing formulas... 7 Clicking to insert cell references... 7 Using a Simple

More information

WebIntelligence. Creating Documents

WebIntelligence. Creating Documents Creating Documents This page is intentionally left blank. 2 WIC110904 Table of Contents Lesson Objective... 5 For Assistance...6 Introduction... 7 Document Editor... 7 Designing a Query Flowchart... 9

More information

VII. Data Management Essentials

VII. Data Management Essentials VII. Sort Excel recognizes a list or data set if the data in the list is contiguous, bordered by blank cells or an edge of the worksheet, and has labels that are differentiated in some way from the data.

More information

2) SQL includes a data definition language, a data manipulation language, and SQL/Persistent stored modules. Answer: TRUE Diff: 2 Page Ref: 36

2) SQL includes a data definition language, a data manipulation language, and SQL/Persistent stored modules. Answer: TRUE Diff: 2 Page Ref: 36 Database Processing, 12e (Kroenke/Auer) Chapter 2: Introduction to Structured Query Language (SQL) 1) SQL stands for Standard Query Language. Diff: 1 Page Ref: 32 2) SQL includes a data definition language,

More information

Using Microsoft Access

Using Microsoft Access Using Microsoft Access Creating Queries Norm Downey This PowerPoint uses the Sample Databases on the class website Please download them now 2 1 What is a Query? Queries allow the user to manipulate the

More information

Microsoft Access 2010

Microsoft Access 2010 Microsoft Access 2010 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

IT2.weebly.com Applied ICT 9713

IT2.weebly.com Applied ICT 9713 Chapter 11 Database and charts You already know how to o define database record structures o enter data into a database o select subsets of data within a database o sort data within a database o produce

More information

Teradata SQL Features Overview Version

Teradata SQL Features Overview Version Table of Contents Teradata SQL Features Overview Version 14.10.0 Module 0 - Introduction Course Objectives... 0-4 Course Description... 0-6 Course Content... 0-8 Module 1 - Teradata Studio Features Optimize

More information

M I C R O S O F T A C C E S S : P A R T 2 G E T T I N G I N F O R M A T I O N O U T O F Y O U R D A T A

M I C R O S O F T A C C E S S : P A R T 2 G E T T I N G I N F O R M A T I O N O U T O F Y O U R D A T A M I C R O S O F T A C C E S S 2 0 1 0 : P A R T 2 G E T T I N G I N F O R M A T I O N O U T O F Y O U R D A T A Michael J. Walk ALC Instructor michael@jwalkonline.org www.jwalkonline.org/main @MichaelJWalk

More information

Exploring Microsoft Office Access Chapter 2: Relational Databases and Multi-Table Queries

Exploring Microsoft Office Access Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office Access 2010 Chapter 2: Relational Databases and Multi-Table Queries 1 Objectives Design data Create tables Understand table relationships Share data with Excel Establish table

More information

Schnieder_index.qxd 7/27/05 1:08 PM Page 481 INDEX. Symbols

Schnieder_index.qxd 7/27/05 1:08 PM Page 481 INDEX. Symbols Schnieder_index.qxd 7/27/05 1:08 PM Page 481 INDEX Symbols & (ampersand), 294 * (asterisk), 180, 201! (exclamation point), 180 - (hyphen), 180 # (pound sign), 180? (question mark), 180 " " (quotation marks),

More information

Oracle Database 11g: SQL Fundamentals I

Oracle Database 11g: SQL Fundamentals I Oracle Database 11g: SQL Fundamentals I Volume I Student Guide D49996GC11 Edition 1.1 April 2009 D59980 Authors Puja Singh Brian Pottle Technical Contributors and Reviewers Claire Bennett Tom Best Purjanti

More information

FRP300 Instructor Notes. Table of Contents

FRP300 Instructor Notes. Table of Contents FRP300 Instructor Notes Table of Contents Updated April 24, 2016 1) AutoSum... 1 2) Fill Handle... 2 3) Relative versus Absolute Referencing... 2 4) COUNTIF and SUMIF... 4 5) CONCATENATE... 6 6) Text to

More information

Microsoft Office Access Learn how to use the Query window in Design view. Tutorial 3b Querying a Database

Microsoft Office Access Learn how to use the Query window in Design view. Tutorial 3b Querying a Database Microsoft Office Access 2003 Tutorial 3b Querying a Database 1 Learn how to use the Query window in Design view The Query window in Design view allows you to specify the results you want for a query. In

More information

Operators. Java operators are classified into three categories:

Operators. Java operators are classified into three categories: Operators Operators are symbols that perform arithmetic and logical operations on operands and provide a meaningful result. Operands are data values (variables or constants) which are involved in operations.

More information

Microsoft Access 2013

Microsoft Access 2013 Microsoft Access 2013 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

Microsoft Access 2013

Microsoft Access 2013 Microsoft Access 2013 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS...

I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS... EXCEL 2010 BASICS Microsoft Excel I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS... 6 The Mouse... 6 What Are Worksheets?... 6 What is a Workbook?...

More information

Lesson 2. Data Manipulation Language

Lesson 2. Data Manipulation Language Lesson 2 Data Manipulation Language IN THIS LESSON YOU WILL LEARN To add data to the database. To remove data. To update existing data. To retrieve the information from the database that fulfil the stablished

More information

T-SQL Training: T-SQL for SQL Server for Developers

T-SQL Training: T-SQL for SQL Server for Developers Duration: 3 days T-SQL Training Overview T-SQL for SQL Server for Developers training teaches developers all the Transact-SQL skills they need to develop queries and views, and manipulate data in a SQL

More information

Introduction to SQL. IT 5101 Introduction to Database Systems. J.G. Zheng Fall 2011

Introduction to SQL. IT 5101 Introduction to Database Systems. J.G. Zheng Fall 2011 Introduction to SQL IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 Overview Using Structured Query Language (SQL) to get the data you want from relational databases Learning basic syntax

More information

More on MS Access queries

More on MS Access queries More on MS Access queries BSAD 141 Dave Novak Topics Covered MS Access query capabilities Aggregate queries Different joins Review: AND and OR Parameter query Exact match criteria versus range Formatting

More information

CS1100: Data, Databases, and Queries QUERY CONSTRUCTION. CS1100 Microsoft Access 1

CS1100: Data, Databases, and Queries QUERY CONSTRUCTION. CS1100 Microsoft Access 1 CS1100: Data, Databases, and Queries QUERY CONSTRUCTION CS1100 Microsoft Access 1 Microsoft Access Tutorial: Data, Databases, and Queries LAYOUT OF THE ORDERS DATABASE CS1100 Microsoft Access 2 The Orders

More information

Querying Data with Transact SQL

Querying Data with Transact SQL Course 20761A: Querying Data with Transact SQL Course details Course Outline Module 1: Introduction to Microsoft SQL Server 2016 This module introduces SQL Server, the versions of SQL Server, including

More information

Access ComprehGnsiwG. Shelley Gaskin, Carolyn McLellan, and. Nancy Graviett. with Microsoft

Access ComprehGnsiwG. Shelley Gaskin, Carolyn McLellan, and. Nancy Graviett. with Microsoft with Microsoft Access 2010 ComprehGnsiwG Shelley Gaskin, Carolyn McLellan, and Nancy Graviett Prentice Hall Boston Columbus Indianapolis New York San Francisco Upper Saddle River Imsterdam Cape Town Dubai

More information

Microsoft Office Access 2013: Part 01. Lesson 04 - Creating Advanced Queries

Microsoft Office Access 2013: Part 01. Lesson 04 - Creating Advanced Queries Microsoft Office Access 2013: Part 01 Lesson 04 - Creating Advanced Queries Slide 1 Lesson 04: Creating Advanced Queries Create Parameter Queries Create Action Queries Create Unmatched and Duplicate Queries

More information

Oracle Database 10g: SQL Fundamentals I

Oracle Database 10g: SQL Fundamentals I Oracle Database 10g: SQL Fundamentals I Volume I Student Guide D17108GC11 Edition 1.1 August 2004 D39766 Author Nancy Greenberg Technical Contributors and Reviewers Wayne Abbott Christian Bauwens Perry

More information

1) Introduction to SQL

1) Introduction to SQL 1) Introduction to SQL a) Database language enables users to: i) Create the database and relation structure; ii) Perform insertion, modification and deletion of data from the relationship; and iii) Perform

More information

Access Module 2: Building and Using Queries

Access Module 2: Building and Using Queries 1. A query allows the selection of a subset of fields and records from one or more tables, then presents the selected data as a single datasheet. True REFERENCES: Access 28 Use the Query Wizard LEARNING

More information