Foundations of Databases

Size: px
Start display at page:

Download "Foundations of Databases"

Transcription

1 Foundations of Databases (Datenbanken I) Prof. Dr. Torsten Grust U Tübingen, Database Systems torsten.grust@uni-tuebingen.de Summer Term 2011 Welcome to the completely rectangular world of Relational Database Management Systems (RDBMSs). What this course is about: Convince you that there is more to database technology than just open-file(), read()/write(), close-file(). Make you see how versatile the strictly tabular data model supported by relational databases can be. Make you best friends with SQL, the principal language spoken by relational database systems. We will encounter a healthy mix of good, clean theory and highly relevant CS practice knowledge of RDBMSs and SQL makes you sexy (in a sense). 2

2 Administrativa (1) 3 Lectures Time slot Monday, Tuesday, Room Sand 6/7, gr. Hörsaal Sand 6/7, gr. Hörsaal Practice Time slot Thursday, Room Sand 6/7, gr. Hörsaal Will this be a good fit for most of you? Please speak up. Administrativa (2) 4 End-term Exam 90 mins. examination on Monday, July 18th, You may bring a A4 double-sided hand-written cheat sheet. Passing earns you 6 ECTS. Assignments and Grading We will distribute, collect, and grade weekly assignments. You may and you should work in teams of two. Scoring 2 /3 of the overall points in the assignments earns you an additional 2 ECTS.

3 Administrativa (3) 5 Course web home teaching/ss11/db1 Download slides (PDF please bring a print-out and take notes) Download assignments, sample tabular data, SQL queries, other code snippets,... Please check now and then (... assignment unsolvable as given...,... no lecture on..., etc.) Contact information Just drop by in our offices, send first if you require specific help/longer attention. These Slides 6 Examples Definitions Code snippets Quizzes A specific slide set suitable for printing (lighter colors,... ) will be available on the course web home.

4 7 Read a Book, Write some SQL Text book (any introductory book is probably fine ask me) Alfons Kemper, Andre Eickler Datenbanksysteme Eine Einfu hrung Oldenbourg Verlag 6th or 7th ed. Install IBM DB2 V9.7 Express-C : Full-featured, fast, freely available. We will bring it with us for almost any lecture.

5 ActiveRecord (Ruby on Rails) 9 If time permits, we will close the course with an introduction to and overview of ActiveRecord. ActiveRecord enables a truly seamless embedding of database access and query functionality into programming and scripting languages (here: Ruby). You write Ruby fragments, the ActiveRecord framework generates equivalent SQL commands for you. ActiveRecord is the glue between relational databases and front-end web applications, usually developed using Ruby on Rails. Introduction 10 After completing this chapter, you should be able to: explain basic notions: database state, schema, query, update, data model, DDL, DML, explain the role of the DBMS, explain data independence, declarativity, and the three schema architecture, name different classes of users of a database application system, name some DBMS tools.

6 Introduction 11 Overview 1. Basic Database Notions 2. Database Management Systems (DBMS) 3. Programmer s View, Data Independence 4. Database Users and Database Tools Task of a Database (1) 12 What is a database? Difficult question. There is no precise and generally accepted definition. Naïve approach: The main task of the database system (DBS) is to answer certain questions about a subset of the real world, e.g. Questioning a DBS Which homeworks has Ann Smith completed? Database System 1 2

7 Task of a Database (2) 13 The DBS only acts as a storage for information. This information must first be entered and then kept current. Keeping a DBS current Ann Smith has done Homework 3 and received 10 points for it Database System ok. A DBS is computerized version of a card index box/filing cabinet (but more powerful and efficient). Task of a Database (3) 14 Normal database systems do not perform particularly complicated computations on the stored data in order to answer questions. However, a DBS can retrieve the requested data quickly from a huge set of data (giga bytes, tera bytes, main memory size). A DBS can also aggregate/combine several pieces of stored data to answer more complex questions ( Compute the average points for Homework 3. )

8 Task of a Database (4) 15 Above, the question Which homeworks has Ann Smith completed? was shown in natural (English) language. Making machines understand natural language is a tough task (and bears a large potential for misunderstandings). Therefore, questions (or queries) are normally written in a formal language, these days typically SQL. SQL SQL Structured Query Language, development started in 1986, current version SQL:2008. Pronounced S Q L, or Sequel. State, Query, Update 16 The set of stored data is called the database state: Current State Query SELECT HOMEWORK FROM SOLVED WHERE STUDENT = Ann Smith Answer Entering, modifying, or deleting information changes the database state: Current State Update INSERT INTO SOLVED VALUES ( Ann Smith, 3, 10) New State

9 Structured Information (1) 17 Each database can store only information of a predeclared structure (a limited domain of discourse): Structure mismatch Today s special in the cafeteria is pizza. Homework DBS Error. Because the data are structured, not simply text, complex query formulations are possible, e.g. How many homeworks has each student done? Structured Information (2) 18 Actually, a database system stores only plain data (character strings, numbers), and not information. Data becomes information by interpretation. Therefore, real world concepts like students, homework, cafeterias, etc., need to be defined/declared before the database can be used. A pure text database? Assume a DBS is storing text (character strings) only, with no further structure provided. What types of questions would you be able to ask?

10 State vs. Schema (1) 19 Database Schema: Formal definition of the structure of the database contents. Determines the possible database states. Defined only once (when the DB is created). In a programming language, this corresponds to variable declaration (assigning a type to a variable). Variable declaration Example: variable declaration in C: short int i Possible states of variable i? i State vs. Schema (2) 20 Database State (Instance of the Schema): Contains the actual data, structured according to the schema. Changes often (whenever database information is updated). Corresponds to current contents/value of a programming language variable. Variable state change In state s, variable i has value 41. Now perform state change (s to s ) via assignment i = i + 1.

11 State vs. Schema (3) 21 In the relational model, the data is structured in form of tables (relations). Each table has a name, a sequence of named columns (attributes), and a set of rows (tuples). A table SOLVED } DB Schema STUDENT HOMEWORK POINTS Ann Smith 1 10 } Ann Smith 2 8 DB State Michael Jones 1 9 Michael Jones 2 9 Data Model (1) 22 Defines a formal language (syntax & semantics) for declaring database schema querying the current database state changing the database state. 1 Examples: (Network Model, Hierarchical Model), Relational Model, Entity Relationship Model, Object Oriented Models, UML, XML. 1 Data model is, regrettably, widely used for Database schema.

