DB glossary (focus on typical SQL RDBMS, not XQuery or SPARQL)

Slides:



Advertisements
Similar presentations
The Relational Model and Relational Algebra Nothing is so practical as a good theory Kurt Lewin, 1945.
Advertisements

Keys, Referential Integrity and PHP One to Many on the Web.
Relational Databases Chapter 4.
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Midterm Review Lecture 14b. 14 Lectures So Far 1.Introduction 2.The Relational Model 3.Disks and Files 4.Relational Algebra 5.File Org, Indexes 6.Relational.
Database Integrity, Security and Recovery Database integrity Database integrity Database security Database security Database recovery Database recovery.
1 Relational Model. 2 Relational Database: Definitions  Relational database: a set of relations  Relation: made up of 2 parts: – Instance : a table,
ASP.NET Database Connectivity I. 2 © UW Business School, University of Washington 2004 Outline Database Concepts SQL ASP.NET Database Connectivity.
Accounting Databases Chapter 2 The Crossroads of Accounting & IT
Fundamentals, Design, and Implementation, 9/e Chapter 7 Using SQL in Applications.
CS405G: Introduction to Database Systems Final Review.
SQL DDL constraints Restrictions on the columns and tables 1SQL DDL Constraints.
INTEGRITY Enforcing integrity in Oracle. Oracle Tables mrobbert owner granted access.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Computer Science & Engineering 2111 Introduction to Database Management Systems Relationships and Database Creation 1 CSE 2111 Introduction to Database.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Learningcomputer.com SQL Server 2008 – Entity Relationships in a Database.
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
Introduction to SQL Steve Perry
Web Services Week 8 Aims: –Using web services as front ends to databases Objectives: –Review of relational databases –Connecting to and querying databases.
Constraints  Constraints are used to enforce rules at table level.  Constraints prevent the deletion of a table if there is dependencies.  The following.
CODD’s 12 RULES OF RELATIONAL DATABASE
SQL Server 7.0 Maintaining Referential Integrity.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
HSCI 709 SQL Data Definition Language. SQL Standard SQL-92 was developed by the INCITS Technical Committee H2 on Databases. SQL-92 was designed to be.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
FEN Introduction to the database field:  The Relational Model Seminar: Introduction to relational databases.
Data Driven Designs 99% of enterprise applications operate on database data or at least interface databases. Most common DBMS are Microsoft SQL Server,
Fall 2001Database Systems1 Triggers Assertions –Assertions describe rules that should hold for a given database. –An assertion is checked anytime a table.
D R. E.F.C ODD ’ S R ULES FOR RDBMS Dr. E.F.Codd is an IBM researcher who first developed the relational data model in 1970.Dr. Codd published a list.
Dec 8, 2003Murali Mani Constraints B term 2004: lecture 15.
Constraints cis 407 Types of Constraints & Naming Key Constraints Unique Constraints Check Constraints Default Constraints Misc Rules and Defaults Triggers.
Oracle 11g: SQL Chapter 4 Constraints.
Chapter 4 Constraints Oracle 10g: SQL. Oracle 10g: SQL 2 Objectives Explain the purpose of constraints in a table Distinguish among PRIMARY KEY, FOREIGN.
Indexes and Views Unit 7.
1 DBS201: More on SQL Lecture 3. 2 Agenda How to use SQL to update table definitions How to update data in a table How to join tables together.
Deductive Databases General idea: some relations are stored (extensional), others are defined by datalog queries (intensional). Many research projects.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
Session 1 Module 1: Introduction to Data Integrity
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
MIS 3053 Database Design And Applications The University Of Tulsa Professor: Akhilesh Bajaj Normal Forms Lecture 1 © Akhilesh Bajaj, 2000, 2002, 2003.
Relational Database Management System(RDBMS) Structured Query Language(SQL)
Database Management COP4540, SCS, FIU Database Trigger.
Chapter 3: Relational Databases
FEN Introduction to the database field: The development process Seminar: Introduction to relational databases Development process: Analyse.
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
Databases Introduction - concepts. Concepts of Relational Databases.
INFS 6220 Systems Analysis & Design Transactional DBs vs. Data Warehouses.
Quiz Which of the following is not a mandatory characteristic of a relation? Rows are not ordered (Not required) Each row is a unique There is a.
Constraints and Views Chap. 3-5 continued (7 th ed. 5-7)
Database Overview What is a database? What types of databases are there? How are databases more powerful than spreadsheets?
Chapter 8 Advanced SQL. Relational Set Operators UNIONINTERSECTMINUS Work properly if relations are union- compatible –Names of relation attributes must.
Constraints Advanced Database Systems Dr. AlaaEddin Almabhouh.
MySQL Tutorial. Databases A database is a container that groups together a series of tables within a single structure Each database can contain 1 or more.
Getting started with Accurately Storing Data
Latihan Create a separate table with the same structure as the Booking table to hold archive records. Using the INSERT statement, copy the records from.
Chapter 8 Advanced SQL Pearson Education © 2014.
Translation of ER-diagram into Relational Schema
Referential Integrity
Referential Integrity
The Relational Model Textbook /7/2018.
Data Management Innovations 2017 High level overview of DB
Chapter 7 Using SQL in Applications
Triggers 7/11/2019 See scm-intranet.
Presentation transcript:

DB glossary (focus on typical SQL RDBMS, not XQuery or SPARQL)

facts are rows in tables Tables have columns of some type, giving each row a number of fields (i.e. n-ary) Tables have columns of some type, giving each row a number of fields (i.e. n-ary)

query a declarative specification of a result set of rows in terms of base tables, views, and rowset- oriented operators such as select, project, join, and union a declarative specification of a result set of rows in terms of base tables, views, and rowset- oriented operators such as select, project, join, and union uses SQL SELECT..FROM...WHERE...GROUP BY...HAVING...UNION... uses SQL SELECT..FROM...WHERE...GROUP BY...HAVING...UNION... Queries can be optimized using algebraic rewrite rules. Queries can be optimized using algebraic rewrite rules. closure - the input and output of a query is a set of rows. closure - the input and output of a query is a set of rows.

View a named, stored, secured, and often updateable query. a named, stored, secured, and often updateable query. Some DBs support recursive views or some kind of transitive closure operator. Some DBs support recursive views or some kind of transitive closure operator.

integrity constraints conditions about data that must hold at transaction boundaries. conditions about data that must hold at transaction boundaries. conditions are declarative and can be about data in a column, e.g. conditions are declarative and can be about data in a column, e.g. cannot be null, cannot be null, must be unique, must be unique, must be one of a defined set of values. must be one of a defined set of values. Or can relate 2 or more columns, e.g. referential integrity requires that a foreign key must refer to a primary key Or can relate 2 or more columns, e.g. referential integrity requires that a foreign key must refer to a primary key

Triggers one of the first examples of an ECA rule one of the first examples of an ECA rule A trigger fires when a row or set of rows is inserted, deleted, or updated in a table. A trigger fires when a row or set of rows is inserted, deleted, or updated in a table. The trigger may perform arbitrary database modifications in the scope of the triggering transaction. The trigger may perform arbitrary database modifications in the scope of the triggering transaction.

how to evolve the knowledge base: insert, update, delete insert, update, delete Transaction Transaction

role based access control How to secure the data (facts) How to secure the data (facts)