Relationships among Access Database Objects

Slides:



Advertisements
Similar presentations
Normalisation.
Advertisements

Logical Data Modeling Review Lecture for University of Agder, Grimstad DAT202 Databaser (5.5.11) Judith Molka-Danielsen
Client/Server Databases and the Oracle 10g Relational Database
Lecture Microsoft Access and Relational Database Basics.
CSCI 260 Database Applications Chapter 1 – Getting Started.
Database Introduction
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
- 1 - Tables Query (View) FormReport Database Application Basic Database Objects Relationships among Access Database Objects A saved SELECT query is officially.
3-1 Chapter 3 Data and Knowledge Management
Terms - data,information, file record, table, row, column, transaction, concurrency Concepts - data integrity, data redundancy, Type of databases – single-user,
Chapter 12 Information Systems. 2 Chapter Goals Define the role of general information systems Explain how spreadsheets are organized Create spreadsheets.
Chapter 12 Information Systems. Spreadsheets Databases 12-2.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
Normalization Rules for Database Tables Northern Arizona University College of Business Administration.
Chapter 6: Foundations of Business Intelligence - Databases and Information Management Dr. Andrew P. Ciganek, Ph.D.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
SALINI SUDESH. Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of.
Databases and Statistical Databases Session 4 Mark Viney Australian Bureau of Statistics 5 June 2007.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
IST 210: ORGANIZATION OF DATA Chapter 1. Getting Started IST210 1.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
C6 Databases. 2 Traditional file environment Data Redundancy and Inconsistency: –Data redundancy: The presence of duplicate data in multiple data files.
Customer Order Order Number Date Cust ID Last Name First Name State Amount Tax Rate Product 1 ID Product 1 Description Product 1 Quantity Product 2 ID.
Getting Started Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part c): Logical Database Design and the Relational Model Modern Database Management.
Assignment 1 Uploaded to course website Due next Tuesday, Sep 1, at 11:59pm.
Normalization ACSC 425 Database Management Systems.
Databases Introduction - concepts. Concepts of Relational Databases.
Chapter 4 © 2013 Pearson Education, Inc. Publishing as Prentice Hall Chapter 4: Logical Database Design and the Relational Model Modern Database Management.
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
Chapter 1. Getting Started IST 210: Organization of Data IST2101.
Logical Design & the Relational Model
Database Development Lifecycle
“Introduction To Database and SQL”
Intro to MIS – MGS351 Relational Database Design
A Guide to SQL, Eighth Edition
Relational Model.
Chapter 1: Introduction
Chapter 1: Introduction
Information Systems Today: Managing in the Digital World
Chapter 5: Logical Database Design and the Relational Model
Chapter 4 Relational Databases
Payroll Management System
Unit 4: Normalization of Relations
RELATIONAL DATABASE MODEL
CIS 336 strCompetitive Success/tutorialrank.com
CIS 336 PAPERS Education for Service-- cis336papers.com.
Databases and Information Management
“Introduction To Database and SQL”
1 Demand of your DB is changing Presented By: Ashwani Kumar
5.02 Understand database queries, forms, and reports used in business.
Normalization A337.
Please thank our sponsors!
Database Management Concepts
Database Design Agenda
Databases and Information Management
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Data Management Innovations 2017 High level overview of DB
Computer Science Projects Database Theory / Prototypes
Spreadsheets, Modelling & Databases
Introduction to Database Design
DATABASE TECHNOLOGIES
Introduction to MySQL NELINET October 28th, 2005.
DATABASE Purpose of database
BTEC ICT – Unit 18 With Mr Griffiths.
Information system analysis and design
Database Design Chapter 7.
Presentation transcript:

Relationships among Access Database Objects Tables Database Application Form Report Query (View) Basic Database Objects SQL: Structured Query Language RDBMS: Relational Data Base Management System DBA: Data Base Administrator DB designer/Data modeler A saved SELECT query is officially called a View in SQL. QUERY in Access can be SELECT, INSERT, UPDATE, or DELETE. You can create a query against a table or a query. You can create a form or report against a table or a query.

Database: Tables, Columns, Rows, Primary Keys, Foreign Keys and Relationships Potential relational database for Coca-Cola Bottling Co.

Multiple (Dual) Perspectives ACME Enterprise We do these things We use this data CRUD Operations Create Update Delete Read SQL Insert Update Delete Select DATA ACTIVITY EMPLOYEE HIRE PAY PROMOTE FIRE ...... .... User Interface App. Data Process

Data Model (Entity Relationship Diagram) Member placed by; is enrolled under; Member Agreement Order places applies to sells; generates; established by; is sold on generated by established is featured in; sponsors; Product Promotion Club features is sponsored by

Data Modeling Case Study The following is description by a pharmacy owner: "Jack Smith catches a cold and what he suspects is a flu virus. He makes an appointment with his family doctor who confirm his diagnosis. The doctor prescribes an antibiotic and nasal decongestant tablets. Jack leaves the doctor's office and drives to his local drug store. The pharmacist packages the medication and types the labels for pill bottles. The label includes information about customer, the doctor who prescribe the drug, the drug (e.g., Penicillin), when to take it, and how often, the content of the pill (250 mg), the number of refills, expiration date, and the date of purchase." Please develop a data model for the entities and relationships within the context of pharmacy. Also develop a definition for "prescription". List all your underlying assumptions used in your data models.

Northwind Database

A Business Form

An Informal Example of Normalization A CUSTOMER ORDER contains the following information: OrderNo OrderDate CustNo CustAddress CustType Tax Total one or more than one Order-Item which has ProductNo Description Quantity UnitPrice Subtotal.

Solution Unnormalized table 1st NF 2nd NF 3rd NF (OrderNo, OrderDate, CustNo, CustAddress, CustType, Tax, Total, 1{ProductNo, Description, Quantity, UnitPrice,Subtotal}n) Remove repeating group (OrderNo, ProductNo, Description, Quantity, UnitPrice, Subtotal) 1st NF Remove partial FD 2nd NF (OrderNo, OrderDate, CustNo, CustAddress, CustType, Tax, Total) Remove transitive FD (OrderNo, ProductNo, Quantity, UnitPrice, Subtotal) (ProductNo, Description, UnitPrice) (OrderNo, OrderDate, CustNo, Tax, Total) 3rd NF (CustNo, CustAddress, CustType)

SQL Select and Query Design in Access SELECT COURSE.C_ID, COURSE.TITLE, COURSE.FEE FROM COURSE WHERE (((COURSE.FEE)>250 And (COURSE.FEE)<=350)) ORDER BY COURSE.FEE DESC;

JOIN and Aggregation Function Show students ID, name, and GPA SELECT STUDENT.S_NO, STUDENT.NAME, Round(Avg(REGISTRATION.GRADE)*100)/100 AS AvgOfGRADE FROM STUDENT INNER JOIN REGISTRATION ON STUDENT.S_NO = REGISTRATION.S_NO GROUP BY STUDENT.S_NO, STUDENT.NAME; Or Format(Avg(REGISTRATION.GRADE), "###.00") AS AvgOfGRADE

Database(Access) vs. Spreadsheet (Excel) Features Database Excel Multi-user concurrent access/update to the data Volume of the data Complex relationships of various data Calculation /formula among various data items Business graph capability Applications development tools

Auction Web Site's Data Model http://www.oracle.com/tools/jdeveloper/documents/jsptwp/index.html?content.html Auction Web Site's Data Model