12 Introduction 23 Overview 1. Basic Database Notions 2. Database Management Systems (DBMS) 3. Programmer s View, Data Independence 4. Database Users and Database Tools DBMS (1) 24 A Database Management System (DBMS) is an application independent software system that implements a data model, i.e., allows for definition of a DB schema for some concrete application, storage of an instance of this schema on, e.g., a disk, querying the current instance (database state), changing the database state. Application independent vs. concrete application Since a DBMS is application independent, how will the DBMS ensure to interpret the stored application data correctly?

13 DBMS (2) 25 Normal users do not need to use SQL for their daily tasks of data entry or data lookup. These users use application programs that have been developed specifically for this task and offer a more accessible user interface. Internally, these application programs translate the user requests into SQL statements (queries, updates) in order to communicate with the DBMS. DBMS (3) 26 Often, several different application programs are used to access the same centralized database. For example, the Homework DBS might provide: A read only web interface for students. A program used by the TA (Hiwi) to load homework and exam points. A program that prints a report for the professor used to assign grades. The interactive SQL interface (SQL console) that comes with the DBMS is simply yet another way to access the DBMS.

14 DBMS (4) 27 User A Application Program User B DBMS Tool (e.g., SQL console) Database Management System (DBMS) DB Schema DB State DB Application Systems (1) 28 Often, different users access the same database concurrently (i.e., at the same time, touching the same data). The DBMS is usually implemented as a background server process (or set of such processes) that is accessed over the network by application programs (clients). One can also view the DBMS as an extension of the operating system (a more powerful file system).

15 DB Application Systems (2) 29 Client Server Architecture Client Client Server Network User A (Application) User B (SQL console) DBMS DB Application Systems (3) 30 Three-Tier Architecture Thin client Thin client Application Server Server User A (Browser) User B (Browser) Application Web Server DBMS

16 DB Application System (4) 31 A recap of database vocabulary: A database (DB) consists of a DB schema and a DB state. A database management system (DBMS) is a software system that implements a data model (e.g., a Relational DBMS (RDBMS) implements the relational model). A database system (DBS) consists of a DBMS and a database. A database application system consists of a DBS and a set of application programs. Introduction 32 Overview 1. Basic Database Notions 2. Database Management Systems (DBMS) 3. Programmer s View, Data Independence 4. Database Users and Database Tools

17 Persistent Storage (1) 33 Today: 5 factorial 120 Tomorrow: 5 factorial 120 To evaluate factorial (n n!), no persistent storage is necessary. The output is a function of the input only. Persistent Storage (2) 34 Today: Ann Homework points 20 Tomorrow: Ann Homework points 30 The output is a function of the input and a persistent state.

18 Persistent Storage (3) 35 A DBS provides persistent state Input Ann Homework points Output 30 Persistent state Persistent information Information that lives longer than a single process (program execution). Survives power outage and a reboot of the operating system. Persistent Storage (4) 36 Which of the following processes/devices need persistent storage? If so, for which particular task? 1 Web browser 2 Pocket calculator 3 Mobile phone 4 Screen saver 5 HDD/DVD video recorder

19 Typed Persistent Data (1) 37 Classical way to implement persistence: Information needed in subsequent program invocations is saved into a file. The operating system (OS) maintains the file on disk. Disks provide persistent memory: the contents is not lost if the machine is switched off or the OS is rebooted. OS files and persistence The above statement is basically true but care should be taken nevertheless. Why? File systems are predecessors of modern DBMS. Typed Persistent Data (2) 38 Implementing persistence with files: OS files are usually nothing but sequences of bytes. A record structure must be defined on top of this (much like in Assembler languages): A n n S m i t h The record and file structure is contained only in the programmers heads. The OS file system cannot prevent misinterpretation, overflows, etc., because it is not aware of the file structure

20 Typed Persistent Data (3) 39 Implementing Persistence with a DBMS: The structure of the information to be stored must be defined in a way the DBMS understands: SQL DDL command CREATE TABLE SOLVED (STUDENT VARCHAR(40), HOMEWORK NUMERIC(2), POINTS NUMERIC(2)) The file structure is formally documented. The system can detect type errors in application programs. Simplified programming (higher abstraction level). A Subprogram Library (1) 40 Most DBMSs use OS files to store the data. (Some use raw disk device access.) One can view a DBMS as a subprogram library that can be used for file access. Compared with the direct OS system calls for file access, the DBMS offers higher level operations. The DBMS offers a wide variety of algorithms that one would otherwise have to program.

21 A Subprogram Library (2) 41 For instance, a typical Relational DBMS contains routines for sorting (e.g., external merge sort), searching (e.g., B-trees), file space management, buffer management, aggregation, statistical evaluation. The algorithms are optimized for large data sets (that do not fit into main memory). The DBMS also offers multi-user support (locking) and safety measures to protect data against system crashes. Data Independence (1) 42 The DBMS is a layer of software above the OS files. The files can be accessed only via the DBMS. The DBMS may change the file structure internally (reorder records, splits files, etc.) for performance reasons. This goes unnoticed by the application program. Compare with the idea of abstract data types: The implementation changes, the interface is kept stable.

22 Data Independence (2) 43 Typical example: At the beginning, a professor used the homeworks DB only for his courses in the current term. Since the DB was small and there were relatively few accesses, it was sufficient to store the data as a heap file. Later, the entire university used the DB, and information of previous courses had to be kept for some time. DB size grows significantly, DB access much more frequently. An index file (e.g., a B-tree) is now needed to provide fast access. Data Independence (3) 44 Without DBMS: Using the new B-tree index to access the file must be explicitly built into the lookup (query) commands. Thus, application programs need to be changed if the mode of file access is changed. If one forgets to change a seldolmly used application program, and this program does not update the index when the data has been updated, the DB becomes inconsistent.

23 Data Independence (4) 45 With Relational DBMS: Already at the interface, the system completely hides the (non-)existence of indexes on files. Queries and updates do not have to and cannot refer to indexes. The system automatically 1 modifies the index in case of data updates, 2 uses the index to evaluate queries against the indexed data when advantageous. Data Independence (5) 46 Conceptual Schema ( interface ): Only logical information content of the database, relevant to the subset of the real world modelled in the DB. Simplified view of the DB: physical storage details hidden. Internal/Physical Schema ( implementation ): Indexes, Division of tables among disks, Storage management if tables grow or shrink, Placement of new rows in a table (sort order, clustering).

24 Data Independence (6) 47 1 The user enters a query (e.g., in SQL) that only refers to the conceptual schema. 2 The DBMS translates this into a query/program (execution plan) which refers to the internal schema. This is done by the query optimizer. 3 The DBMS executes the translated query on the persistent instance of the internal schema. 4 The DBMS translates the result back to the conceptual level. Back-translation? Why would this be necessary and what would be typical back-translation steps? Data Independence (7) 48 Changing the internal schema Conceptual Schema Same Conceptual Schema New Translation Old Internal Schema (no B-tree index) New Internal Schema (with B-tree index)

