Database Design and Introduction to SQL

Slides:



Advertisements
Similar presentations
Lecture-7/ T. Nouf Almujally
Advertisements

Database: A collection of related data [Elmasri]. A database represents some aspect of real world called “miniworld” [Elmasri] or “enterprise” [Ramakrishnan].
Introduction to Databases
Prentice Hall, Database Systems Week 1 Introduction By Zekrullah Popal.
Chapter 1: The Database Environment
Database Theory Why use database? Data is a valuable corporate resource which needs adequate accuracy, consistency and security controls. The centralized.
Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
Introduction to Databases
Database Software File Management Systems Database Management Systems.
File Systems and Databases
Concepts of Database Management Sixth Edition
Ch1: File Systems and Databases Hachim Haddouti
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
Introduction to Databases Transparencies
Chapter 1 INTRODUCTION TO DATABASE.
Fundamentals, Design, and Implementation, 9/e Chapter 1 Introduction to Database Processing.
INTRODUCTION TO DATABASES
Evolution in Database Models
WHAT IS A DATABASE ? a collection of data organized to help easy retrieval & usage.
Chapter 1 Introduction to Databases
DBMS1 Database Management System (DBMS) Introductory Concepts Week-1.
Introduction to Databases
Database Management COP4540, SCS, FIU An Introduction to database system.
Introduction to Database Systems 1.  Assignments – 3 – 9%  Marked Lab – 5 – 10% + 2% (Bonus)  Marked Quiz – 3 – 6%  Mid term exams – 2 – (30%) 15%
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Introduction to Databases and Database Languages
IST Databases and DBMSs Todd S. Bacastow January 2005.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Introduction to Database
Introduction to Database Concepts
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
DBMS By Narinder Singh Computer Sc. Deptt. Topics What is DBMS What is DBMS File System Approach: its limitations File System Approach: its limitations.
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Sistem Basis Data (DATABASE) Siauw Yohanes Darmawan
Module Title? DBMS Introduction to Database Management System.
Chapter 1 Introduction to Databases Pearson Education ©
Database Architecture Introduction to Databases. The Nature of Data Un-structured Semi-structured Structured.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
8/27/2012ISC 329 Isabelle Bichindaritz1 File Systems Introduction to Databases.
CS 474 Database Design and Application Terminology Jan 11, 2000.
Databases and Database Management Systems
Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles.
1 Client/Server Databases and the Oracle Relational Database.
Enhanced Guide to Oracle8i
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Introduction to Databases
Chapter 1 Introduction to Databases © Pearson Education Limited 1995, 2005.
Module 1: Database System
Introduction to Database AIT632 Chapter 1 Sungchul Hong.
Data resource management
1 Introduction to Databases. 2 Examples of Database Applications u Purchases from the supermarket u Purchases using your credit card u Booking a holiday.
History of Implementation Data Models. Databases were: Early Business Computer Systems –Accounting functions - payroll, profit/loss statements Files of.
1 TOPIC 6 DATABASE 6.1 Introduction to Database 6.2 Basic Concept of Database 6.3 Database Object DATABASE.
Introduction to Databases
Introduction to Databases Transparencies © Pearson Education Limited 1995, 2005.
1 Geog 357: Data models and DBMS. Geographic Decision Making.
IIS 645 Database Management Systems DDr. Khorsheed Today’s Topics 1. Course Overview 22. Introduction to Database management 33. Components of Database.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Databases and DBMSs Todd S. Bacastow January
Database Management.
An Introduction to database system
Database Management System
Introduction to Database Management System
Database.
UNIT-I Introduction to Database Management Systems
Presentation transcript:

Database Design and Introduction to SQL DBS201 Database Design and Introduction to SQL

Introduction to Database Management

Terminology Application: programs, data, procedures used for some purpose in an organization (eg financial, payroll, equipment maintenance, project management, …) Database: an organized collection of related data for an application DBMS (DataBase Management System): set of programs that manage (create, modify, secure, backup, restore, …) one or more databases (eg Access, DB2, Oracle, SQL Server) Database Design: determining the structure (ie. schema) of the database required for the application

File Based Approach Used in all manual systems and in early computerized systems Duplicates data between applications (eg customer information stored in files for Sales, Customer Service, Billing, …) Increased data maintenance Can create data inconsistencies Very difficult to fulfill requirements that involve data from more than one system

File Based (Non-database) Approach

Database Approach Data for each application is stored in a database and managed by the DBMS Data can only be accessed through the DBMS and not directly through the OS

Database Approach Advantages Easier to combine data from more than 1 application Ability to share data between applications can result in reduced data redundancy (reduced duplication and improved consistency of data) Concurrency: Allows access to data by many different users at the same time Centralized control of data by DBMS and DBA

Advantages of Database (ctd) Improved security and recovery of data Data integrity can be maintained through constraints DBMS development tools reduce programming required Application Flexibility and Data independence : Structure of data can be changed without having to change programs

Disadvantages of Database Approach Complexity of DBMS software requires developers to have specialized skills DBMS overhead: software cost, data storage requirements, processing requirements, DBA responsibilities Greater reliance on reliability of 1 software product (as opposed to many different file-based applications) Applications take more time to design More complex to recover data

Sharing of Data between Applications using a DBMS

History of DBMS’s Mainframe DBMS’s have been used since the 1960s Since the mid-1980s, DBMS’s on PCs possess many of the features of their mainframe counterparts Evolution of DBMS models: Hierarchical, Network, Relational, Object-oriented, Object-relational

Hierarchical Database Model Data is seen as a tree structure and can only be retrieved by navigating through hierarchy A parent record can have many children but a child record can have only 1 parent record Navigation is achieved through use of pointers physically stored with each record

Hierarchical Database Model IBM’s IMS was one of first hierarchical DBMS’s Still used by many large legacy OLTP(online transaction processing) applications Good at handling large volumes of data that only need to be accessed using only predefined paths

Network Database Model Next database model; product examples: IDMS, I-D-S Data is seen as a network of records and relationships between these records Data can only be accessed by navigating through defined relationships Pointers physically stored with each record permit navigation Can represent applications that can not be represented using hierarchical model (eg Henry’s Books)

Relational Database Model Developed after network model Based on mathematical set theory that ensures that data can be retrieved in any way required by an application Data is stored in the form of 2 dimensional tables with no physical pointers Data is related through common columns in separate tables Product Examples: Oracle, DB2, SQL Server