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

Similar documents
Microsoft Access Illustrated. Unit B: Building and Using Queries

CSC Web Programming. Introduction to SQL

CHAPTER 6 SUMMARY. Objective 1: Identify Good Database Design

STIDistrict Query (Basic)

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

Introduction to Microsoft Access 2016

Microsoft Office Illustrated Introductory, Building and Using Queries

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

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

Unit Assessment Guide

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Sloan School of Management

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

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

Database. Ed Milne. Theme An introduction to databases Using the Base component of LibreOffice

DATABASE PART 2. Components and Functions

Database Tables Lookup Wizard Relationships Forms Subforms Queries Reports

Microsoft Certified Application Specialist Exam Objectives Map

Level 6 Relational Database Unit 3 Relational Database Development Environment National Council for Vocational Awards C30147 RELATIONAL DATABASE

ICT IGCSE Databases (Access)

Very Short Answer Type Questions [1 Mark each]

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

SOFTWARE SKILLS BUILDERS

MOBILE DATABASE VIEWER PLUS USER GUIDE

Index. B backing up 76 7

MS-Access : Objective Questions (MCQs) Set 1

COMM 391. Objectives. Introduction to Microsoft Access. What is in an Access database file? Introduction to Microsoft Access 2010

MOBILEDATABASE USER GUIDE PRODUCT VERSION: 1.0

Access Intermediate

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

By: Access 2007 Table

COMP 244 DATABASE CONCEPTS & APPLICATIONS

What is a database? Lesson - 1

Access Objects. Tables Queries Forms Reports Relationships

SEE GRADING CRITERIA AT THE BOTTOM. Database Tables Lookup Wizard Relationships Forms Queries Reports

Oracle Database 11g: SQL and PL/SQL Fundamentals

Workbooks (File) and Worksheet Handling

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Chapter-14 SQL COMMANDS

WIRELESS DATABASE VIEWER PLUS (ENTERPRISE EDITION) SERVER SIDE USER GUIDE

Microsoft Access 2007 Module 2

Access Intermediate

Excel 2007 Pivot Table Sort Column Headings

Advanced Topics in Access: Queries

Tutorial 2. Building a Database and Defining Table Relationships

Microsoft Access - Using Relational Database Data Queries (Stored Procedures) Paul A. Harris, Ph.D. Director, GCRC Informatics.

Massachusetts Institute of Technology Department of Urban Studies and Planning

ENGG1811: Databases 1

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

Microsoft Office Specialist Access 2016

Process Document Defining Expressions. Defining Expressions. Concept

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

Lesson 2. Data Manipulation Language

WIRELESS DATABASE VIEWER PLUS FOR POCKET PC PHONE: USER GUIDE PRODUCT VERSION: 1.5

MS Access Let s begin by looking at the toolbar and menu of Access.

Microsoft Office Illustrated. Using Tables

Report Writing: Basic Steps

BLACKBERRY WIRELESS DATABASE VIEWER USER GUIDE PRODUCT VERSION: 1.0

Exact Numeric Data Types

Complete Quick Reference Summary

What is a database? A database is any collection of data that is organized for quick retrieval. Databases can be computer based or paper based

Access Module 2: Building and Using Queries

Microsoft Access XP Edition for ECDL Syllabus 4.5 (UK only)

Unit 3 Fill Series, Functions, Sorting

Copyright 2018 by KNIME Press

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

MINI-EXERCISE. I. Develop your relational model below. College of Business Administration. Page 1. Figure 1: ER diagram for exercise. Title.

Queries give database managers its real power. Their most common function is to filter and consolidate data from tables to retrieve it.

Create and Modify Queries 7

Microsoft Access 2010

1.8.1 Research various database careers SE: 335

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

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

WIRELESS DATABASE VIEWER PLUS FOR IPHONE: USER GUIDE PRODUCT VERSION: 1.0

Database Design Practice Test JPSFBLA

K Hinds Page 1. Information Communication Technology Microsoft Access

Computer Skills MS Access Work Sheet # 1

MariaDB Crash Course. A Addison-Wesley. Ben Forta. Upper Saddle River, NJ Boston. Indianapolis. Singapore Mexico City. Cape Town Sydney.

12. MS Access Tables, Relationships, and Queries

Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations. SQL: Structured Query Language

Some Basic Aggregate Functions FUNCTION OUTPUT The number of rows containing non-null values The maximum attribute value encountered in a given column

Microsoft Access XP (2002) Queries

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

WIRELESS DATABASE VIEWER PLUS FOR ANDROID DEVICES: USER GUIDE PRODUCT VERSION: 2.4

Microsoft Access Relationship Total Queries - Reports

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

Full file at

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

Access 2000 MICROSOFT. Level One Basic. Version N2