25 Declarative Languages (1) 49 Physical data independence requires that the query language (SQL) cannot refer to indexes. Declarative query languages go one step further: Queries should only describe what information is sought, but should not prescribe any particular method how to compute/retrieve the desired information. Kowalski Algorithm = Logic + Control Imperative/Procedural Languages: explicit control, implicit logic Declarative/Descriptive Laguages: implicit control, explicit logic Declarative Languages (2) 50 SQL is a declarative language. The user describes conditions the requested data is required to fulfill: SQL query SELECT X.POINTS FROM SOLVED X WHERE X.STUDENT = Ann Smith AND X.HOMEWORK = 3 Ofter, simpler formulations of the same query are possible, with SQL users do not have to think about efficient execution. More concise than imperative programming: less expensive program development and maintenance.

26 Declarative Languages (3) 51 Declarative query languages allow powerful optimizers (no evaluation method is prescribed) need powerful optimizers (naïve evaluation is almost always too inefficient). Independence of current hardware technology and software quality: Today s queries will use tomorrow s DBMS setup and algorithms when a new version of the DBMS is released. Logical Data Independence (1) 52 Logical data independence allows for changes to the logical information content of the database. Such changes are obviously restricted to additions to the logical information content. Example: add column SUBMISSION DATE to table SOLVED. Such additions may be required for new applications. It should not be necessary to change old applications only because records now contain additional information.

27 Logical Data Independence (2) 53 Logical data independence is important when there are application programs with distinct, but overlapping information needs. Logical data independence also helps to integrate previously distinct databases. In earlier times, every department of a company had its own DB/data files. Now, businesses generally aim at one central DB. Logical Data Independence (3) 54 If a company uses more than one DB, the information in these databases will normally overlap, i.e., some pieces of information will be stored several times. Data is called redundant if it can be derived from other data and knowledge internal to the application. Problems with redundancy: Duplicates data entry and update efforts. Sooner or later, data copies will get out-of-sync and thus inconsistent. Wastes storage space, also on backup media.

28 Logical Data Independence (4) 55 External Schemas/Views: Logical data independence requires a third level of database schemas, the external schemas or views. Each user (department,... ) may have an individual view of the data. An external view contains a subset of the information in the database, maybe slightly restructured. Views may also be vital because of security reasons. In contrast, the conceptual schema describes the complete information content of the database. Three Schema Architecture 56 Three Schema Architecture [ANSI/Sparc 1978] User User External Schema 1... External Schema n Conceptual Schema Stored data Internal Schema

29 More DBMS Functions (1) 57 Transactions: Sequences of DB commands (queries and updates) are executed as an atomic unit ( all or nothing ). DBMS may crash during/after a sequence of commands is/has been executed. The DBMS then performs undo/redo. Support for backup and recovery. Support of concurrent users. Each user is given the illusion to be the only DB user at any time. DBMS performs locking and conflict detection. More DBMS Functions (2) 58 Security: Access rights: Who may perform which operations on which table? Auditing: DBMS remembers who did what/when. Integrity: The DBMS checks that the entered data is plausible/complete (such checks may also span several tables). DBMS rejects updates (insertions and deletions) which would violate defined business rules.

30 More DBMS Functions (3) 59 Data Dictionary: Metadata ( data about data, schema, user list, access rights) is availble in system tables, e.g.: System tables SYS TABLES TABLE NAME OWNER SOLVED GRUST SYS TABLES SYS SYS COLUMNS SYS SYS COLUMNS TABLE NAME SEQ COL NAME SOLVED 1 STUDENT SOLVED 2 HOMEWORK SOLVED 3 POINTS SYS TABLES 1 TABLE NAME SYS TABLES 2 OWNER SYS COLUMNS 1 TABLE NAME SYS COLUMNS 2 SEQ SYS COLUMNS 3 COL NAME Introduction 60 Overview 1. Basic Database Notions 2. Database Management Systems (DBMS) 3. Programmer s View, Data Independence 4. Database Users and Database Tools

