1. Create a relationship diagram for the Employees database.

Slides:



Advertisements
Similar presentations
Exploring Microsoft Access 2003 Chapter 5 One-to-Many Relationships : Subforms and Multiple Table Queries.
Advertisements

Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Relationships Relational Database. Identifying Entities… In the previous tutorial you learnt about identifying entities in a flat file database. Also.
Keys, Referential Integrity and PHP One to Many on the Web.
Database Lecture Notes Mapping ER Diagrams to Tables 2 Dr. Meg Murray
MS-Access XP Lesson 2. Input Mask Property 1.Field : Phone No Data Type : Number Input Mask : Character 0 represent a single digit and phone.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Homework for November 2011 Nikolay Kostov Telerik Corporation
Relationship and Query Assignment. Creating Relationship Assignment: Create a blank database (use any names you like) And then, import the three Excel.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
SUNY Morrisville-Norwich Campus-Week 10 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
Introduction to Access. What is Access? Database tool Creates a database Good data query (lookup and analysis) ability Good entry forms Good reports Multi-user.
RELATIONSHIP  THE WAY TABLES ARE RELATED  A TABLE MUST PARTICIPATE IN AT LEAST ONE RELATIONSHIP  IN A BINARY RELATIONSHIP TWO ENTITIES PARTICIPATE 
Querying a Database Microsoft Office Access 2003.
Microsoft Access II Information Technology Services User Services User Training & Support.
Computer Science & Engineering 2111 Introduction to Database Management Systems Relationships and Database Creation 1 CSE 2111 Introduction to Database.
Database Relationships Objective 5.01 Understand database tables used in business.
Define Table Relationships—1 of 3 One of the most powerful features of a relational database management system, such as Access, is its ability to define.
Microsoft Access Lesson 3
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
CS&E 1111 AcInnerJoins Inner Joins Objectives: Creating Queries with data from Multiple Tables Joining two tables using an Inner Join Referential Data.
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
CHAPTER 2. FUNDAMENTAL OF ENTITY RELATIONSHIP (ER)
MICROSOFT ACCESS 2007 BTA – Spring What is Access?  Microsoft Access is a database management system…this means that it contains database information.
Exploring Office Grauer and Barber 1 Introduction to Access: What is a Database?(Wk1)
Exploring Microsoft Access Chapter 4 Relational Databases, External Data, Charts, and the Switchboard.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
Microsoft Access CS 110 Fall Learning to use Access Terms describing database Terms describing database Database views Database views Operations.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
MS-Access. Creating tables Setting up fields Validation ranges Look up values –List of values or query as source What fields do we require to keep track.
Press Esc to Exit ©2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in.
Database Design. Referential Integrity : data in a table that links to data in another table must always work in such a way that following the link will.
 A -  B -  C -  D - Yes No Not sure.  A -  B -  C -  D - Yes No Not sure.
Microsoft Access Intro Class 6 Relationships.
1 Committed to Shaping the Next Generation of IT Experts. Chapter 1- Introduction to Access: What is a Database? Robert Grauer and Maryann Barber Exploring.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
1 ICOM 5016 – Introduction to Database System Project # 1 Dr. Manuel Rodriguez-Martinez Department of Electrical and Computer Engineering University of.
26 Mar 04 1 Application Software Practical 5/6 MS Access.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Forms and Subforms 5.02 Understand database queries, forms, and reports used in business.
1 ∞∞ ∞. Has referential data integrity been violated between any of the tables? If so, name the orphans. Yes, referential data has been violated.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 2 – Relationships and Lookup fields.
Microsoft Access A Hands-On Introduction Chapter 3.
Introduction to Databases. What is a database?  A database program is nothing more than an electronic version of a 3x5 card file  A database is defined.
1 MS Access. 2 Database – collection of related data Relational Database Management System (RDBMS) – software that uses related data stored in different.
Referential Integrity
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
The Rent-A-Dress Database
1 PK: None Orders PK: CustID Customers PK: PaymentID Payments PK: StockNum Inventory PK: Type PaymentType FK: CustID on Orders FK: CustID on Payments.
* 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.
Modify Tables and FieldsModify Tables and Fields Lesson 4 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft.
IT – som værktøj Bent Thomsen Institut for Datalogi Aalborg Universitet.
Chapter 4 Relational Database, Pivot Charts, and Switchboard.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
DAY 17: ACCESS CHAPTER 1-2 Rahul Kavi October 15,
Access 2, FORM BASICS In Access. 9/22/042 Access Lab Plan To Develop a Database & Applications To Learn Class Concepts To Learn Access Basics.
Hoi Le. Why database? Spreadsheet is not good to: Store very large information Efficiently update data Use in multi-user mode Hoi Le2.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Tables & Relationships
Databases – Exam questions
COP 4540 Database Management
5.02 Understand database queries, forms, and reports used in business.
CS122 Using Relational Databases and SQL
CS122 Using Relational Databases and SQL
CS1222 Using Relational Databases and SQL
CS122 Using Relational Databases and SQL
Understand the purpose of normalisation in terms of reducing duplication of data  Understand the purpose of Primary and Secondary Keys in a Database  Learning.
CS122 Using Relational Databases and SQL
Presentation transcript:

1. Create a relationship diagram for the Employees database

2. Has referential data integrity been violated between any of the tables? If so, name the tables and the orphans. Yes it is violated for the category/recording relationship– Recording IDs 36 and 37 are orphans because they have no parent on the Category table.

3. What are the possible primary keys for the Recordings table? Is one preferable to the other, why? Possible primary keys are RecordingID and Title. However, RecordingID is a better primary key because two recordings could have the same title.

4. Write a query to list Recording Titles for all Rock albums that have a discount or cost less than $10.

5. Write a query to List Recording Titles of all Alternative CDs that include bonus tracks and are priced between $10 and $20 inclusive.

6. Write a query to list Recording Titles that either have a discount or are Classical.

7. Write a query to display the value of all orders. List the Order #, Recording title, value of the order (price * quantity), and whether or not the artist offers a discount.

8. Using the previous query as input, write a query to display the orders that qualify for a discount. If the order qualifies for a discount 10% will be deducted from the selling value. Display the Order #, title of the recording, value of the order before the order, and the Discounted Price. Make sure to only display the orders that are eligible for a discount.

9. Write a query to summarize by Artist the number of different recordings we sell and their average selling price.