Oracle Database: SQL and PL/SQL Fundamentals NEW

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

More on MS Access queries

MySQL Workshop. Scott D. Anderson

Exam 2 Study Guide. Denny Hood Computer Science 101

Chapter # 7 Introduction to Structured Query Language (SQL) Part II

Oracle Database: SQL and PL/SQL Fundamentals Ed 2

QUERY USER MANUAL Chapter 7

Access Test Chapters 1 and 2

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

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

Creating a Crosstab Query in Design View

Transcription:

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 collection of data. A database consists of one or more tables. Consists of records and fields A row in a table, which contains a set of related data A column in a table. A field is also known as a particular column in a record. The same field of different records has the same data type. A field or a set of fields in a table. Each record s primary key is a unique value for identification. Allow records to be searched efficiently (i.e. search without reading every single record.) An index should be created for all fields (or set of fields) that needs to be searched. Database software Examples of database software are Microsoft Access, Visual FoxPro, Oracle Database, and MySQL. P. 1

Microsoft Access The database software inside Microsoft Office suite. Main functions: tables, queries, forms, reports, Tables A table consists of records and fields. Tables are used to store data. Below is a table in the datasheet view. And below is the same table in the design view. P. 2

Fields Term Field Name Data Type Description Field Size Format Required Allow Zero Length Indexed Meaning The name of the field, which is referred in queries, forms, etc. The data type of the field. The most important data types are Number, Text, Date/Time, Currency, AutoNumber, Yes/No (Boolean). A comment to explain the meaning of the field The size of the field. Only useful for some data type. Number: Byte, Integer, Long Integer, Single, Double, Decimal Text: Maximum number of characters in the field Determines how the data is displayed If yes, a datum must be entered into the field. Otherwise, the field can be empty. (An empty field has a value of NULL.) Allow text to have zero length (i.e. be an empty string). Whether the field is an index. Settings are No, Yes (Duplicates OK) and Yes (No Duplicates). Yes means the field indexed, i.e. optimized for searching. No Duplicates means the field is unique. Operations in a database table Inserting data ( insert means add in database) Deleting data (no way to recover lost data!!!) Search data Altering the definition of fields (Any data loss in the change?) Sorting and filtering of data Excel-like sorting and filtering functions are provided The function only controls how the data is displayed. Unlike Excel, the underlying data are not affected. Filter by selection, filter by form, advanced filter P. 3

Queries Display some/all fields of the data Perform simple calculations (e.g. price * qty) Filtering and sorting Find aggregate values (e.g. sum, average, count, etc.) Queries can act as tables for further processing (Note: this function is known as views in other database software) Cross-tabulation (Microsoft Access only) Combine different tables into one large table (i.e. joins) Perform database operations such as inserting and deleting records. (Note: In most database software, all operations are done in queries.) Design view, SQL (Structured Query Language) The diagram below explains how queries are designed. P. 4

Criteria of Queries Criteria in the same row means and, and in different rows means or. And is always calculated before or. Operators: =, <>, <, <=, >, >=, Not, And, Or, Like, Is Null, Is Not Null Wildcards for Like operator: * Symbol Meaning Example Matches * Any string "ab*" ab, abc, absolute, etc (empty strings okay)? Any character "a?c" abc, aac, etc but not ac # Any digit "#D" 1D, 2D, 3D, Sorting Sort ascending or descending for each column. Sorting instructions are applied from left to right. To change the order of sorting instructions, add another column having the same content in the correct place. Apply sorting to that column, and do not show the column. Calculations Do calculations with the fields in the same record. E.g. price * qty means the product of fields price and qty. A field of total: price * qty mean that the column header is total, and the formula is price * qty. * The wildcards used in Microsoft Access are different from other database software P. 5

Grouping Click the button (Totals) to enter grouping mode. In most fields, select Group By in the row Totals. If two or more rows have the same content in all Group By fields, then they will be put into the same group. Only one aggregate result is shown. Select Sum, Avg, Count, etc. on the fields that calculations are done. Functions available: Sum, Avg, Count, Min, Max, etc Delete fields that should not be included in the calculations, like ID. Total row Group By Sum Avg Count Min Max Expression Where Meaning If two or more rows have the same content in all Group By fields, then they will be put into the same group. Find the sum. Find the average. Find the count. Count(*) (type in the field) means the number of records, while Count([field]) means the number of records excluding Null values in that field. Find the minimum. Find the maximum. Enter the aggregate functions in the field instead. E.g. Sum(price * qty - discount) Indicate that the field are filtered before grouping. If not set to Where, the field is filtered after grouping. Forms Interface created by users to manipulate and display data Use of macros and/or programs in VBA (Visual Basic for Applications) Reports Show results (tables/queries) in paper Organize results into groups, e.g. the class of students. P. 6