31 Database Users (1) 61 Database Administrator (DBA): Should know about all schemas, may change the conceptual and the internal schema (creates tables, creates/drops indexes). Can damage everything. Gives access rights to users. Ensures security. Monitors system performance. (Transaction throughput #TX /s, # concurrent users, index sizes,... ) Monitors available disk space and installs new disks. Ensures that backup copies of the data are made. Does recovery after disk failures, etc. Database Users (2) 62 Application Programmer: Writes programs for standard, all-day tasks, to be used by the naïve users (see below): safe data entry, report generation, data browsing. Knows SQL well, plus programming languages and development tools. Usually supervised by DBA. Might do conceptual schema design (knows which table the application will need to access/create).

32 Database Users (3) 63 Sophisticated User (one kind of end user ): Knows SQL and/or some query tools, may use SQL console. Does non-standard aggregations/evaluations of the data without help from application programmers. May generate complex queries. Naïve User (the other kind of end user ): Uses DB only via application programs, often unaware of existence of DBMS back-end. Primarily data entry user, simple browsing-style queries against external views. Database Tools 64 Interactive SQL console Graphical/menu-based query tools Interface for DB access from standard programing lanugages (C, C++, Java) Tools for form-based DB application (4GL) Report generators Web interface Tools for data import/export, backup & recovery, performance monitoring,...

33 Summary (1) 65 Functions of database systems: Persistence Integration/Redundancy Avoidance Physical and Logical Data Independence Subprogram Library: many algorithms built-in, especially tuned for external memory access (disks) Query and Update evaluation Summary (2) 66 Functions of database systems, continued: High data safety and availability (Backup & Recovery) Combinations of operations into atomic transactions Multi-user support: synchronization of concurrent accesses Integrity Enforcement View management Security via data access control System catalog management (metadata)

34 Summary (3) 67 The main goal of the DBMS is to give the user a simplified view on the persistent storage, i.e., to hide any complications introduced by the DBMS physical layer. The user does not worry about physical storage details different information needs of other users efficient query formulation possibility of system crashes/disk failures presence of concurrent users accessing identical data subsets. Exercise 68 Data-intensive programming Suppose homework points data is stored in a line-structured text file with the format Student Name:Homework Number:Points e.g., Ann Smith:3:10 Suppose you have to write a C program that prints the total number of points per student (students sorted alphabetically). How would you judge the programming effort (in terms of lines and time)? In SQL, this takes 4 lines and approx. 1 1 /2 minutes.

Part 1: Introduction

Part 1: Introduction 1. Introduction 1-1 Part 1: Introduction References: Elmasri/Navathe:Fundamentals of Database Systems, 3rd Edition, 1999. Chapter 1, Databases and Database Users Chapter 2, Database System Concepts and

More information

Databases. Jörg Endrullis. VU University Amsterdam

Databases. Jörg Endrullis. VU University Amsterdam Databases Jörg Endrullis VU University Amsterdam Databases A database (DB) is a collection of data with a certain logical structure a specific semantics a specific group of users Databases A database (DB)

More information

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1 Basic Concepts :- 1. What is Data? Data is a collection of facts from which conclusion may be drawn. In computer science, data is anything in a form suitable for use with a computer. Data is often distinguished

More information

CSE 3241: Database Systems I Databases Introduction (Ch. 1-2) Jeremy Morris

CSE 3241: Database Systems I Databases Introduction (Ch. 1-2) Jeremy Morris CSE 3241: Database Systems I Databases Introduction (Ch. 1-2) Jeremy Morris 1 Outline What is a database? The database approach Advantages Disadvantages Database users Database concepts and System architecture

More information

Database Systems. Sven Helmer. Database Systems p. 1/567

Database Systems. Sven Helmer. Database Systems p. 1/567 Database Systems Sven Helmer Database Systems p. 1/567 Chapter 1 Introduction and Motivation Database Systems p. 2/567 Introduction What is a database system (DBS)? Obviously a system for storing and managing

More information

DBMS (FYCS) Unit - 1. A database management system stores data in such a way that it becomes easier to retrieve, manipulate, and produce information.

DBMS (FYCS) Unit - 1. A database management system stores data in such a way that it becomes easier to retrieve, manipulate, and produce information. Prof- Neeta Bonde DBMS (FYCS) Unit - 1 DBMS: - Database is a collection of related data and data is a collection of facts and figures that can be processed to produce information. Mostly data represents

More information

Database Systems I. Chapter 0 Overview. Foundations of Databases Summer term Melanie Herschel

Database Systems I. Chapter 0 Overview. Foundations of Databases Summer term Melanie Herschel Database Systems I Foundations of Databases Summer term 2010 Melanie Herschel melanie.herschel@uni-tuebingen.de Database Systems Group, University of Tübingen 1 Chapter 0 Overview Overview Administrativa

More information

Introduction to Databases

Introduction to Databases Introduction to Databases 1 Objectives Most common types of digital information processing enter file-based systems Why database systems came around DBMS environment: components / roles Is it all worth

More information

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Email Address: meyer@sci.brooklyn.cuny.edu Course Page: http://www.sci.brooklyn.cuny.edu/~meyer/ CISC3140-Meyer-lec4

More information

Introduction. Example Databases

Introduction. Example Databases Introduction Example databases Overview of concepts Why use database systems Example Databases University Data: departments, students, exams, rooms,... Usage: creating exam plans, enter exam results, create

More information

Lecture Notes CPSC 321 (Fall 2018) Today... Survey. Course Overview. Homework. HW1 (out) S. Bowers 1 of 8

Lecture Notes CPSC 321 (Fall 2018) Today... Survey. Course Overview. Homework. HW1 (out) S. Bowers 1 of 8 Today... Survey Course Overview Homework HW1 (out) S. Bowers 1 of 8 Course Overview Course webpage www.cs.gonzaga.edu/bowers/courses/cpsc321 Please check frequently (schedule, notes, assignments, etc.)

More information

Quick Facts about the course. CS 2550 / Spring 2006 Principles of Database Systems. Administrative. What is a Database Management System?

Quick Facts about the course. CS 2550 / Spring 2006 Principles of Database Systems. Administrative. What is a Database Management System? Quick Facts about the course CS 2550 / Spring 2006 Principles of Database Systems 01 Introduction Alexandros Labrinidis University of Pittsburgh When: Tue & Thu 2:30pm 3:45pm Where: 5313 SENSQ Instructor:

More information

Database systems. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c)

Database systems. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) Database systems Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) 2011-2016 Resources Ramez Elmasri, Shamkant B. Navathe: Fundamentals of Database Systems, Addison Wesley, 5 edition, 2006, 1168 p. ISBN

More information

CS425 Fall 2016 Boris Glavic Chapter 1: Introduction

CS425 Fall 2016 Boris Glavic Chapter 1: Introduction CS425 Fall 2016 Boris Glavic Chapter 1: Introduction Modified from: Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Textbook: Chapter 1 1.2 Database Management System (DBMS)

More information

CMSC 424 Database design Lecture 2: Design, Modeling, Entity-Relationship. Book: Chap. 1 and 6. Mihai Pop

CMSC 424 Database design Lecture 2: Design, Modeling, Entity-Relationship. Book: Chap. 1 and 6. Mihai Pop CMSC 424 Database design Lecture 2: Design, Modeling, Entity-Relationship Book: Chap. 1 and 6 Mihai Pop Administrative issues TA: Sharath Srinivas TA office hours: Mon 10-11:30, Wed 3-4:30, AVW 1112 Glue

More information

Administrivia. The Relational Model. Review. Review. Review. Some useful terms

Administrivia. The Relational Model. Review. Review. Review. Some useful terms Administrivia The Relational Model Ramakrishnan & Gehrke Chapter 3 Homework 0 is due next Thursday No discussion sections next Monday (Labor Day) Enrollment goal ~150, 118 currently enrolled, 47 on the

More information

Data Base Concepts. Course Guide 2

Data Base Concepts. Course Guide 2 MS Access Chapter 1 Data Base Concepts Course Guide 2 Data Base Concepts Data The term data is often used to distinguish binary machine-readable information from textual human-readable information. For

More information

Data, Databases, and DBMSs

Data, Databases, and DBMSs Todd S. Bacastow January 2004 IST 210 Data, Databases, and DBMSs 1 Evolution Ways of storing data Files ancient times (1960) Databases Hierarchical (1970) Network (1970) Relational (1980) Object (1990)

More information

Architecture and Implementation of Database Systems (Summer 2018)

Architecture and Implementation of Database Systems (Summer 2018) Jens Teubner Architecture & Implementation of DBMS Summer 2018 1 Architecture and Implementation of Database Systems (Summer 2018) Jens Teubner, DBIS Group jens.teubner@cs.tu-dortmund.de Summer 2018 Jens

More information

; Spring 2008 Prof. Sang-goo Lee (14:30pm: Mon & Wed: Room ) ADVANCED DATABASES

; Spring 2008 Prof. Sang-goo Lee (14:30pm: Mon & Wed: Room ) ADVANCED DATABASES 4541.564; Spring 2008 Prof. Sang-goo Lee (14:30pm: Mon & Wed: Room 302-208) ADVANCED DATABASES Syllabus Text Books Exams (tentative dates) Database System Concepts, 5th Edition, A. Silberschatz, H. F.

More information

