Chapter 1: Introduction
|
|
- Iris Ball
- 5 years ago
- Views:
Transcription
1 Chapter 1: Introduction Chapter 2: Intro. To the Relational Model Database System Concepts, 6 th Ed. See for conditions on re-use
2 Database Management System (DBMS) DBMS is Collection of interrelated data, a.k.a. database (DB for short) Set of programs to access the data: Find individual data items or sets Data mining: Find patterns! (Ch.20) Modify Cleaning examples Insert + Delete 1.2
3 1.1 Examples of DB Applications Banking: transactions Airlines: reservations, schedules Universities: registration, grades Sales: customers, products, purchases Online retailers: order tracking, customized recommendations Manufacturing: production, inventory, orders, supply chain Human resources: employee records, salaries, tax deductions 1.3
4 Today s databases can be very large There are dozens of companies today with DBs in the 100 PB (petabyte) range. The LHC at CERN produces about 25 PB of data every year, for an estimated 300 PB total so far. Hurray for the Higgs boson! Facebook had about 300 PB in 2014, and its users are producing about 84 PB a year. 1.4
5 Robotic data tape storage library at one of the CERN-LHC Tier 1 centers Source: 1.5
6 Database Source: System Concepts - 6 th Edition 1.6
7 The University DB example used in our text Stores info about: Instructors Students Departments Course offerings Application program examples: Add new students, instructors, and courses Register students for courses, generate class rosters Assign grades to students, compute GPAs Generate transcripts 1.7
8 Before DBMSs existed, DB applications were built directly on top of file systems The system stores permanent records in various files If a new dept. is created, then a new file is needed, to store info about all the instructors in that dept. Application programs extract records from, and add records to, the appropriate files. Application programs are also needed to enforce the various rules (constraints), e.g. a student cannot take more than 6 courses at the same time. 1.8
9 Drawbacks of using file systems Data redundancy and inconsistency Multiple file formats, duplication of information in different files Difficulty in accessing data Need to write a new program to carry out each new task Data isolation multiple files and formats Integrity problems Integrity constraints (e.g., account balance > 0) become buried in program code rather than being stated explicitly Hard to add new constraints or change existing ones 1.9
10 Drawbacks of using file systems (cont.) Atomicity of updates Failures may leave database in an inconsistent state with partial updates carried out Example: Transfer of funds from one account to another should either complete or not happen at all Concurrent access by multiple users Concurrent access needed for performance Uncontrolled concurrent accesses can lead to inconsistencies Example: Two people reading a balance (say $100) and updating it by withdrawing money (say $50 each) at the same time. Security problems Hard to provide user access to some, but not all, data 1.10
11 Drawbacks of using file systems - Conclusion Redundancy Inconsistency Difficulty of access Isolation Integrity Try to remember 3 of these! Atomicity Concurrency Security DBMSs offer solutions to all the above problems! 1.11
12 Not in text 2.0 Mathematical Concept of Relation Example relations between the same two sets of objects Source:
13 Not in text Mathematical Concept of Relation Extreme cases: The empty relation and the total relation a d a d b e b e c f c f Source:
14 Not in text Mathematical Concept of Relation Food for thought: How many different relations exist between these two sets of elements? a b c d e f Source:
15 Not in text Mathematical Concept of Relation In a Relational DB, the relation is represented by a table Source:
16 QUIZ: Draw the tables corresponding to the relations b, c, and d Source:
17 2.1 Relations and Tables attributes (or columns) tuples (or rows) These are called 4-tuples 1.17
18 QUIZ The IDs have 5 digits, the names are strings of 20 characters, the dept. names are chosen from a set of 50, and the salaries are integers with 6 digits. How many different tuples can there be? 1.18
19 Attribute Types The set of allowed values for each attribute is called the domain of the attribute. Attribute values are (normally) required to be atomic; that is, indivisible. The special value null is a member of every domain. The null value causes complications in the definition of many operations. 1.19
20 2.2 Relation Schema and Instance A 1, A 2,, A n are attributes R = (A 1, A 2,, A n ) is a relation schema Example: instructor = (ID, name, dept_name, salary) Formally, given sets D 1, D 2,. D n a relation r is a subset of the Cartesian product D 1 x D 2 x x D n Thus, a relation is a set of n-tuples (a 1, a 2,, a n ) where each a i D i The current values (relation instance) of a relation are specified by a table An element t of r is a tuple, represented by a row in a table 1.20
21 Relations are Unordered! The order of tuples is irrelevant (so tuples may be stored in arbitrary order!) Example: instructor relation with unordered tuples 1.21
22 We have covered the following textbook sections: 1.1, 1.2, 2.1, 2.2 See you at 2:40 in the lab! SCIENCE EOL 1
23 QUIZ What is the difference between a Database (DB) and a Database Management System (DBMS)? How was data stored and managed before the introduction of DB technology? Briefly outline three problems with the method above. 1.23
24 QUIZ What is the difference between a relation and a table? Explain the following DB concepts: Domain Atomic Null 1.24
25 QUIZ Are these different relations/tables? No, b/c relations are by definition unordered! 1.25
26 1.3 View of Data We use abstraction to manage any complex system. Catalog, tables, functions, Files, hard-disk blocks 1.26
27 Who uses these levels? DB user (e.g. Registrar s office clerk) DB Admin straddles the levels DB programmer (e.g. the person who loads data into the DB) DBMS developer (e.g. Oracle, Teradata) 1.27
28 Instances and Schemas Schema the logical structure of the database Example: The database consists of information about a set of customers and accounts and the relationship between them Analogous to the type of a variable in programming (e.g. array of characters) Physical schema: database design at the physical level Logical schema: database design at the logical level Instance the actual content of the database at a particular point in time Analogous to the value of a variable (e.g. Hello, world! ) 1.28
29 Physical Data Independence = the ability to modify the physical schema without changing the logical schema This is an example of modularity! Applications depend on the logical schema In general, the interfaces between the various levels and components should be well defined so that changes in some parts do not seriously influence others. 1.29
30 Data model = collection of conceptual tools for describing Data Data relationships Data semantics (e.g. constraints) Relational Entity-Relationship (E-R) model (mainly for DB design) Object-based: encapsulation, methods, inheritance (Objectoriented and Object-relational) Semistructured: a type does not necessarily mean the same set of attributes! (XML) Other older models: Network Hierarchical 1.30
31 1.4 and 1.5 DB Languages Data Manipulation Language (DML) For accessing and manipulating the data A.k.a. query language Two classes of languages Procedural user specifies what data is required and how to get those data Declarative (nonprocedural!) user specifies what is required without specifying how to do it SQL is the most widely used query language and declarative. 1.31
32 SQL example: Find the name of the instructor with ID select name from instructor where instructor.id =
33 SQL example: Find the ID and building of instructors in the Physics dept. select instructor.id, department.building from instructor, department where instructor.dept_name = department.dept_name and department.dept_name = Physics 1.33
34 SQL Queries in a nutshell: select from where 1.34
35 QUIZ: SQL Write a query to find the building where the instructor with ID works 1.35
36 QUIZ: SQL Write a query to find the building where the instructor with ID works select department.building from instructor, department where instructor.dept_name = department.dept_name and instructor.id =
37 QUIZ: SQL Find the name of all instructors in the Comp. Sci. dept. 1.37
38 QUIZ: SQL Find the name of all instructors in the Comp. Sci. dept. who make more than $80,
39 QUIZ: SQL Find the name of instructors who work in a dept. with a budget over $ 100,
40 SQL Application programs generally access databases through one of Language extensions to allow embedded SQL Application program interface (e.g., ODBC/JDBC) which allow SQL queries to be sent to a database (Chapters 3, 4 and 5) 1.40
41 Data Definition Language (DDL) Specification notation for defining the database schema Example: create table instructor ( ID char(5), name varchar(20), dept_name varchar(20), salary numeric(8,2)) DDL compiler generates a set of table templates stored in a data dictionary Data dictionary contains metadata (i.e., data about data) Database schema Integrity constraints Primary key (ID uniquely identifies instructors) Referential integrity (references constraint in SQL) e.g. dept_name value in any instructor tuple must appear in department relation Authorization 1.41 EoL
42 QUIZ: SQL Write SQL DDL code to create a table named account, with two columns: Account number, which is a string of 10 characters Balance, which is an integer 1.42
43 QUIZ: SQL Write SQL DDL code to create a table named account, with two columns: Account number, which is a string of 10 characters Balance, which is an integer create table account (account_number char(10), balance integer) 1.43
44 1.6.4 Database design Database = multiple relations Information about an enterprise is broken up into parts (relations) instructor, department, student, advisor, etc. Bad design: place all information in one huge table, e.g. 1.44
45 Database design Bad design: all information in one huge table results in repetition of information (e.g., two students have the same instructor) the need for null values (e.g., represent an student with no advisor) problems when updating the table Normalization theory (Chapter 7) deals with how to design good relations. 1.45
46 Lets break the big table, then! Do you see a problem with this DB? 1.46
47 The correct solution preserves the connections in the data! 1.47
48 Remember: 2.3 Keys Relations are sets of tuples (tables are sets of rows). Mathematical sets cannot, by definition, have duplicates. Therefore, no two tuples in a relation can have exactly the same attributes. 1.48
49 Is this a valid table? QUIZ Keys 1.49
50 2.3 Keys No two tuples in a relation can have exactly the same attributes. If we look at all columns of the table, the combinations of values in them are unique, but Question: Can we find a smaller set of attributes whose combination is unique for the given relation/table? 1.50
51 QUIZ Keys What is the smallest key for this table? 1.51
52 QUIZ Keys What is the smallest key for this table? A B C A1 B1 C1 A2 B1 C2 A2 B1 C3 A3 B2 C2 A4 B2 C1 A5 B3 C4 1.52
53 Mathematical Notations for Keys K is a subset of the attributes of R: K R K is a superkey of R if values for K are sufficient to identify a unique tuple of each possible relation r(r) Example: {ID} and {ID,name} are both superkeys of instructor. Superkey K is a candidate key if K is minimal Example: {ID} is a candidate key for Instructor One of the candidate keys is selected to be the primary key. Which one? Depends on application. 1.53
54 Schema diagram for University DB: Look at the keys in each table! 1.54
55 Individual work (try to solve before the next class) End-of-chapter exercises 1.1, 1.4, 1.8, , 2.3,
56 We have covered the following textbook sections: 1.3, 1.4, 1.5, 1.6.4, 2.3 See you at 2:40 in the lab! SCIENCE EOL 2
57 QUIZ What are the data models we mentioned? Relational Entity-Relationship (E-R) Object-based: Object-oriented and Object-relational Semistructured: a type does not necessarily mean the same set of attributes! (e.g. XML, JSON) Older models: Network Hierarchical 1.57
58 QUIZ What are the two extreme cases of structuring of a DB into tables/relations? Why is either one bad? Name two major players in the DBMS market. 1.58
59 QUIZ: SQL Is SQL a procedural language? Explain. Is SQL a DML or a DDL? Explain. 1.59
60 QUIZ SQL Write (Postgre)SQL commands to do the following: Create a new database electronics Create a table circuits in electronics, with two columns: Name of chip (e.g. 74LS04) Type of gates (e.g. NOT) Nr. of gates on a chip (e.g. 6) Delete the whole table Delete the whole database 1.60
61 CREATE DATABASE electronics; \connect electronics CREATE TABLE circuits ( name varchar(15), type varchar(10), nr_gates integer ); DROP TABLE circuits; \connect postgres DROP DATABASE electronics; Must connect to DB to create table! Cannot drop the DB we are connected to! 1.61
62 QUIZ: Keys 1.62
63 QUIZ: Keys Practice Exercise 2.1 Consider the following relational DB: Employee(person_name, street, city) Works(person_name, company_name, salary) Company(company_name, city) What are the appropriate primary keys? 1.63
64 1.6.1 The DB design process 1. A high-level data model (e.g. the E-R model, see below) is chosen as a conceptual framework to specify the requirements DB designer interacts with users (a.k.a. domain experts) Outcome is a (complete) specification of user requirements 2. A data model (e.g. the relational model) is chosen 3. Conceptual design: DB designer translates user requirements into conceptual schema for the model chosen What attributes to represent in the DB How to group attributes into tables In the language of section 1.3.2, conceptual schema comes before logical schema! 1.64
65 1.6.1 The DB design process 3. Conceptual design: DB designer translates user requirements into conceptual schema for the model chosen Functional requirements = what kind of operations must be performed on the data 4. Logical design The result is the logical schema of the DB (e.g. SQL DDL) 5. Physical design The result is the physical schema of the DB (e.g. files, disk arrays, SAN) 1.65
66 1.6.2 Example: DB design for the University DB Read and understand! See also Appendix A! 1.66
67 1.6.3 The E-R model Detailed coverage to follow in Ch
68 SKIP Sections 1.7 through 1.12 READ and TAKE NOTES: 1.13 History of DB Systems 1.68
69 2.3 (contd.) Using Keys to Connect Different Relations/Tables Foreign key constraint: Value in one table must appear in another Referencing table (source) Referenced table (destination) Example: instructor.dept_name is a foreign key in instructor. It references department.dept_name Important: foreign keys are not keys! (not unique) 1.69
70 Practice Exercise 2.2 Give an example of tuple insert and an example of tuple delete that would cause violations of the FK constraint. QUIZ: Foreign Keys 1.70
71 2.4 Schema diagrams 1.71
72 2.4 Schema diagrams An almost equivalent schema is this (What is missing?) 1.72
73 2.5 Relational Query Languages Very little new info. beyond Ch.1 Read! 1.73
74 2.5 Relational Operations 1.74
75 Relational Algebra: Selection of tuples (rows) Relation r Select tuples with A=B and D > 5 σ A=B and D > 5 (r) 1.75
76 Relational Algebra: Selection of Columns (Attributes) Relation r : Select A and C A.k.a. projection Π A, C (r) 1.76
77 QUIZ: Relational Algebra Write a relational algebra expression that returns those values of A that are associated with values of C in between 5 and 15 (inclusive). 1.77
78 Relational Algebra and SQL The selection operator σ is analogous to the SQL clause The projection operator P is analogous to the SQL clause 1.78
79 More Relational Algebra 1.79
80 Joining two relations Cartesian Product is the most general join Relations r, s: r x s: 1.80
81 Joining two relations Natural join is the most restrictive join Only attributes with the same name and type are matched! 1.81
82 Union of two relations Relations r, s: r s: 1.82
83 Set difference of two relations Relations r, s: r s: 1.83
84 Set Intersection of two relations Relation r, s: r s 1.84
85 Explain in words what these expressions do: Practice Exercise
86 QUIZ: Relational Algebra Explain in words what this relational algebra expression returns: 1.86
87 Individual work (try to solve before the next class) End-of-chapter Practice Exercises 2.3, 2.4,
88 Homework for Chs , 1.12, , 2.9, 2.13, 2.14, 2.15 Due next Tuesday, Jan.31 Hint: For the Bank database used in several exercises, you may use the schema provided on the next slide. 1.88
89 Schema for Bank database (fig.2.15) 1.89
90 Text sections covered: 1.1 through (History) Entire Ch EOL 3
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 informationChapter 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 informationDatabase 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 informationChapter 2: Intro to Relational Model
Chapter 2: Intro to Relational Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Example of a Relation attributes (or columns) tuples (or rows) 2.2 Attribute Types The
More informationDatabase 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 informationDatabase Principle. Zhuo Wang Spring
Database Principle Zhuo Wang zhuowang@sjtu.edu.cn 2017 Spring Overview Data Database Database Management System Database System References Database System Concepts Abraham Silberschatz, Henry F. Korth,
More informationChapter 1: Introduction
This image cannot currently be displayed. Chapter 1: Introduction Database System Concepts, 5th Ed. See www.db-book.com for conditions on re-use Chapter 1: Introduction Purpose of Database Systems View
More informationCourse 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 informationChapter 1: Introduction
Chapter 1: Introduction Slides are slightly modified by F. Dragan Database System Concepts, 5th Ed. See www.db-book.com for conditions on re-use Chapter 1: Introduction Purpose of Database Systems View
More informationChapter 1: Introduction. Chapter 1: Introduction
Chapter 1: Introduction Database System Concepts, 5th Ed. See www.db-book.com for conditions on re-use Chapter 1: Introduction Purpose of Database Systems View of Data Database Languages Relational Databases
More informationUNIT I. Introduction
UNIT I Introduction Objective To know the need for database system. To study about various data models. To understand the architecture of database system. To introduce Relational database system. Introduction
More informationChapter 1: Introduction
Chapter 1: Introduction Chapter 1: Introduction Purpose of Database Systems Database Languages Relational Databases Database Design Data Models Database Internals Database Users and Administrators Overall
More informationDatabase Management Systems (CPTR 312)
Database Management Systems (CPTR 312) Preliminaries Me: Raheel Ahmad Ph.D., Southern Illinois University M.S., University of Southern Mississippi B.S., Zakir Hussain College, India Contact: Science 116,
More informationDatabase System Concepts
s Design Chapter 1: Introduction Departamento de Engenharia Informática Instituto Superior Técnico 1 st Semester 2009/2010 Slides (fortemente) baseados nos slides oficiais do livro c Silberschatz, Korth
More informationUnit I. By Prof.Sushila Aghav MIT
Unit I By Prof.Sushila Aghav MIT Introduction The Need for Databases Data Models Relational Databases Database Design Storage Manager Query Processing Transaction Manager DBMS Applications DBMS contains
More informationCS425 Fall 2016 Boris Glavic Chapter 2: Intro to Relational Model
CS425 Fall 2016 Boris Glavic Chapter 2: Intro to Relational Model Modifies from: Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Textbook: Chapter 2 2.2 Example of a Relation
More informationChapter 2: Intro to Relational Model
Non è possibile visualizzare l'immagine. Chapter 2: Intro to Relational Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Example of a Relation attributes (or columns)
More informationD.Hemavathi & R.Venkatalakshmi, Assistant Professor, SRM University, Kattankulathur
DATABASE SYSTEMS IT 0303 5 TH Semester D.Hemavathi & R.Venkatalakshmi, Assistant Professor, SRM University, Kattankulathur School of Computing, Department of IT Unit 1: introduction 1 Disclaimer The contents
More informationChapter 2 Introduction to Relational Models
CMSC 461, Database Management Systems Spring 2018 Chapter 2 Introduction to Relational Models These slides are based on Database System Concepts book and slides, 6th edition, and the 2009 CMSC 461 slides
More informationUnit1: Introduction. Database System Concepts, 6 th Ed. Silberschatz, Korth and Sudarshan See for conditions on re-use
Unit1: Introduction Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Outline Introduction to Database Management Systems, Purpose of Database Systems, Database-System Applications,
More informationB.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 informationCS34800 Information Systems. Course Overview Prof. Walid Aref January 8, 2018
CS34800 Information Systems Course Overview Prof. Walid Aref January 8, 2018 1 Why this Course? Managing Data is one of the primary uses of computers This course covers the foundations of organized data
More informationChapter 2: Relational Model
Chapter 2: Relational Model Database System Concepts, 5 th Ed. See www.db-book.com for conditions on re-use Chapter 2: Relational Model Structure of Relational Databases Fundamental Relational-Algebra-Operations
More informationCOMP Instructor: Dimitris Papadias WWW page:
COMP 5311 Instructor: Dimitris Papadias WWW page: http://www.cse.ust.hk/~dimitris/5311/5311.html Textbook Database System Concepts, A. Silberschatz, H. Korth, and S. Sudarshan. Reference Database Management
More informationExplain in words what this relational algebra expression returns:
QUIZ: Relational Algebra Explain in words what this relational algebra expression returns: A: The names of all customers who have accounts at both the Downtown and uptown branches 3.1 Practice Exercise
More informationChapter 3: Introduction to SQL
Chapter 3: Introduction to SQL Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 3: Introduction to SQL Overview of the SQL Query Language Data Definition Basic Query
More informationCSE 132A. Database Systems Principles
CSE 132A Database Systems Principles Prof. Victor Vianu 1 Data Management An evolving, expanding field: Classical stand-alone databases (Oracle, DB2, SQL Server) Computer science is becoming data-centric:
More informationChapter 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 informationUpon completion of this Unit, the students will be introduced to the following
Instructional Objectives Upon completion of this Unit, the students will be introduced to the following The meaning of the term database. Meaning of the term Database Management System (DBMS). The typical
More informationCS275 Intro to Databases
CS275 Intro to Databases The Relational Data Model Chap. 3 How Is Data Retrieved and Manipulated? Queries Data manipulation language (DML) Retrieval Add Delete Update An Example UNIVERSITY database Information
More informationDATABASE 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 informationCMPT 354 Database Systems I. Spring 2012 Instructor: Hassan Khosravi
CMPT 354 Database Systems I Spring 2012 Instructor: Hassan Khosravi Textbook First Course in Database Systems, 3 rd Edition. Jeffry Ullman and Jennifer Widom Other text books Ramakrishnan SILBERSCHATZ
More informationChapter 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 informationChapter 3: Introduction to SQL
Chapter 3: Introduction to SQL Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 3: Introduction to SQL Overview of the SQL Query Language Data Definition Basic Query
More informationMahathma Gandhi University
Mahathma Gandhi University BSc Computer science III Semester BCS 303 OBJECTIVE TYPE QUESTIONS Choose the correct or best alternative in the following: Q.1 In the relational modes, cardinality is termed
More informationCOMP.3090/3100 Database I & II. Textbook
COMP.3090/3100 Database I & II Slides adapted from http://infolab.stanford.edu/~ullman/fcdb.html Prof. Cindy Chen cchen@cs.uml.edu September 7, 2017 Textbook Required: First Course in Database Systems,
More informationThe Relational Model
The Relational Model What is the Relational Model Relations Domain Constraints SQL Integrity Constraints Translating an ER diagram to the Relational Model and SQL Views A relational database consists
More informationQUIZ: Is either set of attributes a superkey? A candidate key? Source:
QUIZ: Is either set of attributes a superkey? A candidate key? Source: http://courses.cs.washington.edu/courses/cse444/06wi/lectures/lecture09.pdf 10.1 QUIZ: MVD What MVDs can you spot in this table? Source:
More informationDatabase 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 informationBasant Group of Institution
Basant Group of Institution Visual Basic 6.0 Objective Question Q.1 In the relational modes, cardinality is termed as: (A) Number of tuples. (B) Number of attributes. (C) Number of tables. (D) Number of
More informationQuick 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 informationDatabase System Concepts, 5 th Ed.! Silberschatz, Korth and Sudarshan See for conditions on re-use "
Database System Concepts, 5 th Ed.! Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-use " Structure of Relational Databases! Fundamental Relational-Algebra-Operations! Additional
More informationThe Relational Model Constraints and SQL DDL
The Relational Model Constraints and SQL DDL Week 2-3 Weeks 2-3 MIE253-Consens 1 Schedule Week Date Lecture Topic 1 Jan 9 Introduction to Data Management 2 Jan 16 The Relational Model 3 Jan. 23 Constraints
More informationInformation Systems and Software Systems Engineering (12CFU)
Information Systems and Software Systems Engineering (12CFU) The course is organized in two sections addressing different issues in the design of software systems. Information Systems (6CFU) Software Systems
More informationWho, where, when. Database Management Systems (LIX022B05) Literature. Evaluation. Lab Sessions. About this course. After this course...
Who, where, when base Management Systems (LIX022B05) Instructor: Çağrı Çöltekin c.coltekin@rug.nl Information science/informatiekunde Fall 2012 Course bases (LIX022B05) 2012/13 Instructor Çağrı Çöltekin
More informationIntroduction to Relational Databases. Introduction to Relational Databases cont: Introduction to Relational Databases cont: Relational Data structure
Databases databases Terminology of relational model Properties of database relations. Relational Keys. Meaning of entity integrity and referential integrity. Purpose and advantages of views. The relational
More informationCS121 MIDTERM REVIEW. CS121: Relational Databases Fall 2017 Lecture 13
CS121 MIDTERM REVIEW CS121: Relational Databases Fall 2017 Lecture 13 2 Before We Start Midterm Overview 3 6 hours, multiple sittings Open book, open notes, open lecture slides No collaboration Possible
More informationThe DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.
Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting
More informationUnit 3 : Relational Database Design
Unit 3 : Relational Database Design Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Content Relational Model: Basic concepts, Attributes and Domains, CODD's Rules, Relational
More informationJohn 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 informationThe SQL data-definition language (DDL) allows defining :
Introduction to SQL Introduction to SQL Overview of the SQL Query Language Data Definition Basic Query Structure Additional Basic Operations Set Operations Null Values Aggregate Functions Nested Subqueries
More informationCS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010
CS403- Database Management Systems Solved MCQS From Midterm Papers April 29,2012 MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01 CS403- Database Management Systems MIDTERM EXAMINATION - Spring
More informationCS143: Relational Model
CS143: Relational Model Book Chapters (4th) Chapters 1.3-5, 3.1, 4.11 (5th) Chapters 1.3-7, 2.1, 3.1-2, 4.1 (6th) Chapters 1.3-6, 2.105, 3.1-2, 4.5 Things to Learn Data model Relational model Database
More informationCS 377 Database Systems
CS 377 Database Systems Relational Data Model Li Xiong Department of Mathematics and Computer Science Emory University 1 Outline Relational Model Concepts Relational Model Constraints Relational Database
More informationIntroduction CHAPTER. 1.1 Database-System Applications
CHAPTER 1 Introduction A database-management system (DBMS) is a collection of interrelated data and a set of programs to access those data. The collection of data, usually referred to as the database,
More informationChapter 2: Relational Model
Chapter 2: Relational Model Database System Concepts, 5 th Ed. See www.db-book.com for conditions on re-use Chapter 2: Relational Model Structure of Relational Databases Fundamental Relational-Algebra-Operations
More informationComp 5311 Database Management Systems. 2. Relational Model and Algebra
Comp 5311 Database Management Systems 2. Relational Model and Algebra 1 Basic Concepts of the Relational Model Entities and relationships of the E-R model are stored in tables also called relations (not
More informationCOSC344 Database Theory and Applications. σ a= c (P) Lecture 3 The Relational Data. Model. π A, COSC344 Lecture 3 1
COSC344 Database Theory and Applications σ a= c (P) S P Lecture 3 The Relational Data π A, C (H) Model COSC344 Lecture 3 1 Overview Last Lecture Database design ER modelling This Lecture Relational model
More informationRelational Model. Nisa ul Hafidhoh
Relational Model Nisa ul Hafidhoh nisa@dsn.dinus.ac.id Data Model Collection of conceptual tools for describing data, data relationships, data semantics, and consistency constraints Example of Data Model
More informationCISC 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 informationIntroduction Database Concepts
Introduction Database Concepts CO attained : CO1 Hours Required: 05 Self Study: 08 Prepared and presented by : Ms. Swati Abhang Contents Introduction Characteristics of databases, File system V/s Database
More informationChapter 4. The Relational Model
Chapter 4 The Relational Model Chapter 4 - Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations and relations in the relational model.
More informationCPS510 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; 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 informationChapter 6 Formal Relational Query Languages
CMSC 461, Database Management Systems Spring 2018 Chapter 6 Formal Relational Query Languages These slides are based on Database System Concepts book and slides, 6th edition, and the 2009/2012 CMSC 461
More informationData about data is database Select correct option: True False Partially True None of the Above
Within a table, each primary key value. is a minimal super key is always the first field in each table must be numeric must be unique Foreign Key is A field in a table that matches a key field in another
More informationCSCB20. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017
CSCB20 Introduction to Database and Web Application Programming Anna Bretscher Winter 2017 Welcome to CSCB20 Course Description: A practical introduction to databases and Web app development. Databases:
More informationData! 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 informationCAS 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 informationDatabase Applications (15-415)
Database Applications (15-415) The Relational Model Lecture 3, January 18, 2015 Mohammad Hammoud Today Last Session: The entity relationship (ER) model Today s Session: ER model (Cont d): conceptual design
More informationThe Relational Model. Why Study the Relational Model? Relational Database: Definitions
The Relational Model Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Microsoft, Oracle, Sybase, etc. Legacy systems in
More informationCIS 330: Applied Database Systems. ER to Relational Relational Algebra
CIS 330: Applied Database Systems ER to Relational Relational Algebra 1 Logical DB Design: ER to Relational Entity sets to tables: ssn name Employees lot CREATE TABLE Employees (ssn CHAR(11), name CHAR(20),
More informationRelational Data Model
Relational Data Model 1. Relational data model Information models try to put the real-world information complexity in a framework that can be easily understood. Data models must capture data structure
More informationMidterm Review. Winter Lecture 13
Midterm Review Winter 2006-2007 Lecture 13 Midterm Overview 3 hours, single sitting Topics: Relational model relations, keys, relational algebra expressions SQL DDL commands CREATE TABLE, CREATE VIEW Specifying
More informationCSIT5300: Advanced Database Systems
CSIT5300: Advanced Database Systems L02: Relational Data Model Dr. Kenneth LEUNG Department of Computer Science and Engineering The Hong Kong University of Science and Technology Hong Kong SAR, China kwtleung@cse.ust.hk
More informationWhy Study the Relational Model? The Relational Model. Relational Database: Definitions. The SQL Query Language. Relational Query Languages
Why Study the Relational Model? The Relational Model Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. Legacy systems in older models E.G., IBM s IMS Recent competitor: object-oriented
More informationCSCB20 Week 2. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017
CSCB20 Week 2 Introduction to Database and Web Application Programming Anna Bretscher Winter 2017 This Week Quick Review of terminology Relational Model Continued Relational diagrams Relational operations
More informationECE 650 Systems Programming & Engineering. Spring 2018
ECE 650 Systems Programming & Engineering Spring 2018 Relational Databases: Tuples, Tables, Schemas, Relational Algebra Tyler Bletsch Duke University Slides are adapted from Brian Rogers (Duke) Overview
More informationRelational model continued. Understanding how to use the relational model. Summary of board example: with Copies as weak entity
COS 597A: Principles of Database and Information Systems Relational model continued Understanding how to use the relational model 1 with as weak entity folded into folded into branches: (br_, librarian,
More informationTHE RELATIONAL DATABASE MODEL
THE RELATIONAL DATABASE MODEL Introduction to relational DB Basic Objects of relational model Properties of relation Representation of ER model to relation Keys Relational Integrity Rules Functional Dependencies
More informationReview for Exam 1 CS474 (Norton)
Review for Exam 1 CS474 (Norton) What is a Database? Properties of a database Stores data to derive information Data in a database is, in general: Integrated Shared Persistent Uses of Databases The Integrated
More informationCS 582 Database Management Systems II
Review of SQL Basics SQL overview Several parts Data-definition language (DDL): insert, delete, modify schemas Data-manipulation language (DML): insert, delete, modify tuples Integrity View definition
More informationCSE 544 Principles of Database Management Systems
CSE 544 Principles of Database Management Systems Lecture 1 - Introduction and the Relational Model 1 Outline Introduction Class overview Why database management systems (DBMS)? The relational model 2
More informationLet s briefly review important EER inheritance concepts
Let s briefly review important EER inheritance concepts 1 is-a relationship Copyright (c) 2011 Pearson Education 2 Basic Constraints Partial / Disjoint: Single line / d in circle Each entity can be an
More informationITCS 3160 DATA BASE DESIGN AND IMPLEMENTATION
ITCS 3160 DATA BASE DESIGN AND IMPLEMENTATION JING YANG 2010 FALL Class 3: The Relational Data Model and Relational Database Constraints Outline 2 The Relational Data Model and Relational Database Constraints
More informationCS425 Fall 2017 Boris Glavic Chapter 5: Intermediate SQL
CS425 Fall 2017 Boris Glavic Chapter 5: Intermediate SQL modified from: Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 5: Intermediate SQL Views Transactions Integrity
More informationDatabase Systems Relational Model. A.R. Hurson 323 CS Building
Relational Model A.R. Hurson 323 CS Building Relational data model Database is represented by a set of tables (relations), in which a row (tuple) represents an entity (object, record) and a column corresponds
More informationIntroduction to DBMS
Introduction to DBMS Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Transaction Management Storage Management Database Administrator Database Users
More informationSYLLABUS (R15A0509) DATABASE MANAGEMENT SYSTEMS
SYLLABUS (R15A0509) DATABASE MANAGEMENT SYSTEMS Objectives: To Understand the basic concepts and the applications of database systems To Master the basics of SQL and construct queries using SQL To understand
More informationCOURSE OVERVIEW THE RELATIONAL MODEL. CS121: Relational Databases Fall 2017 Lecture 1
COURSE OVERVIEW THE RELATIONAL MODEL CS121: Relational Databases Fall 2017 Lecture 1 Course Overview 2 Introduction to relational database systems Theory and use of relational databases Focus on: The Relational
More informationDatabase Management System 9
Database Management System 9 School of Computer Engineering, KIIT University 9.1 Relational data model is the primary data model for commercial data- processing applications A relational database consists
More informationCOSC 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 informationRelational Database Systems Part 01. Karine Reis Ferreira
Relational Database Systems Part 01 Karine Reis Ferreira karine@dpi.inpe.br Aula da disciplina Computação Aplicada I (CAP 241) 2016 Database System Database: is a collection of related data. represents
More informationCOURSE OVERVIEW THE RELATIONAL MODEL. CS121: Introduction to Relational Database Systems Fall 2016 Lecture 1
COURSE OVERVIEW THE RELATIONAL MODEL CS121: Introduction to Relational Database Systems Fall 2016 Lecture 1 Course Overview 2 Introduction to relational database systems Theory and use of relational databases
More informationBIS 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 informationMIS 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 informationChapter 4: Intermediate SQL
Chapter 4: Intermediate SQL Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use 4.1 Join Expressions Let s first review the joins from ch.3 4.2 1 SELECT * FROM student, takes
More informationThe Relational Model. Chapter 3. Comp 521 Files and Databases Fall
The Relational Model Chapter 3 Comp 521 Files and Databases Fall 2014 1 Why the Relational Model? Most widely used model by industry. IBM, Informix, Microsoft, Oracle, Sybase, MySQL, Postgres, Sqlite,
More informationRelational Model History. COSC 304 Introduction to Database Systems. Relational Model and Algebra. Relational Model Definitions.
COSC 304 Introduction to Database Systems Relational Model and Algebra Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Relational Model History The relational model was
More informationIntroduction: 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