Saturday, 23 July 2016
Views (virtual Tables) in SQL
Views (virtual Tables) in SQL: The
SQL DDL includes commands for defining views.A views is customized presentation
of the data from one or more tables. views derive their data from the tables on
which they are based, which are known as base ables of the view.
Non procedural Language :SQL is a non procedural language because it:
·
Processess sets of records
rather than just one at a time
·
provides automatics navigation
to the data
· system administrators
·
Database administrators
·
Securiuty administrators
·
Application programmers
SQL Data Manipulation Language(DML)
SQL
(Structured Query Language) is a syntax for executing queries . But the SQL
language also includes a syntax to update,insert and delete records.
These query and update
commands together form the Data Manipulation Language (DML) part of SQL:
·SELECT: extracts data from a
database table
·UPDATE: updates data in a
database table
·DELETE :deletes data from a
database table
Transaction
Control Commands:
Transaction Control Commands manage changes made by Data Manipulation Language commands. These commands are listed in the following table.
Command
Purpose
COMMIT
To make permanent the
changed made by statements issued at the beginning of transaction
ROLLBACK
To undo all changes
since the beginning of a transaction or since a savepoint.
SAVEPOINT
To establish a point
back to which you ma y roll.
SET TRANSACTION
To establish
properties for the current transaction.
These query and update
commands together form the Data Manipulation Language (DML) part of SQL:
·SELECT: extracts data from a
database table
·UPDATE: updates data in a
database table
·DELETE :deletes data from a
database table
Transaction
Control Commands:
·SELECT: extracts data from a
database table
·UPDATE: updates data in a
database table
·DELETE :deletes data from a
database table
Transaction Control Commands:
Transaction Control Commands manage changes made by Data Manipulation Language commands. These commands are listed in the following table.
Command
|
Purpose
|
COMMIT
|
To make permanent the
changed made by statements issued at the beginning of transaction
|
ROLLBACK
|
To undo all changes
since the beginning of a transaction or since a savepoint.
|
SAVEPOINT
|
To establish a point
back to which you ma y roll.
|
SET TRANSACTION
|
To establish
properties for the current transaction.
|