CAS CS 460/660 Introduction to Database Systems. Fall

CAS CS 460/660 Introduction to Database Systems. Fall CAS CS 460/660 Introduction to Database Systems Fall 2017 1.1 About the course Administrivia Instructor: George Kollios, gkollios@cs.bu.edu MCS 283, Mon 2:30-4:00 PM and Tue 1:00-2:30 PM Teaching Fellows:

More information

Database Management Systems MIT Introduction By S. Sabraz Nawaz

Database Management Systems MIT Introduction By S. Sabraz Nawaz Database Management Systems MIT 22033 Introduction By S. Sabraz Nawaz Recommended Reading Database Management Systems 3 rd Edition, Ramakrishnan, Gehrke Murach s SQL Server 2008 for Developers Any book

More information

Essay Question: Explain 4 different means by which constrains are represented in the Conceptual Data Model (CDM).

Essay Question: Explain 4 different means by which constrains are represented in the Conceptual Data Model (CDM). Question 1 Essay Question: Explain 4 different means by which constrains are represented in the Conceptual Data Model (CDM). By specifying participation conditions By specifying the degree of relationship

More information

COSC 304 Introduction to Database Systems. Database Introduction. Dr. Ramon Lawrence University of British Columbia Okanagan

COSC 304 Introduction to Database Systems. Database Introduction. Dr. Ramon Lawrence University of British Columbia Okanagan COSC 304 Introduction to Database Systems Database Introduction Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca What is a database? A database is a collection of logically

More information

Announcements. Teams formed (sit with your group from now on) Project Deliverables

Announcements. Teams formed (sit with your group from now on) Project Deliverables Announcements Teams formed (sit with your group from now on) Project Deliverables Agenda Lecture Team Logistics Come up with classwide discussion items Homework Organizing Domain Logic SWEN-343 Learning

More information

Database Management Systems. Chapter 1

Database Management Systems. Chapter 1 Database Management Systems Chapter 1 Overview of Database Systems Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 What Is a DBMS? A database is a collection of data. Models real-world

More information

Introduction to Database Systems (1)

Introduction to Database Systems (1) Introduction to Database Systems (1) SWEN 304 Trimester 1, 2018 Lecturer: Dr Hui Ma Engineering and Computer Science slides by: Pavle Mogin & Hui Ma Outline Fundamental assumptions Databases (DB) and data

More information

MIS Database Systems.

MIS Database Systems. MIS 335 - Database Systems http://www.mis.boun.edu.tr/durahim/ Ahmet Onur Durahim Learning Objectives Database systems concepts Designing and implementing a database application Life of a Query in a Database

More information

BIS Database Management Systems.

BIS Database Management Systems. BIS 512 - Database Management Systems http://www.mis.boun.edu.tr/durahim/ Ahmet Onur Durahim Learning Objectives Database systems concepts Designing and implementing a database application Life of a Query

More information

Database Systems Management

Database Systems Management Database Systems Management Instructor - Russ Wakefield GTA Shivani Dave On Campus and Distance Learning What is CS430 / CS430dl? Instructor (Russ) and GTA (Shivani) Homework assignments 4-5 Lab assignments

More information

Review. The Relational Model. Glossary. Review. Data Models. Why Study the Relational Model? Why use a DBMS? OS provides RAM and disk

Review. The Relational Model. Glossary. Review. Data Models. Why Study the Relational Model? Why use a DBMS? OS provides RAM and disk Review The Relational Model CS 186, Fall 2006, Lecture 2 R & G, Chap. 3 Why use a DBMS? OS provides RAM and disk Review Why use a DBMS? OS provides RAM and disk Concurrency Recovery Abstraction, Data Independence

More information

John Edgar 2

John Edgar 2 CMPT 354 http://www.cs.sfu.ca/coursecentral/354/johnwill/ John Edgar 2 Assignments 30% Midterm exam in class 20% Final exam 50% John Edgar 3 A database is a collection of information Databases of one

More information

What is Data? ANSI definition: Volatile vs. persistent data. Data. Our concern is primarily with persistent data

What is Data? ANSI definition: Volatile vs. persistent data. Data. Our concern is primarily with persistent data What is Data? ANSI definition: Data ❶ A representation of facts, concepts, or instructions in a formalized manner suitable for communication, interpretation, or processing by humans or by automatic means.

More information

What is Data? Volatile vs. persistent data Our concern is primarily with persistent data

What is Data? Volatile vs. persistent data Our concern is primarily with persistent data What is? ANSI definition: ❶ A representation of facts, concepts, or instructions in a formalized manner suitable for communication, interpretation, or processing by humans or by automatic means. ❷ Any

More information

Database System Concepts and Architecture

Database System Concepts and Architecture CHAPTER 2 Database System Concepts and Architecture Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 2-2 Outline Data Models and Their Categories History of Data Models Schemas, Instances, and

More information

Course Logistics & Chapter 1 Introduction

Course Logistics & Chapter 1 Introduction CMSC 461, Database Management Systems Spring 2018 Course Logistics & Chapter 1 Introduction These slides are based on Database System Concepts book th edition, and the 2009 CMSC 461 slides by Dr. Kalpakis

More information

Practical Database Design Methodology and Use of UML Diagrams Design & Analysis of Database Systems

Practical Database Design Methodology and Use of UML Diagrams Design & Analysis of Database Systems Practical Database Design Methodology and Use of UML Diagrams 406.426 Design & Analysis of Database Systems Jonghun Park jonghun@snu.ac.kr Dept. of Industrial Engineering Seoul National University chapter

More information

Database Architectures

Database Architectures Database Architectures CPS352: Database Systems Simon Miner Gordon College Last Revised: 4/15/15 Agenda Check-in Parallelism and Distributed Databases Technology Research Project Introduction to NoSQL

More information

Page 1. Goals for Today" What is a Database " Key Concept: Structured Data" CS162 Operating Systems and Systems Programming Lecture 13.

Page 1. Goals for Today What is a Database  Key Concept: Structured Data CS162 Operating Systems and Systems Programming Lecture 13. Goals for Today" CS162 Operating Systems and Systems Programming Lecture 13 Transactions" What is a database? Transactions Conflict serializability October 12, 2011 Anthony D. Joseph and Ion Stoica http://inst.eecs.berkeley.edu/~cs162

More information

Introduction: Database Concepts Slides by: Ms. Shree Jaswal

Introduction: Database Concepts Slides by: Ms. Shree Jaswal Introduction: Database Concepts Slides by: Ms. Shree Jaswal Topics: Introduction Characteristics of databases File system V/s Database system Users of a Database system Data Models, Schemas, and Instances

More information

Database Technology Introduction. Heiko Paulheim

