Introduction lecture1.

Slides:



Advertisements
Similar presentations
Relational Database. Relational database: a set of relations Relation: made up of 2 parts: − Schema : specifies the name of relations, plus name and type.
Advertisements

91.309/310 Database I & II Prof. Cindy Chen. What is a database? A database is a very large, integrated collection of data. A database management system.
File Systems and Databases Hachim Haddouti
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
DATABASE MANAGEMENT SYSTEM
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database Systems Relational Model Concepts Toqir Ahmad Rana Database Management Systems 1 Lecture 17.
CONSTRAINTS AND UPDATES CHAPTER 3 (6/E) CHAPTER 5 (5/E) 1.
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
Database Technical Session By: Prof. Adarsh Patel.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
 DATABASE DATABASE  DATABASE ENVIRONMENT DATABASE ENVIRONMENT  WHY STUDY DATABASE WHY STUDY DATABASE  DBMS & ITS FUNCTIONS DBMS & ITS FUNCTIONS 
Introduction to Database Systems
1 Welcome: To the second learning sequence “ Data Base (DB) and Data Base Management System (DBMS) “ Recap : In the previous learning sequence, we discussed.
Relational Database Management Systems. A set of programs to manage one or more databases Provides means for: Accessing the data Inserting, updating and.
Instructor: Churee Techawut Basic Concepts of Relational Database Chapter 5 CS (204)321 Database System I.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
1 The Relational Model. 2 Why Study the Relational Model? v Most widely used model. – Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. v “Legacy.
Database Design Chapter-1- Basic Concepts Reference:
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
Slide Chapter 5 The Relational Data Model and Relational Database Constraints.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
CSE314 Database Systems Lecture 3 The Relational Data Model and Relational Database Constraints Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson.
INTRODUCTION lecture1 1. Data base concept Data is a meaningless static value. What does 3421 means? Information is the data you process in a manner that.
King saud university Introduction to Database Systems (Chapter 1: Databases and Database Users)
Chapter-1- Basic Concepts Reference: Prof. Mona Mursi Lecture notes
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
Lecture on Database Management System
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Chapter 3 The Relational Data Model and Relational Database Constraints Copyright © 2004 Pearson Education, Inc.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 The Relational Data Model and Relational Database Constraints تنبيه.
Fundamental of Database Systems
Introduction to Databases
Databases and DBMSs Todd S. Bacastow January
Introduction To DBMS.
“Introduction To Database and SQL”
Database Management.
COP Introduction to Database Structures
Chapter 1: Introduction
Chapter 1: Introduction
“ Database (DB) and Database Management System (DBMS) “
Chapter 1: Introduction
Chapter 1: Introduction
Introduction to Databases
Chapter 4 Relational Databases
Lecture # 13 (After 1st Exam)
Rules in active databases and integrity constraints
Translation of ER-diagram into Relational Schema
Tools for Memory: Database Management Systems
“Introduction To Database and SQL”
Database.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
The Relational Model Transparencies
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Database (DB) and Database Management System (DBMS)
Introduction to Databases
Chapter 1: Introduction
Database Design: Relational Model
UNIT-I Introduction to Database Management Systems
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 1: Introduction
Terms: Data: Database: Database Management System: INTRODUCTION
Chapter 1: Introduction
Relational Database Model
Introduction to Databases
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

Introduction lecture1

Data base concept Data is a meaningless static value. What does 3421 means? Information is the data you process in a manner that makes it meaningful. Information can be provided only if proper data exists. A database (DB) is a collection of related persistent data. Can be generated & maintained manually or automatically Data is what you store in database. Information is what you retrieve from a database. A database application is a collection of data and the programs that allow the manipulation of these data to meet the information needs of an enterprise

Database Properties Represents the real world Logically coherent collection of data. Designed, built, populated with data for a specific purpose. It has an intended group of users and their applications. Can be of any size and any degree of complexity. Can be generated and maintained manually or using a computer. A computerized DB can be created by: A Group of application programs Or by Database Management System (DBMS)

What is Database Management System (DBMS) ? DBMS is a collection of programs that enables users to create, maintain and use a database. Facilitates the process of: Defining: specifying data types, structures, & constraints for data. Manipulating: querying the database to retrieve or update data and generating reports from the data. Sharing: accessing the database concurrently. Protects the database and maintains it over a long period of time. Examples: Oracle, MS Access, DB2, Informix, MySQL, SyBase.

Examples of Databases Banking: all transactions. Hotels: reservation. Airlines: reservation, schedules. Libraries: catalog. Universities: registration, grades. Sales: customers, products, purchases. Manufacturing: production, inventory, orders. Human resources: employee records, salaries.

Database System (DBS) Environment User DBS Application Programs DBMS Query Process Data Access Meta-Data Database Database System = Database + DBMS

Database Models Hirarichal: Network: This model has a parent–child structure that is similar to an inverted tree, which is what forms the hierarchy, A parent node can have many child nodes, but a child node can have only one parent node Network: Data is organized in record types, the logical equivalent of tables in a relational database. Like the hierarchical model, the network model uses an inverted tree structure, but record types are organized into a set structure that relates pairs of record types into owners and members. Any one record type can participate in any set with other record types in the database

Database Models Relational : the structure of the relational database is based on the relation, or table, along with the ability to define complex relationships between these relations. Each relation can be accessed directly At the core of the relational model is the relation. A relation is a set of columns and rows collected in a table-like structure that represents a single entity made up of related data.

Normalization Normalization defines sets of rules, referred to as normal forms, which provide specific guidelines on how data should be organized in order to avoid anomalies that lead to inconsistencies in and loss of data as the data stored in the database is maintained. 1NF, 2NF, 3NF

Operations of the Relational Model Updates: changes the database’s state. Insert Delete Update/modify Retrievals: does not change the current state of the database.

Operations of the Relational Model Integrity constraints should not be violated by the update operations. Several update operations may have to be grouped together. Updates may propagate to cause other updates automatically. This may be necessary to maintain integrity constraints.

The Insert Operation This operation can violate all constraints of the relation. How? Domain constraint: attribute value does not apear in the corresponding domain. Key constraint: if the key value already exist in another tuple. Entity integrity: if the PK of the new tuple is NULL Referential integrity: if any value of the FK refers to a tuple that does not exist in the other relation.

The Delete Operation This operation can violate only the referential integrity constraint. How? E.g: you can not delete a course that many students study in already.

The Update Operation The new value must be of the correct data type and domain.

Update Operations on Relations In case of integrity violation, several actions can be taken: Cancel the operation that causes the violation (REJECT option) Perform the operation but inform the user of the violation Trigger additional updates so the violation is corrected (CASCADE option, SET NULL option) Execute a user-specified error-correction routine