Introduction to SQL

Relational Languages and Relational Model

Introduction to SQL

  • SQL stands for Structured Query language and is an ANSI (American Natoinal Standards Instit...}

Features of SQL

Relational Languages and Relational Model

Features of SQL

Features of SQL

  • SQL is an ANSI and ISO standard computer language for creating and...}

Queries and Sub-Queries

Relational Languages and Relational Model

Queries and Sub-Queries

  • A query is an operation that retrieves data from one or more tables. A query is used to ext...}

Set Operations

Relational Languages and Relational Model

Set Operations

  • The set operations that SQL allows to be performed on a table data in database are union, i...}

Relations (Joined, Derived)

Relational Languages and Relational Model

Relations (Joined, Derived)

  • Join operations take two relations and return another relation as result. These additional...}

Queries under DDL and DML commands

Relational Languages and Relational Model

Queries under DDL and DML commands

  • DDL stands for Data Definition Language and syntax for creating a table is: CREATE TAB...}

Embedded SQL

Relational Languages and Relational Model

Embedded SQL

  • The SQL standard defines embedding of SQL in a variety of programming languages such as C,...}

VIEWS

Relational Languages and Relational Model

VIEWS

  1. A view is a logical or virtual table which does not exist physically in the database. V...}

Relational Algebra

Relational Languages and Relational Model

Relational Algebra

  • Relational algebra is the basic set of operations for the relational model. Relational Alge...}

Database Modification

Relational Languages and Relational Model

Database Modification

  • Modification of the database includes insertion, delete and update.
  • Insert stateme...}

QBE and Domain Relational Calculus

Relational Languages and Relational Model

QBE and Domain Relational Calculus

  • QBE is an abbreviation for Query-By-Example. It was developed at IBM in the early 1970&rsqu...}