Database Technology Introduction. Heiko Paulheim Database Technology Introduction Outline The Need for Databases Data Models Relational Databases Database Design Storage Manager Query Processing Transaction Manager Introduction to the Relational Model

More information

Introduction and Overview

Introduction and Overview Introduction and Overview Instructor: Leonard McMillan Comp 521 Files and Databases Fall 2016 1 Course Administrivia Optional Book Cow book Somewhat Dense Cover about 80% Instructor Leonard McMillan Teaching

More information

CPSC 421 Database Management Systems. Lecture 11: Storage and File Organization

CPSC 421 Database Management Systems. Lecture 11: Storage and File Organization CPSC 421 Database Management Systems Lecture 11: Storage and File Organization * Some material adapted from R. Ramakrishnan, L. Delcambre, and B. Ludaescher Today s Agenda Start on Database Internals:

More information

Databases. Jörg Endrullis. VU University Amsterdam

Databases. Jörg Endrullis. VU University Amsterdam Databases Jörg Endrullis VU University Amsterdam The Relational Model Overview 1. Relational Model Concepts: Schema, State 2. Null Values 3. Constraints: General Remarks 4. Key Constraints 5. Foreign Key

More information

8) A top-to-bottom relationship among the items in a database is established by a

8) A top-to-bottom relationship among the items in a database is established by a MULTIPLE CHOICE QUESTIONS IN DBMS (unit-1 to unit-4) 1) ER model is used in phase a) conceptual database b) schema refinement c) physical refinement d) applications and security 2) The ER model is relevant

More information

Relational Database Systems 2 1. System Architecture

Relational Database Systems 2 1. System Architecture Relational Database Systems 2 1. System Architecture Silke Eckstein Andreas Kupfer Institut für Informationssysteme Technische Universität Braunschweig http://www.ifis.cs.tu-bs.de Organizational Information

More information

EECS 647: Introduction to Database Systems

EECS 647: Introduction to Database Systems EECS 647: Introduction to Database Systems Instructor: Luke Huan Spring 2009 Queries for Today What is a database? What is a database management system? Why take a database course? Who will teach? How

More information

ADVANCED DATABASES ; Spring 2015 Prof. Sang-goo Lee (11:00pm: Mon & Wed: Room ) Advanced DB Copyright by S.-g.

ADVANCED DATABASES ; Spring 2015 Prof. Sang-goo Lee (11:00pm: Mon & Wed: Room ) Advanced DB Copyright by S.-g. 4541.564; Spring 2015 Prof. Sang-goo Lee (11:00pm: Mon & Wed: Room 301-203) ADVANCED DATABASES Copyright by S.-g. Lee Review - 1 General Info. Text Book Database System Concepts, 6 th Ed., Silberschatz,

More information

User Perspective. Module III: System Perspective. Module III: Topics Covered. Module III Overview of Storage Structures, QP, and TM

User Perspective. Module III: System Perspective. Module III: Topics Covered. Module III Overview of Storage Structures, QP, and TM Module III Overview of Storage Structures, QP, and TM Sharma Chakravarthy UT Arlington sharma@cse.uta.edu http://www2.uta.edu/sharma base Management Systems: Sharma Chakravarthy Module I Requirements analysis

More information

Announcement. Reading Material. Overview of Query Evaluation. Overview of Query Evaluation. Overview of Query Evaluation 9/26/17

Announcement. Reading Material. Overview of Query Evaluation. Overview of Query Evaluation. Overview of Query Evaluation 9/26/17 Announcement CompSci 516 Database Systems Lecture 10 Query Evaluation and Join Algorithms Project proposal pdf due on sakai by 5 pm, tomorrow, Thursday 09/27 One per group by any member Instructor: Sudeepa

More information

CPS510 Database System Design Primitive SYSTEM STRUCTURE

CPS510 Database System Design Primitive SYSTEM STRUCTURE CPS510 Database System Design Primitive SYSTEM STRUCTURE Naïve Users Application Programmers Sophisticated Users Database Administrator DBA Users Application Interfaces Application Programs Query Data

More information

Bottom line: A database is the data stored and a database system is the software that manages the data. COSC Dr.

Bottom line: A database is the data stored and a database system is the software that manages the data. COSC Dr. COSC 304 Introduction to Systems Introduction Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca What is a database? A database is a collection of logically related data for

More information

CSCI1270 Introduction to Database Systems

CSCI1270 Introduction to Database Systems CSCI1270 Introduction to Database Systems with thanks to Prof. George Kollios, Boston University Prof. Mitch Cherniack, Brandeis University Prof. Avi Silberschatz, Yale University 1.1 What is a Database

More information

Chapter 1: Introduction

Chapter 1: Introduction Chapter 1: Introduction Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Outline The Need for Databases Data Models Relational Databases Database Design Storage Manager Query

More information

CSE 190D Database System Implementation

CSE 190D Database System Implementation CSE 190D Database System Implementation Arun Kumar Topic 6: Transaction Management Chapter 16 of Cow Book Slide ACKs: Jignesh Patel 1 Transaction Management Motivation and Basics The ACID Properties Transaction

More information

Relational Database Systems 2 1. System Architecture

Relational Database Systems 2 1. System Architecture Relational Database Systems 2 1. System Architecture Wolf-Tilo Balke Jan-Christoph Kalo Institut für Informationssysteme Technische Universität Braunschweig http://www.ifis.cs.tu-bs.de 1 Organizational

More information

Databasesystemer, forår 2005 IT Universitetet i København. Forelæsning 8: Database effektivitet. 31. marts Forelæser: Rasmus Pagh

Databasesystemer, forår 2005 IT Universitetet i København. Forelæsning 8: Database effektivitet. 31. marts Forelæser: Rasmus Pagh Databasesystemer, forår 2005 IT Universitetet i København Forelæsning 8: Database effektivitet. 31. marts 2005 Forelæser: Rasmus Pagh Today s lecture Database efficiency Indexing Schema tuning 1 Database

More information

DATABASE MANAGEMENT SYSTEM ARCHITECTURE

DATABASE MANAGEMENT SYSTEM ARCHITECTURE DATABASE 1 MANAGEMENT SYSTEM ARCHITECTURE DBMS ARCHITECTURE 2 The logical DBMS architecture The physical DBMS architecture DBMS ARCHITECTURE 3 The logical DBMS architecture The logical architecture deals

More information

Introduction to Database Systems CS432. CS432/433: Introduction to Database Systems. CS432/433: Introduction to Database Systems

Introduction to Database Systems CS432. CS432/433: Introduction to Database Systems. CS432/433: Introduction to Database Systems Introduction to Database Systems CS432 Instructor: Christoph Koch koch@cs.cornell.edu CS 432 Fall 2007 1 CS432/433: Introduction to Database Systems Underlying theme: How do I build a data management system?

