CSC 370 – Database Systems Introduction Instructor: Alex Thomo.

Slides:



Advertisements
Similar presentations
CSC 370 – Database Systems Introduction
Advertisements

CSC 485E/CSC 571 Advanced Databases Introduction.
Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
CSC 485D/586D/SEng 480D Introduction. In essence a database is nothing more than a collection of information that exists over a long period of time. Databases.
CSC 485E/SENG 480D/CSC 571 Advanced Databases Introduction.
Database Management: Getting Data Together Chapter 14.
Ch1: File Systems and Databases Hachim Haddouti
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Introduction to Databases Transparencies
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction n Why Database Systems? n Data Models n Data Definition Language.
1 Recap Database: –collection of data central to some enterprise that is managed by a Database Management System –reflection of the current state of the.
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
Chapter 1 Introduction to Databases
Database Design and Introduction to SQL
Introduction to Databases and Database Languages
IST Databases and DBMSs Todd S. Bacastow January 2005.
INTRODUCTION TO TRANSACTION PROCESSING CHAPTER 21 (6/E) CHAPTER 17 (5/E)
Introduction to DBMS Purpose of Database Systems View of Data
Relational Database M S
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Introduction to Databases. Overview  What is a Database?  What is a Database Management System?  How is information organized in a database?  What.
Chapter 6: Integrity and Security Thomas Nikl 19 October, 2004 CS157B.
IT 244 Database Management System
Introduction to Databases
 Introduction Introduction  Purpose of Database SystemsPurpose of Database Systems  Levels of Abstraction Levels of Abstraction  Instances and Schemas.
Introduction. 
The Worlds of Database Systems Chapter 1. Database Management Systems (DBMS) DBMS: Powerful tool for creating and managing large amounts of data efficiently.
Module Title? DBMS Introduction to Database Management System.
Invitation to Computer Science 5th Edition
Course Introduction Introduction to Databases Instructor: Joe Bockhorst University of Wisconsin - Milwaukee.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Introduction to Database Systems
Intro-Part 1 Introduction to Database Management: Ch 1 & 2.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Dr. T. Y. Lin | SJSU | CS 157A | Fall 2011 Chapter 1 THE WORLDS OF DATABASE SYSTEMS 1.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
The Worlds of Database Systems From: Ch. 1 of A First Course in Database Systems, by J. D. Pullman and H. Widom.
Chapter 1 Introduction to Databases. 1-2 Chapter Outline   Common uses of database systems   Meaning of basic terms   Database Applications  
Advantage of File-oriented system: it provides useful historical information about how data are managed earlier. File-oriented systems create many problems.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Chapter 9 Database Systems Introduction to CS 1 st Semester, 2014 Sanghyun Park.
1 CS3431 – Database Systems I Introduction Instructor: Mohamed Eltabakh
CIS/SUSL1 Fundamentals of DBMS S.V. Priyan Head/Department of Computing & Information Systems.
ADVANTAGES OF DATA BASE MANAGEMENT SYSTEM. TO BE DICUSSED... Advantages of Database Management System  Controlling Data RedundancyControlling Data Redundancy.
Introduction.  Administration  Simple DBMS  CMPT 454 Topics John Edgar2.
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
Fall CSE330/CIS550: Introduction to Database Management Systems Prof. Susan Davidson Office: 278 Moore Office hours: TTh
King saud university Introduction to Database Systems (Chapter 1: Databases and Database Users)
1 Geog 357: Data models and DBMS. Geographic Decision Making.
Data The fact and figures that can be recorded in system and that have some special meaning assigned to it. Eg- Data of a customer like name, telephone.
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:
CS3431: C-Term CS3431 – Database Systems I Introduction Instructor: Mohamed Eltabakh
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
CPSC-310 Database Systems
CPSC 603 Database Systems Lecturer: Laurie Webster II, Ph.D., P.E.
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 9 Database Systems
THE WORLDS OF DATABASE SYSTEMS
Chapter 12 Information Systems.
Data Model.
Introduction to DBMS Purpose of Database Systems View of Data
Presentation transcript:

CSC 370 – Database Systems Introduction Instructor: Alex Thomo

Database (DB): a collection of information that exists over a long period of time. Database Management System (DBMS): a complex software for handling Large data efficiently and safely. What’s a database?

