CST221: Database Systems (II)

Slides:



Advertisements
Similar presentations
CST221: Database Systems (II) Dr. Zhen Jiang Computer Science Department West Chester University West Chester, PA
Advertisements

Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 10 – Designing.
Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
Microsoft Office 2007 Access Chapter 2 Querying a Database.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Querying a Database Using the Select Query Window
Staff Development Daze June 27 & 28 Tony Gauvin. Schedule  Monday June 27  Monday June 27  9:00 – 12:00 Basic Excel  12:00 – 1:00 Lunch for all workshop.
Chapter 2 Querying a Database
Microsoft Access 2010 Chapter 7 Using SQL.
Chapter 2 Querying a Database
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
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.
CSC 545: Database Systems Dr. Zhen Jiang Computer Science Department West Chester University.
CSC321: Database Management Systems Dr. Zhen Jiang Computer Science Department West Chester University West Chester, PA
Microsoft Office 2007 Access Chapter 2 Querying a Database.
Concepts of Database Management Seventh Edition
Concepts of Database Management Seventh Edition
DATABASE TRANSACTION. Transaction It is a logical unit of work that must succeed or fail in its entirety. A transaction is an atomic operation which may.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
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?
Querying a Database Access Project 2. 2 What is a Query?  In general, a query is a form of questioning, in a line of inquiry. A query may also refer.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
26 Mar 04 1 Application Software Practical 5/6 MS Access.
Exploring Microsoft Access Chapter 1 Introduction to Microsoft Access: What Is A Database?
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
Reports and Queries Chapter 3 – Access text Reports – Page Queries – Page
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.
Concepts of Database Management Seventh Edition Chapter 3 The Relational Model 2: SQL.
1 MS Access. 2 Database – collection of related data Relational Database Management System (RDBMS) – software that uses related data stored in different.
G042 - Lecture 12 Using Local Databases Mr C Johnston ICT Teacher
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.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Filters, Queries and Reports. Filters Limit the data, creating a dataset, or partial view of the whole database Single use – filters do not save with.
Microsoft Access By Ritesh Sharma. Introduction Microsoft Access is a desktop database program that enables you to enter, store, analyze,and present data.For.
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.
Microsoft Office Access 2010 Lab 3
Database Essentials Access Lesson 1.
Maintaining a Database Using the Design and Update Features of Access
CSC321: Database Management Systems
Access Maintaining and Querying a Database
Maintaining a Database
Queries.
Access Chapter 2 Querying a Database.
Dr. Zhen Jiang Computer Science Department West Chester University
Plug-In T7: Problem Solving Using Access 2007
Querying a Database Using the Select Query Window
Database Essentials Access Lesson 1.
Access Maintaining and Querying a Database
Microsoft Office Access 2003
Database Queries.
CST221: Database Systems (III)
Tutorial 3 – Querying a Database
Querying Database ISYS 363.
Microsoft Office Access 2003
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Spreadsheets, Modelling & Databases
Lessons Vocabulary Access 2016.
Grauer and Barber Series Microsoft Access Chapter One
Microsoft Office Illustrated Fundamentals
Shelly Cashman: Microsoft Access 2016
Chapter 3 Query and Report.
New Perspectives on Microsoft
Presentation transcript:

CST221: Database Systems (II) Dr. Zhen Jiang Computer Science Department West Chester University West Chester, PA 19383

Querying Creation (Query wizzard) Save Use

Wildcard (*, ?), page AC87 Use criteria for a field not included in the result list, page AC88 Parameter Query, page AC89 Join table, page AC103 Comparison Operator, page AC94 Compound criterion (AND, OR), page AC 95 Sorting, page AC97 Multiple keys (high priority from left to right), page AC101 Top-value query, page AC 102 Calculated field, page AC 113 Calculating Statistics (built-in statistics, group), page AC 117

Exercise 2

Show the name and age and salary of all employees who are younger than 25.

Double click the items to include in the list

Add criteria to meet the certain requirement

Datasheet view Design view

Hidden column for criteria (not displayed in the list)

Wildcard (*, ?), such as “Ber*” in City field Use criteria for a field not included in the result list, disabled show property One table, decide it early and add all fields at the beginning Comparison Operator, such as >10000 in amount paid field Compound criterion (AND => 1 row, OR => another row) Sorting Multiple keys (high priority from left to right) Top-value query, “return” in top design view (very early stage) Calculated field, “zoom” in shortcut menu (e.g., type “Total Amount:[Amount Paid]+[Current Due]”) Calculating Statistics (built-in statistics, “group by”)

Show the Enum, name, salary of all employees whose names have 5 letters.

Show the name, Enum ,salary, and age of all employees with a salary > $40,000 AND younger than 25

Show the Enum of all employees sorted by salary in the ascending order

Hidden column for criteria (not displayed in the list)

List top 5 high paid employees.

List the LName of all employees in the department (Dnum) entered by the user.

List the LName of all employees with a new column labeled “hiring age”, which has a value by subtracting the years of working (wYears) from the current age (age).

List the max, min, and average of salary for all employees.

Joint table (AC 105-109) Emp Dept Enum LName age salary Dnum wYears Jones 45 $56,000.00 D25 12 E202 Anders 66 $46,000.00 D22 25 E303 Smith 34 $25,000.00 9 E404 Rivera 22 $30,000.00 1 E505 Brown $80,000.00 17 E606 Caldwell 52 $70,000.00 D28 20 E707 Stiles 44 $65,000.00 11 E808 Walker 48 $90,000.00 21 E909 Hartman E222 Carter 29 $35,000.00 3 Dept Dnum Dname City D22 Web WC D25 Databases NY D28 Software LA

For each employee, print out the department name.

Assignment 2

Statistics of an group Exercise 3

Show the average age (label as “average age”) and average salary (label as “average salary”) for all employees

Show the max, min and average age for all employees in Dept “Software”

Still incorrect!

Join Table (AC 105)

For all employees under 30, show a count of these employees and their average salary.

For all employees in department “D22” or “D28”, show a count of these employees, their average age, and maximum salary

What will be the result?

For each department list avg, max and min age, along with a count of employees in each department.

For each department find a count and average salary for all employees younger than 40.

For each department with an average salary of >40000 list the dnums, employee count for these departments.

For each department with less than 4 employees, show the average age and number of employees.  

For each department with more than 2 people over 40 list deptNum, and a count of these people.

Assignment 3

Maintenance Record addition, page AC 144 Search, page AC 145 Record update, page AC 147 Record deletion, page AC 148 Filter, page AC 149