Database Introduction

Slides:



Advertisements
Similar presentations
Normalisation.
Advertisements

Chapter 10: Designing Databases
Logical Data Modeling Review Lecture for University of Agder, Grimstad DAT202 Databaser (5.5.11) Judith Molka-Danielsen
Chapter 3 Database Management
Client/Server Databases and the Oracle 10g Relational Database
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.
CSCI 260 Database Applications Chapter 1 – Getting Started.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
CSE 190: Internet E-Commerce Lecture 10: Data Tier.
- 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
Chapter 12 Information Systems Nell Dale John Lewis.
Information Technology in Organizations
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Attribute databases. GIS Definition Diagram Output Query Results.
CSC 2720 Building Web Applications Database and SQL.
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 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Chapter 1 Database and Database Users Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Chapter 12 Information Systems. Spreadsheets Databases 12-2.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
Chapter 12 Information Systems. 2 Chapter Goals Define the role of general information systems Explain how spreadsheets are organized Create spreadsheets.
Chapter 5 Database Processing.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2012 (September 5, 2012)
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
CHAPTER 7 Database: SQL, MySQL. Topics  Introduction  Relational Database Model  Relational Database Overview: Books.mdb Database  SQL (Structured.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
Introduction to Accounting Information Systems
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Chapter 6: Foundations of Business Intelligence - Databases and Information Management Dr. Andrew P. Ciganek, Ph.D.
Database Management Systems Accounting Information Systems, 5 th edition James A. Hall COPYRIGHT © 2007 Thomson South-Western, a part of The Thomson Corporation.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
IE 423 – Design of Decision Support Systems Introduction to Data Base Management Systems and MS Access.
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,
Database Management Systems Introduction. In the Beginning… Customer Program 1.
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.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
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.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Getting Started Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
Zhangxi Lin Texas Tech University ISQS 6347, Data & Text Mining 1 ISQS 6339 Data Management and Business Intelligence Database Review.
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,
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.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
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.
SAN DIEGO SUPERCOMPUTER CENTER Introduction to Database Design July 2006 Ken Nunes sdsc.edu.
Relational Model.
Databases and Information Management
Relationships among Access Database Objects
“Introduction To Database and SQL”
Databases and Information Management
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Introduction to Database Design
Presentation transcript:

Database Introduction Class Enrollment program Database Payroll System DBMS DBMS Database E-commerce Website Query or Reporting Tools RDBMS: Relational Data Base Management System SQL: Structured Query Language DBA: Data Base Administrator DB Designer/Data Modeler

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

Database Tables

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;

Relationships among Access Database Objects Basic Database Objects Tables Database Application Form Report Query (View) QUERY in Access can be SELECT, INSERT, UPDATE, or DELETE. A saved SELECT query is officially called a View in SQL standard. When you save a query, you save the definition of the query, not the query result. 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.

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)

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