1.Allows users to easily create new databases and specify their schema. 2.Enables users to easily query and modify the data using a high level language. 3.Supports intelligent storage of large amounts of data. –Protects data from accidental or not proper use. Example: We can require from the DBMS to not allow the insertion of two different employees with the same SIN. –Allows efficient access to the data for queries and modifications. Example: Indexes over specified fields 4.Controls access to data from many users at once (concurrency), without allowing “bad” interactions that can corrupt the data accidentally. 5.Recovers from software failures and crashes. The database [management] system

First commercial database systems evolved from file systems. –File systems allow the storage of big amounts of data. But, no query language for the data in files. Needed to write programs for extracting even the most elementary information from a set of files. Example: Suppose we have stored in a file called Employees records having the fields (emp_code, name, dept_code) and in another file called Departments records having the fields: (dept_code, dept_name, dept_manager, dept_location) Suppose now that given an employee, say with name “Smith”, we want to find out what department he is working for. Early database systems and file syst.

In the absence of a query language we have to write a program which will: 1.open the file Employees 2.declare a variable of the same type as the records stored in the file 3.scan the file: while the end of the file is not yet encountered, assign the current record to above variable. 4.If the value of the name field is “Smith” then get the value of the dept_code field. Suppose it is “100” 5.Search in a similar way for a record with “100” for the dept_code in the Department file. 6.Print the dept_name when successfully finding the dept_code. Painful procedure. Compare it to the short and elegant SQL query SELECT dept_name FROM Employees, Department WHERE Employees.name="Smith" AND Employees.dept_code = Department.dept_code Continued

Examples Airline reservation systems Banking systems Corporate records First important applications of DBMS’s

Here the items of data include: –Reservations by a single customer on a single flight, including such information as assigned seat… –Flight information – the airport they fly from and to, their departure and arrival times… –Ticket information – prices, requirements, and availability. Typical queries ask for: –Flights leaving about a certain time from one given city to another, seats available, prices. Typical data modifications include: –Making a reservation in a flight for a customer, assigning a seat, etc. Many agents access parts of the data at any given time. –DBMS must allow concurrent accesses and prevent problems such as two agents assigning the same seat simultaneously. DBMS should also protect against loss of records if the system suddenly fails. Airline Reservation Systems

Data items include: –Customers, their names, addresses etc. –Accounts, and their balances –Loans, and their balances –Connections between customers and their accounts and loans. Typical queries are those for account and loan balances. Typical modifications are those representing a payment from or deposit to an account. In banking systems failures cannot be tolerated. –E.g, once the money has been ejected from an ATM machine, the bank must record the debit, even if the power immediately fails. –On the other hand, it is not permissible for the bank to record the debit and then not to deliver the money because the power fails. The proper way to handle this operation is far from obvious and is one of the significant achievements in DBMS architecture. Banking Systems

Encouraged the user to view the data much as it was stored. Chief models were the Hierarchical and Network. Main characteristic: easy jumping or navigating from one object to another through pointers. –E.g. From one employee to his department. However these models didn’t provide a high-level query language for the data. –So, one had still to write programs for querying the data. Also they didn’t allow on-line schema modifications. Early DBMS’s (1960’s)

Codd (1970) A database system should present the user with a view of data organized as tables (also called relations). Behind the scene there could be complex data structures and algorithms that allow rapid response to a variety of queries. –But the user would not be concerned with these things. Queries could be expressed in a very high-level language, which greatly increases the efficiency of database programmers. –This high-level query language for relational databases is called: Structured Query Language (SQL) Relational databases

Relations = Tables. Columns are “headed” by attribute names. Rows = Tuples A relation Accounts might be: Example of a Relational DB SQL Examples 1.What’s the balance of account “67890” ? 2.Which are the savings accounts with negative balances? accountNobalancetype savings checking ……… 1 SELECT balance FROM Accounts WHERE accountNo = 67890; 2 SELECT accountNo FROM Accounts WHERE type = ‘savings’ AND balance < 0;

Architecture of a DBMS

Database Studies Design of databases. –How to structure information? –How to connect data items? –What constraints should the data satisfy? Database programming. –How to query and modify the database? –How is database programming combined with conventional programming? Database system implementation. –How does one build a DBMS? query processing, transaction processing organizing storage for efficient access

CSC 370 Assignments –Four of 5% each (Total 20%) Project –worth 15% –due on the 12 th week of class –Demo/presentation Exams –One midterm worth 20%, will be in the 7th week of class. –One final exam worth 45%, will be scheduled by the University.