More information

CS Final Exam Review Suggestions

CS Final Exam Review Suggestions CS 325 - Final Exam Review Suggestions p. 1 last modified: 2017-12-06 CS 325 - Final Exam Review Suggestions Based on suggestions from Prof. Deb Pires from UCLA: Because of the research-supported learning

More information

Database Systems CSE 414

Database Systems CSE 414 Database Systems CSE 414 Lecture 15-16: Basics of Data Storage and Indexes (Ch. 8.3-4, 14.1-1.7, & skim 14.2-3) 1 Announcements Midterm on Monday, November 6th, in class Allow 1 page of notes (both sides,

More information

Introduction and Overview

Introduction and Overview Introduction and Overview (Read Cow book Chapter 1) Instructor: Leonard McMillan mcmillan@cs.unc.edu Comp 521 Files and Databases Spring 2010 1 Course Administrivia Book Cow book New (to our Dept) More

More information

Introduction to SET08104

Introduction to SET08104 Introduction to SET08104 SET08104 Database Systems Copyright @ Napier University Introduction Before Databases: Each application suite had independent master files. Duplication of data could lead to inconsistencies

More information

Database Systems ( 資料庫系統 ) Practicum in Database Systems ( 資料庫系統實驗 ) 9/20 & 9/21, 2006 Lecture #1

Database Systems ( 資料庫系統 ) Practicum in Database Systems ( 資料庫系統實驗 ) 9/20 & 9/21, 2006 Lecture #1 Database Systems ( 資料庫系統 ) Practicum in Database Systems ( 資料庫系統實驗 ) 9/20 & 9/21, 2006 Lecture #1 1 Course Goals First course in database systems. Main Course (3 units) - Learn Use a relational database

More information

Administrivia. CS186 Class Wrap-Up. News. News (cont) Top Decision Support DBs. Lessons? (from the survey and this course)

Administrivia. CS186 Class Wrap-Up. News. News (cont) Top Decision Support DBs. Lessons? (from the survey and this course) Administrivia CS186 Class Wrap-Up R&G Chapters 1-28 Lecture 28 Final Exam Friday 12/12, 5pm 8pm, Room 4 LeConte You may have 2 pages of notes, both sides The exam is cumulative Final Exam Review Tuesday

More information

CS634 Architecture of Database Systems Spring Elizabeth (Betty) O Neil University of Massachusetts at Boston

CS634 Architecture of Database Systems Spring Elizabeth (Betty) O Neil University of Massachusetts at Boston CS634 Architecture of Database Systems Spring 2018 Elizabeth (Betty) O Neil University of Massachusetts at Boston People & Contact Information Instructor: Prof. Betty O Neil Email: eoneil AT cs.umb.edu

More information

Introduction to Data Management. Lecture #1 (Course Trailer )

Introduction to Data Management. Lecture #1 (Course Trailer ) Introduction to Data Management Lecture #1 (Course Trailer ) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Today s Topics v Welcome to one

More information

Introduction to Data Management. Lecture #1 (Course Trailer ) Instructor: Chen Li

Introduction to Data Management. Lecture #1 (Course Trailer ) Instructor: Chen Li Introduction to Data Management Lecture #1 (Course Trailer ) Instructor: Chen Li 1 Today s Topics v Welcome to one of my biggest classes ever! v Read (and live by) the course wiki page: http://www.ics.uci.edu/~cs122a/

More information

Help student appreciate the DBMS scope of function

Help student appreciate the DBMS scope of function 10 th September 2015 Unit 1 Objective Help student appreciate the DBMS scope of function Learning outcome We expect understanding of the DBMS core functions Section 1: Database system Architecture Section

More information

Chapter 1: Introduction

Chapter 1: Introduction Chapter 1: Introduction Chapter 2: Intro. To the Relational Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Database Management System (DBMS) DBMS is Collection of

More information

DATABASE MANAGEMENT SYSTEMS. UNIT I Introduction to Database Systems

DATABASE MANAGEMENT SYSTEMS. UNIT I Introduction to Database Systems DATABASE MANAGEMENT SYSTEMS UNIT I Introduction to Database Systems Terminology Data = known facts that can be recorded Database (DB) = logically coherent collection of related data with some inherent

More information

Database Management System. Fundamental Database Concepts

Database Management System. Fundamental Database Concepts Database Management System Fundamental Database Concepts CONTENTS Basics of DBMS Purpose of DBMS Applications of DBMS Views of Data Instances and Schema Data Models Database Languages Responsibility of

More information

LECTURE1: PRINCIPLES OF DATABASES

LECTURE1: PRINCIPLES OF DATABASES LECTURE1: PRINCIPLES OF DATABASES Ref. Chapter1 Information Systems Department Chapter1 - Objectives 2 Problems with file-based approach. Database concepts. Database Management System (DBMS). Major components

More information

Introduction to Data Management. Lecture #1 (Course Trailer )

Introduction to Data Management. Lecture #1 (Course Trailer ) Introduction to Data Management Lecture #1 (Course Trailer ) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Today s Topics! Welcome to my biggest

More information

Chapter 1 Introduction

Chapter 1 Introduction Chapter 1 Introduction Contents The History of Database System Overview of a Database Management System (DBMS) Three aspects of database-system studies the state of the art Introduction to Database Systems

More information

1 Overview of Database Management

1 Overview of Database Management 1 Overview of Database Management 1.1 Data, information and knowledge 1.1.1 Data Data is/are the facts of the World. For example, take yourself. You may be 5ft tall, have brown hair and blue eyes. All

More information

2 Copyright 2015 M. E. Kabay. All rights reserved. 4 Copyright 2015 M. E. Kabay. All rights reserved.

2 Copyright 2015 M. E. Kabay. All rights reserved. 4 Copyright 2015 M. E. Kabay. All rights reserved. Application Controls CSH6 Chapter 52 Application Controls Myles Walsh Topics Protection in Development Protecting Databases Protecting Batch Files Ensuring that Information in the System is Valid 1 Copyright

More information

5/23/2014. Limitations of File-based Approach. Limitations of File-based Approach CS235/CS334 DATABASE TECHNOLOGY CA 40%

5/23/2014. Limitations of File-based Approach. Limitations of File-based Approach CS235/CS334 DATABASE TECHNOLOGY CA 40% CS235/CS334 DATABASE TECHNOLOGY CA 40% 3 TESTS EXAM 60% www.lechaamwe.weebly.com Lecture Notes Undergraduate CS235 and CS334 Introduction to Databases File-based Systems File-based systems were an early

More information

What s a database system? Review of Basic Database Concepts. Entity-relationship (E/R) diagram. Two important questions. Physical data independence

What s a database system? Review of Basic Database Concepts. Entity-relationship (E/R) diagram. Two important questions. Physical data independence What s a database system? Review of Basic Database Concepts CPS 296.1 Topics in Database Systems According to Oxford Dictionary Database: an organized body of related information Database system, DataBase

More information

Database System Concepts and Architecture

Database System Concepts and Architecture 1 / 14 Data Models and Their Categories History of Data Models Schemas, Instances, and States Three-Schema Architecture Data Independence DBMS Languages and Interfaces Database System Utilities and Tools

More information

Database Applications (15-415)

Database Applications (15-415) Database Applications (15-415) The Entity Relationship Model Lecture 2, January 12, 2016 Mohammad Hammoud Today Last Session: Course overview and a brief introduction on databases and database systems

More information

What s a database anyway?

What s a database anyway? Lecture 1 Databases TDA357/DIT620 Pablo Picazo pablop@chalmers.se What s a database anyway? Structured Persistant Changable Digital A database is True to integrity constraints DBMS Database == Data collection

More information

CSE 544 Principles of Database Management Systems

CSE 544 Principles of Database Management Systems CSE 544 Principles of Database Management Systems Alvin Cheung Fall 2015 Lecture 5 - DBMS Architecture and Indexing 1 Announcements HW1 is due next Thursday How is it going? Projects: Proposals are due

More information

Dr. Angelika Reiser Chair for Database Systems (I3)

Dr. Angelika Reiser Chair for Database Systems (I3) Introduction Dr. Angelika Reiser Chair for Database Systems (I3) www-db.in.tum.de de TU München / Garching reiser@in.tum.de Lecture Web page of the lecture: see TUMonline www-db.in.tum.de/teaching/ws1617/dbsandere

More information

Course Introduction & Foundational Concepts

Course Introduction & Foundational Concepts Course Introduction & Foundational Concepts CPS 352: Database Systems Simon Miner Gordon College Last Revised: 8/30/12 Agenda Introductions Course Syllabus Databases Why What Terminology and Concepts Design

More information

Database Fundamentals Chapter 1

Database Fundamentals Chapter 1 Database Fundamentals Chapter 1 Class 01: Database Fundamentals 1 What is a Database? The ISO/ANSI SQL Standard does not contain a definition of the term database. In fact, the term is never mentioned

More information

Introduction Database Technology [DBTECO601]

Introduction Database Technology [DBTECO601] Introduction Database Technology [DBTECO601] Thomas D. Devine http://www.noucamp.org thomas.devine@lyit.ie September 8, 2008 1 Contents 1 Document Information 4 2 Introduction 4 3 Traditional File-Based

More information

CS317 File and Database Systems

CS317 File and Database Systems CS317 File and Database Systems http://dilbert.com/strips/comic/1995-10-11/ Lecture 5 More SQL and Intro to Stored Procedures September 24, 2017 Sam Siewert SQL Theory and Standards Completion of SQL in

More information

Introduction to Database Management Systems

Introduction to Database Management Systems Introduction to Database Management Systems Excerpt from Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 What Is a DBMS? A very large, integrated collection of data. Models real-world

More information

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be answered

More information

Announcements. Reading Material. Recap. Today 9/17/17. Storage (contd. from Lecture 6)

Announcements. Reading Material. Recap. Today 9/17/17. Storage (contd. from Lecture 6) CompSci 16 Intensive Computing Systems Lecture 7 Storage and Index Instructor: Sudeepa Roy Announcements HW1 deadline this week: Due on 09/21 (Thurs), 11: pm, no late days Project proposal deadline: Preliminary

More information

Lecture 02. Fall 2017 Borough of Manhattan Community College

Lecture 02. Fall 2017 Borough of Manhattan Community College Lecture 02 Fall 2017 Borough of Manhattan Community College 1 2 Introduction A major aim of a database system is to provide users with an abstract view of data, hiding certain details of how data is stored

More information

Database Systems and Modern CPU Architecture

Database Systems and Modern CPU Architecture Database Systems and Modern CPU Architecture Prof. Dr. Torsten Grust Winter Term 2006/07 Hard Disk 2 RAM Administrativa Lecture hours (@ MI HS 2): Monday, 09:15 10:00 Tuesday, 14:15 15:45 No lectures on

More information

Data! CS 133: Databases. Goals for Today. So, what is a database? What is a database anyway? From the textbook:

Data! CS 133: Databases. Goals for Today. So, what is a database? What is a database anyway? From the textbook: CS 133: Databases Fall 2018 Lec 01 09/04 Introduction & Relational Model Data! Need systems to Data is everywhere Banking, airline reservations manage the data Social media, clicking anything on the internet

More information

Part I What are Databases?

Part I What are Databases? Part I 1 Overview & Motivation 2 Architectures 3 Areas of Application 4 History Saake Database Concepts Last Edited: April 2019 1 1 Educational Objective for Today... Motivation for using database systems

More information

Chapter 1 Chapter-1

Chapter 1 Chapter-1 Chapter 1 Chapter-1 Data: Data are the raw facts that can be obtained after some experiments or observations. Raw data is of no use until and unless we process it to find some useful information form it.

More information

Chapter 18: Parallel Databases

Chapter 18: Parallel Databases Chapter 18: Parallel Databases Introduction Parallel machines are becoming quite common and affordable Prices of microprocessors, memory and disks have dropped sharply Recent desktop computers feature

More information

Page 1. Quiz 18.1: Flow-Control" Goals for Today" Quiz 18.1: Flow-Control" CS162 Operating Systems and Systems Programming Lecture 18 Transactions"

Page 1. Quiz 18.1: Flow-Control Goals for Today Quiz 18.1: Flow-Control CS162 Operating Systems and Systems Programming Lecture 18 Transactions Quiz 18.1: Flow-Control" CS162 Operating Systems and Systems Programming Lecture 18 Transactions" April 8, 2013 Anthony D. Joseph http://inst.eecs.berkeley.edu/~cs162 Q1: True _ False _ Flow control is

More information

Introduction to Data Management. Lecture #2 (Big Picture, Cont.) Instructor: Chen Li

Introduction to Data Management. Lecture #2 (Big Picture, Cont.) Instructor: Chen Li Introduction to Data Management Lecture #2 (Big Picture, Cont.) Instructor: Chen Li 1 Announcements v We added 10 more seats to the class for students on the waiting list v Deadline to drop the class:

More information

CS 245: Database System Principles

CS 245: Database System Principles CS 245: Database System Principles Notes 01: Introduction Peter Bailis CS 245 Notes 1 1 This course pioneered by Hector Garcia-Molina All credit due to Hector All mistakes due to Peter CS 245 Notes 1 2

More information