Week 3 Lab1 Review on Database Dina A. Said

Slides:



Advertisements
Similar presentations
Working with Tables 1 of 5. Working with Tables 2 of 5.
Advertisements

Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Access Lesson 8 Using Advanced Queries Microsoft Office 2010 Advanced Cable / Morrison 1.
Exploring Microsoft Access
Access Lesson 2 Creating a Database
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
© Steven Alter, 2007, all rights reserved Database concepts Difference between a database and the Internet Reason for having a defined data structure Relational.
ACCESS PART 2. Objectives Database Tables Table Parts Key Field Query and Reports Import from Excel Link to Excel.
Access Tutorial 1 Creating a Database
1004INT Information Systems Week 10 Databases as Business Tools.
Mark Dixon Page 1 02 – Queries: Query by Example.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Chapter 2 Querying a Database
The Computer Super Store A Sample Presentation Depicting the Requirements of Your Group Project.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
Introduction to Databases. Overview  What is a Database?  What is a Database Management System?  How is information organized in a database?  What.
DAY 20: MICROSOFT ACCESS – CHAPTER 3 CONTD. Aliya Farheen March 19, 2015.
Microsoft Access 2010 Chapter 7 Using SQL. Change the font or font size for SQL queries Create SQL queries Include fields in SQL queries Include simple.
CS&E 1111 AcQueries Querying in Access Sorting data Aggregating Data Performing Calculations Objectives: Learn how to use the Access Query Design Tool.
Tutorial 8 Advanced Queries. Notes Switch to new database! Tutorial.08 folder Only Session 8.1 and 8.2.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
Database Queries. Queries Queries are questions used to retrieve information from a database. Contain criteria to specify the records and fields to be.
Access Class Outline Data Organization Tables Import and Export of Data Queries Select Calculate Values Aggregation (Count, Sum) Create Append Delete Crosstab.
ISM 4212 Lab Creating DB Tables 02 copyright Lars Paul Linden 2007.
Using Special Operators (LIKE and IN)
Analyzing Data Using Access. Creating a new database To create a new database 1.Start Access. In the Task Pane, click Blank Database. 2.The File New Database.
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?
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.
® Microsoft Office 2013 Access Creating a Database.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Intro to SQL Management Studio. Please Be Sure!! Make sure that your access is read only. If it isn’t, you have the potential to change data within your.
Unit 5, Lesson 1 Working with Databases. Objectives Identify the parts of the Access screen. Identify the parts of the Access screen. Understand the purpose.
Access  Getting Started  Creating Tables  Designing Tables Worksheet #8.
26 Mar 04 1 Application Software Practical 5/6 MS Access.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
1 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Advanced Database Concepts INFO/CSE.
DAY 16: ACCESS CHAPTER 1-2 Rahul Kavi October 8,
Access Database Things to Know…. Your database is managed from this DATABASE WINDOW:
1 MS Access. 2 Database – collection of related data Relational Database Management System (RDBMS) – software that uses related data stored in different.
Week 3 Lab1 Review on Database Dina A. Said
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 6 Action and Specialized Queries 1.
SQL SELECT Getting Data from the Database. Basic Format SELECT, FROM WHERE (=, >, LIKE, IN) ORDER BY ; SELECT LastName, FirstName, Phone, City FROM Customer.
The Rent-A-Dress Database
Classwork: Common Errors Primary keys: don’t forget them! Primary keys: choose the best one! – “Name” and “birthday” are not the best choices. – “Phone.
CPSC 203 Introduction to Computers Lab 21 By Jie Gao.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
Alighieri: Introduction to MS Access 1 What is a Database? RELATIONAL DATABASE A database is an organized collection of information. A database is designed.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 5 1 Microsoft Office Access 2003 Tutorial 5 – Enhancing a Table’s Design.
A am going to create a table in design view. I am going to create a table in an Access database that contains information about the books that I have on.
DAY 18: ACCESS CHAPTER 3 Tazin Afrin October 22,
QUERY CONSTRUCTION CS1100: Data, Databases, and Queries CS1100Microsoft Access1.
1. Create a relationship diagram for the Employees database.
Lesson 4: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Set query.
Paul A. Harris, Ph.D. Director, GCRC Informatics How to use query function in Microsoft Access.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Lab week 10 Aggregates and sub-queries And assignment details.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Relational Databases Today we will look at: Different ways of searching a database Creating queries Aggregate Queries More complex queries involving different.
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Querying in Access Objectives: Learn how to use the Access Query Design Tool manipulate data in Access: Sorting data Aggregating Data Performing Calculations.
Access Quiz.
Aggregations Various Aggregation Functions GROUP BY HAVING.
From and Report.
Presentation transcript:

Week 3 Lab1 Review on Database Dina A. Said

Next Week (T1 & T2 only)  Next Monday  Lab Quiz #2 on Databases  Current Wednesday  “Week 1 Lab 2” of Problem Solving  Thanks for TA Paul for Today slides

Review for Lab Quiz #2  Create a new database named Stuff.

Review for Lab Quiz #2  Create a table called Orders with the fields: OrderID, ProductID, SalespersonName, SalesDate, Quantity and SellingPricePerPiece.  What is the primary key?  Data type for ProductID?  Data type for SalespersonName?  Data type for SalesDate?

Review for Lab Quiz #2  Create a table called Products with the fields ProductID, PName, PurchaseDate, Supplier and PurchasePricePerPiece.  What relationships might be required?

Review for Lab Quiz #2  Set the default quantity in the Orders table to 0.

Review for Lab Quiz #2  Add the following records to the products table:  ProductID: 10089, PName: Bath Salts, PurchaseDate: 10/20/2008, Supplier: Bath and Beyond, PurchasePricePerPiece: $2  ProductID: 10768, PName: Shower Gel, PurchaseDate: 10/1/2008, Supplier: Lush, PurchasePricePerPiece: $4.50  ProductID: 10769, PName: Shampoo, PurchaseDate: 10/1/2007, Supplier: Lush, PurchasePricePerPiece: $8

Review for Lab Quiz #2  Add the following data to the orders table: 1/21/2009CPSC203- Week2- Lab18 orders orderIDproductID salesManNa me quantityorderDate sellingPriceP erPiece John Smith211/1/ Lora Bill112/1/ Sandra smith105/1/ John Smith52/1/20095

Review for Lab Quiz #2  Create a query named query_1 that displays all the information in products table.

Review for Lab Quiz #2  Create a query named query_2, using query_1, that displays all fields in both tables, but limit the query to the Supplier "Lush".

Review for Lab Quiz #2  Create an aggregate query (make sure the Totals button is selected) named query_3. Group the query using SalesPersonName and calculate the Average quantity he/she sells

Review for Lab Quiz #2  In query_4, create a new field called RevenueAmount. This should be calculated by Quantity*SellingPricePerPiece.

Review for Lab Quiz #2  In query_4, create a new field called Status. This should display "Profit" if SellingPricePerPiece>PurchasePricePerPiece, "Breakeven" if they were equal and "Loss" otherwise.

Review for Lab Quiz #2  Create a report of query_4.

Review for Lab Quiz #2  Create a crosstab query from query_1. Let the rows show the SalesPersonName, the columns show the product name, and calculate the sum of Quantity.