Scholastic Dishonesty As commonly defined, plagiarism consists of passing off as ones own the ideas, work, writings, etc., that belong to another. In accordance with this definition, you are committing plagiarism if you copy the work of another person and turn it in as your own, even if you have the permission of the person. Plagiarism is one of the worst academic sins, for the plagiarist destroys the trust among colleagues without which research cannot be safely communicated. If you have questions regarding plagiarism, please consult the latest issue of the Texas A&M University Student Rules [http://studentrules.tamu.edu/rule20.htm], under the section Academic Misconduct. Academic Integrity Statement “An Aggie does not lie, cheat, or steal or tolerate those who do.“ Upon accepting admission to Texas A&M University, a student immediately assumes a commitment to uphold the Honor Code, to accept responsibility for learning and to follow the philosophy and rules of the Honor System. Students will be required to state their commitment on examinations, research papers, and other academic work. Ignorance of the rules does not exclude any member of the Texas A&M University community from the requirements or the processes of the Honor System. For additional information please visit: http://www.tamu.edu/aggiehonor. On all course work, assignments, and examinations at Texas A&M University, the following Honor Pledge shall be preprinted and signed by the student: “On my honor, as an Aggie, I have neither given nor received unauthorized aid on this academic work."
CPSC-608 Database Systems Fall 2018 Instructor: Jianer Chen Office: HRBB 315C Phone: 845-4259 Email: chen@cse.tamu.edu Notes 1
What is a Database System? Notes 1
What is a Database System? A database is an organized collection of data. It is the collection of schemas, tables, queries, reports, views, and other objects. Notes 1
What is a Database System? A database is an organized collection of data. It is the collection of schemas, tables, queries, reports, views, and other objects. A database management system (DBMS) is a computer software application that interacts with the user, other applications, and the database itself to capture and analyze data. Notes 1
What is a Database System? A database is an organized collection of data. It is the collection of schemas, tables, queries, reports, views, and other objects. A database management system (DBMS) is a computer software application that interacts with the user, other applications, and the database itself to capture and analyze data. Notes 1
Two parts about database
Two parts about database purpose Learn how to develop DB (database design) Understand how DB works (database principle)
Two parts about database purpose After the study Learn how to develop DB (database design) Be able to build a DB Understand how DB works (database principle)
Two parts about database purpose After the study Learn how to develop DB (database design) Be able to build a DB Understand how DB works (database principle) Know better about DB
Two parts about database purpose After the study Learn how to develop DB (database design) Be able to build a DB necessary Understand how DB works (database principle) Know better about DB
Two parts about database purpose After the study Learn how to develop DB (database design) Be able to build a DB Help develop better DB necessary Understand how DB works (database principle) Know better about DB
Two parts about database purpose After the study Undergraduate Database Learn how to develop DB (database design) Be able to build a DB You are assumed to know Help develop better DB necessary Understand how DB works (database principle) Know better about DB
Two parts about database purpose After the study Undergraduate Database Learn how to develop DB (database design) Be able to build a DB You are assumed to know Help develop better DB necessary Understand how DB works (database principle) Know better about DB Graduate Database We are going to study
DBMS in tables (relations) lock table DDL language DDL complier file database administrator DDL complier lock table DDL language file manager logging & recovery concurrency control transaction manager database programmer index/file manager buffer manager DML (query) language query execution engine DML complier main memory buffers secondary storage (disks) DBMS
Database Design DBMS undergraduate database in tables (relations) administrator DDL complier lock table DDL language file manager logging & recovery concurrency control transaction manager database programmer Database Design index/file manager buffer manager DML (query) language query execution engine DML complier main memory buffers secondary storage (disks) DBMS undergraduate database
Database Management System DBMS graduate database in tables (relations) database administrator DDL complier lock table DDL language file manager logging & recovery concurrency control transaction manager database programmer index/file manager buffer manager Database Management System DML (query) language query execution engine DML complier main memory buffers secondary storage (disks) DBMS graduate database
Undergraduate Database A Quick Review on Undergraduate Database
Database Design DBMS undergraduate database in tables (relations) administrator DDL complier lock table DDL language file manager logging & recovery concurrency control transaction manager database programmer Database Design index/file manager buffer manager DML (query) language query execution engine DML complier main memory buffers secondary storage (disks) DBMS undergraduate database
Database Design DBMS undergraduate database database users in tables (relations) database administrator DDL complier lock table DDL language file manager logging & recovery concurrency control transaction manager database programmer Database Design index/file manager buffer manager DML (query) language query execution engine DML complier main memory buffers secondary storage (disks) DBMS undergraduate database
Computer for Information Processing
Computer for Information Processing General information processing: data are in computer (memory) and users run CPU to process the data.
Computer for Information Processing General information processing: data are in computer (memory) and users run CPU to process the data. CPU Data in memory
Computer for Information Processing General information processing: data are in computer (memory) and users run CPU to process the data. Information processing is involved in four components: CPU Data in memory
Computer for Information Processing General information processing: data are in computer (memory) and users run CPU to process the data. Information processing is involved in four components: data structure, Data structure
Computer for Information Processing General information processing: data are in computer (memory) and users run CPU to process the data. Information processing is involved in four components: data structure, basic operations Data structure +, –, ×, ⁄
Computer for Information Processing Algorithm (ideas) General information processing: data are in computer (memory) and users run CPU to process the data. Information processing is involved in four components: data structure, basic operations, algorithm Data structure +, –, ×, ⁄
Computer for Information Processing Algorithm (ideas) General information processing: data are in computer (memory) and users run CPU to process the data. Information processing is involved in four components: data structure, basic operations, algorithm, and programming language main(); { …… } Data structure +, –, ×, ⁄
Computer for Information Processing Algorithm (ideas) General information processing: data are in computer (memory) and users run CPU to process the data. Information processing is involved in four components: data structure, basic operations, algorithm, and programming language. Example: programming with Java, C++ etc. main(); { …… } Data structure +, –, ×, ⁄
Database is just another model of information processing
Database is just another model of information processing Then why study DB?
Database is just another model of information processing Then why study DB? Much more data, regular data techs would be very inefficient: How should data be stored?
Database is just another model of information processing Data in memory CPU Then why study DB? Much more data, regular data techs would be very inefficient: How should data be stored?
Database is just another model of information processing Then why study DB? Much more data, regular data techs would be very inefficient: How should data be stored?
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?
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? π, σ, ρ, ∩, ⋃, \, ╳, ⋈, ⋈C
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. π, σ, ρ, ∩, ⋃, \, ╳, ⋈, ⋈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