Exploring Microsoft Access 2003 Chapter 4 Proficiency: Relational Databases, External Data, Charts, Pivot, and the Switchboard.

Slides:



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

Exploring Microsoft Access 2003 Chapter 3 Information From the Database: Reports and Queries.
Defined by Edgar Codd in 1970 Defined by Edgar Codd in 1970 Considered ingenious but impractical Considered ingenious but impractical Conceptually simple.
Relational Database. Relational database: a set of relations Relation: made up of 2 parts: − Schema : specifies the name of relations, plus name and type.
OUTLINE OF THE LECTURE PART I GOAL: Understand the Data Definition Statements in Fig 4.1 Step1: Columns of the Tables and Data types. Step2: Single column.
The Relational Algebra
SQL Lecture 10 Inst: Haya Sammaneh. Example Instance of Students Relation  Cardinality = 3, degree = 5, all rows distinct.
Database technology Lecture 2: Relational databases and SQL
Overview Begin 6:00 Quiz15 mins6:15 Review Table Terms25 mins6:40 Short Break10 mins6:50 SQL: Creating Tables60 mins7:50 Break10 mins8:00 Lab – Creating.
Exploring Microsoft Access 2003 Chapter 7 Building Applications: The Switchboard, Macros, and Prototyping.
Review Applications of Database Systems Applications of Database Systems Theory Practice.
Exploring Microsoft Access 2003 Chapter 6 Many-to-Many Relationships: A More Complex System.
Exploring Microsoft Access 2003 Chapter 1 Introduction to Microsoft Access: What Is A Database?
- relation schema, relations - database schema, database state
Review Database Application Development Access Database Development ER-diagram Forms Reports Queries.
Committed to Shaping the Next Generation of IT Experts. Chapter 4- Proficiency: Robert Grauer and Maryann Barber Exploring Microsoft Access 2003.
Database: Review Sept. 2009Yangjun Chen ACS Database Introduction system architecture, Basic concepts, ER-model, Data modeling, B+-tree Hashing Relational.
Relational Data Model Sept. 2014Yangjun Chen ACS Outline: Relational Data Model Relational Data Model -relation schema, relations -database schema,
Logical DB Design 5. 1 CSE2132 Database Systems Week 5 Lecture Logical Database Design.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 8 SQL-99: Schema Definition, Constraints, and Queries and Views.
Review: Application of Database Systems
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.
Exploring Microsoft Access 97 Chapter 1 Introduction to Microsoft Access: What Is A Database? Office graphic copyright by Microsoft Corp.
Relational Algebra - Chapter (7th ed )
Onsdag The concepts in a relation data model SQL DDL DML.
Retrieve the names of all employees in department 5 who work more than 10 hours per week on the ‘ProductX’ project. p10ssn ← (Π essn (σ hours > 10 (works-on.
 Employee (fname, minit, lname, ssn, bdate, address, sex, salary, superssn, dno)  Department (dname, dnumber, mgrssn, mgrstartdate) 
Microsoft Access 2013 Design and Implement Powerful Relational Databases Chapter 6.
Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System.
CSCI DBMS Environment1 The Database System Environment Dr. Awad Khalil Computer Science Department AUC.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
Logical Design database design. Dr. Mohamed Osman Hegaz2 Conceptual Database Designing –Provides concepts that are close to the way many users perceive.
DatabaseDatabase cs453 Lab5 1 Ins.Ebtesam AL-Etowi.
Exploring Office Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4- Proficiency: Relational Databases, Pivot.
1 CS 430 Database Theory Winter 2005 Lecture 4: Relational Model.
Exploring Office Grauer and Barber 1 One-to-Many Relationships: Subforms and Multiple-Table Queries(Wk7)
Review Database Application Development Access Database Development Theory Practice.
Chapter 4 Relational Database, Pivot Charts, and Switchboard.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
Mapping ER Diagrams to Tables
Constraints and Views Chap. 3-5 continued (7 th ed. 5-7)
SQL- Updates, Assertions and Views. Data Definition, Constraints, and Schema Changes Used to CREATE, DROP, and ALTER the descriptions of the tables (relations)
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 The Relational Data Model and Relational Database Constraints تنبيه.
Exploring Microsoft Access 2003
The SQL Database Grammar
Microsoft Access 2016 Design and Implement Powerful Relational Databases Chapter 6.
Chapter 4 Basic SQL.
CS580 Advanced Database Topics
Exploring Microsoft Access 2003
Database Design The Relational Model Text Ch5
Chapter (9) ER and EER-to-Relational Mapping, and other Relational Languages Objectives How a relational database schema can be created from a conceptual.
Chapter (9) ER and EER-to-Relational Mapping, and other Relational Languages Objectives How a relational database schema can be created from a conceptual.
376a. Database Design Dept. of Computer Science Vassar College
Mapping ER Diagrams to Tables
Outline: Relational Data Model
Company Requirements.
Review Applications of Database Systems
CS4222 Principles of Database System
Exploring Microsoft Access 2003
Review: Application of Database Systems
Structured Query Language (3)
1. Explain the following concepts: (a) superkey (b) key
1.(5) Describe the working process with a database system.
ISC321 Database Systems I Chapter 4: SQL: Data definition, Constraints, and Basic Queries and Updates Fall 2015 Dr. Abdullah Almutairi.
Exploring Microsoft Access 2003
SQL Updating Database Contents Presented by: Dr. Samir Tartir
1. Explain the following concepts of the ER data model:
Chapter (7) ER-to-Relational Mapping, and other Relational Languages
Presentation transcript:

Exploring Microsoft Access 2003 Chapter 4 Proficiency: Relational Databases, External Data, Charts, Pivot, and the Switchboard

Objectives (1 of 2) Describe one-to-many relationships Create a one-to-many relationship Use the Get External Data command to get data from Microsoft Office Excel Create and modify a multiple-table select query.

Objectives (2 of 2) Use aggregate functions to create a totals query Use Microsoft graph to create a chart based on a table or query Use the Switchboard Manager to create and/or modify a switchboard

Overview Share data between Microsoft Office applications Display data from two tables in one query Total query aggregates results from groups of records to create summary information Create Chart and Pivot Create a user interface

Multiple-Table Queries One-to-many relationship Primary key (PK) Foreign key (FK) i) Consider two relation schemas R 1 and R 2 ; ii) The attributes in FK in R 1 have the same domain(s) as the primary key attributes PK in R 2 ; the attributes FK are said to reference or refer to the relation R 2.

Referential integrity A value of FK in a tuple (record) t 1 of the current state r(R 1 ) either occurs as a value of PK for some tuple t 2 in the current state r(R 2 ) or is null. In the former case, we have t 1 [FK] = t 2 [PK], and we say that the tuple t 1 references or refers to the tuple t 2. Example: Employee(SSN, …, Dno)Dept(Dno, … ) FK

Get External Data Get External Data command Export command Import Spreadsheet Wizard Import Text Wizard Importing versus linking

Importing & Exporting Hands-On Exercise 1 Open the Investment Database Import Spreadsheet Wizard Create the Relationship Print the Relationship Add the New Data Create & Complete the Multiple-Table Query Export the Query and Modified Tables View the Excel Workbook

Multiple Table Query Relationship between tables Each field & table to display

Total Queries A total query Summary functions Total row Group By Count function Sum function

Total Queries & Charts Hands-On Exercise 2 Copy Assets Under Management Query Create a Total Query Check Your Progress Start the Chart Wizard Complete the Chart Wizard Increase the Plot Area Change the Data

Total Query Run button Select Count from drop-down menu

SELECT Consultants.Lastname, Count(Clients.LastName), Sum(Assets) FROM Consultants, Clients WHERE Consultant.ConsultantID = Clients.ConsultantID GROUP BY Consultants.Lastname

SELECT Consultants.Lastname, Consultants.Status, Clients.Lastname, Clients.CountType, Clients.Assets FROM Consultants, Clients WHERE Consultant.ConsultantID = Clients.ConsultantID GROUP BY Consultants.Lastname

The results are grouped according to the last name of the consultants. The records with the same last name are in the same group

Referential Integrity Delete Record button Click + to display related records You cannot delete a Consultant without first deleting related Clients

fname, minit, lname, ssn, bdate, address, sex, salary, superssn, dno Dname, dnumber, mgrssn, mgrstartdate Dnumber, dlocation Pname, pnumber, plocation, dnum Essn, pno, hours Essn, dependentname, sex, bdate, relationship EMPLOYEE DEPARTMENT DEPT _LOCATIONS WORKS_ON PROJECT DEPENDENT

Updating and constraints delete Delete the WORK_ON tuple with Essn = ‘ ’ and pno = 10. When deleting, the referential constraint will be checked. - The following deletion is not acceptable: Delete the EMPLOYEE tuple with ssn = ‘ ’ - reject, cascade, modify (cascade update)

Cascade delete – a strategy to enforce referential integrity  ssn  Employee Essn Pno    delete Works-on delete

Cascade delete – a strategy to enforce referential integrity Employee delete ssn supervisor    null  Employee delete ssn supervisor    null  delete not reasonable

Modify – a strategy to enforce referential integrity  ssn  Employee Essn Pno    delete Essn Pno null   This violates the entity constraint. Works-on

Modify – a strategy to enforce referential integrity  ssn  Employee delete This does not violate the entity constraint. Department  Dno   chairman Department null Dno   chairman

Chart Wizard View button Modified Y and X axis now match the query data Chart from Wizard

The User Interface Switchboard Switchboard Manager Switchboard Items table

Other Access Utilities Convert Database command Compact and Repair Database command

Compact the Database View button Select the database Click compact

The Switchboard Manager Hands-On Exercise 3 Start the Switchboard Manager Complete the Switchboard Test the Switchboard Insert the Clip Art Complete the Design The Completed Switchboard Compact the Database

Switchboard Manager Each button corresponds to a command

Chapter 4 Summary (1 of 2) One-to-many relationships A query can display data from multiple tables Get External Data command A total query performs calculations on a group of records using summary functions

Chapter 4 Summary (2 of 2) Switchboard Manager creates the user interface (Switchboard) Convert Database command changes an Access 2000 file to a previous version Compact and Repair Database command

Practice with Access 1. The Client Master List 2. The HMO Database 3. Creating a Switchboard 4. The Look Ahead Databas 5. Linking Versus Importing 6. Pivot Tables 7. Pivot Charts

Case Studies Your First Consultant’s Job The Wellness Center The Database Wizard Compacting Versus Compressing