CPSC-608 Database Systems

Slides:



Advertisements
Similar presentations
Chapter 12 File Processing and Data Management Concepts
Advertisements

Chapter 3 : Relational Model
Database Systems: Design, Implementation, and Management Tenth Edition
CPSC 310/6031 CPSC 310 Database Systems CPSC 603 Database Systems and Applications Prof. Jennifer Welch.
CPSC-608 Database Systems Fall 2009 Instructor: Jianer Chen Office: HRBB 309B Phone: Notes #2.
CPSC-608 Database Systems Fall 2011 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes #6.
CPSC-608 Database Systems Fall 2011 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes #4.
CPSC-608 Database Systems Fall 2011 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes #13.
CPSC-608 Database Systems Fall 2011 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes #9.
CPSC-608 Database Systems Fall 2011 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes #14.
CPSC-608 Database Systems Fall 2010 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes 1.
CPSC-608 Database Systems Fall 2010 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes #6.
CPSC-608 Database Systems Fall 2011 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes 1.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Introduction to Accounting Information Systems
1 DATABASES & DATABASE MANAGEMENT SYSTEMS (DBMS). MS ACCESS What is a database Database terms DB constructing stages DB models Relational model Normal.
Database Technical Session By: Prof. Adarsh Patel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Storing Organizational Information - Databases
1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Fundamental of Database Systems
CPSC-310 Database Systems
Scholastic Dishonesty
Databases and DBMSs Todd S. Bacastow January
CPSC 603 Database Systems Lecturer: Laurie Webster II, Ph.D., P.E.
CS 325 Spring ‘09 Chapter 1 Goals:
Introduction to DBMS Purpose of Database Systems View of Data
Intro to MIS – MGS351 Databases and Data Warehouses
Databases Chapter 16.
Database Management System
Introduction to Databases
CPSC-608 Database Systems
Data Resource Management
Introduction to Databases
CPSC-310 Database Systems
Appendix D: Network Model
Database Management  .
Databases and Data Warehouses Chapter 3
Databases and Information Management
Chapter 2 Database Environment Pearson Education © 2009.
Introduction to Database Management System
Introduction to Database Systems
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Database.
Introduction to Databases
Data Model.
Introduction to DBMS Purpose of Database Systems View of Data
Introduction to Databases
Chapter 2 Database Environment Pearson Education © 2014.
Scholastic Dishonesty
CPSC-608 Database Systems
CPSC-608 Database Systems
CPSC-608 Database Systems
CPSC-608 Database Systems
CPSC-608 Database Systems
CPSC-608 Database Systems
CPSC-608 Database Systems
CPSC-608 Database Systems
CPSC-608 Database Systems
Chapter 2 Database Environment Pearson Education © 2009.
CPSC-608 Database Systems
Chapter 2 Database Environment Pearson Education © 2009.
The Relational Data Model
CPSC-608 Database Systems
Presentation transcript:

CPSC-608 Database Systems Fall 2018 Instructor: Jianer Chen Office: HRBB 315C Phone: 845-4259 Email: chen@cse.tamu.edu Notes 2

Undergraduate Database A Quick Review on Undergraduate Database

Database is just another model of information processing (in disks) Then why study DB? Much more data, regular data techs would be very inefficient: How should data be stored? Operations are simpler & more specific: How do we take advantage of it? New programming languages for the above. (ACID) Reliability, security, consistency, currency π, σ, ρ, ∩, ⋃, \, ╳, ⋈, ⋈C SQL

Database is just another model of information processing (in disks) Then why study DB? Much more data, regular data techs would be very inefficient: How should data be stored? Operations are simpler & more specific: How do we take advantage of it? New programming languages for the above. (ACID) Reliability, security, consistency, currency π, σ, ρ, ∩, ⋃, \, ╳, ⋈, ⋈C SQL

How Should Data be Stored? Large volume: cannot fit in memory, thus in general stored in disks;

How Should Data be Stored? Large volume: cannot fit in memory, thus in general stored in disks; Regular files are not organized enough;

How Should Data be Stored? Large volume: cannot fit in memory, thus in general stored in disks; Regular files are not organized enough; Hierarchical structure and network structure were considered, but became less popular;

How Should Data be Stored? Large volume: cannot fit in memory, thus in general stored in disks; Regular files are not organized enough; Hierarchical structure and network structure were considered, but became less popular; Table structures (2-dimensional arrays) are currently the most popular model (relational model);

How is Information Represented? How can everything be given by tables?

How is Information Represented? How can everything be given by tables? Well, information consists of objects/items and relationships among items;

How is Information Represented? How can everything be given by tables? Well, information consists of objects/items and relationships among items; An item has certain properties, which can be listed in a row. Thus, a collection of similar items can be given as a table, one row for an item;

How is Information Represented? How can everything be given by tables? Well, information consists of objects/items and relationships among items; An item has certain properties, which can be listed in a row. Thus, a collection of similar items can be given as a table, one row for an item; A relationship can be given by listing each item group that satisfies the relationship;

How is Information Represented? How can everything be given by tables? Well, information consists of objects/items and relationships among items; An item has certain properties, which can be listed in a row. Thus, a collection of similar items can be given as a table, one row for an item; A relationship can be given by listing each item group that satisfies the relationship; High-level representation of information (E-R Diagram: read Chapter 4)

Table structures (terminologies) Information is stored in tables (≡ relations); Each column of a table is an attribute, with an attribute name;

Table structures (terminologies) Information is stored in tables (≡ relations); Each column of a table is an attribute, with an attribute name; A database is a collection of relations;

Table structures (terminologies) Information is stored in tables (≡ relations); Each column of a table is an attribute, with an attribute name; A database is a collection of relations; An example table (Account): Account No. Balance Type 12345 20,520 checking 23456 1,000,000 CD 34567 26 savings 45678 7,023

Table structures (terminologies) A relation schema gives the name of the relation and its attributes;

Table structures (terminologies) A relation schema gives the name of the relation and its attributes; A database schema gives the schemas for all relations in the database;

Table structures (terminologies) A relation schema gives the name of the relation and its attributes; A database schema gives the schemas for all relations in the database; Schemas affects how the data is stored;

Table structures (terminologies) A relation schema gives the name of the relation and its attributes; A database schema gives the schemas for all relations in the database; Schemas affects how the data is stored; Database schemas are given and altered using data definition language (DDL);

Table structures (terminologies) A relation schema gives the name of the relation and its attributes; A database schema gives the schemas for all relations in the database; Schemas affects how the data is stored; Database schemas are given and altered using data definition language (DDL); Only database administrator can use DDL.

What is a good DB schema?

What is a good DB schema? What is a good table structure? Fat or thin?

What is a good DB schema? What is a good table structure? Fat or thin? More important: how can tables guarantee information consistency?

What is a good DB schema? What is a good table structure? Fat or thin? More important: how can tables guarantee information consistency? There is a beautiful theory (functional dependency) for constructing a good database schema;

What is a good DB schema? What is a good table structure? Fat or thin? More important: how can tables guarantee information consistency? There is a beautiful theory (functional dependency) for constructing a good database schema; Read Chapter 3.

Database is just another model of information processing (in disks) Then why study DB? Much more data, regular data techs would be very inefficient: How should data be stored? Operations are simpler & more specific: How do we take advantage of it? New programming languages for the above. (ACID) Reliability, security, consistency, currency π, σ, ρ, ∩, ⋃, \, ╳, ⋈, ⋈C SQL