Docsity

Introduction to Structure query language, Summaries of Structural Design and Architecture

Toggle sidebar
bg1
What
is
SQL?
SQL
stands
for
Structured
Query
Language.
SQL
is
used
to
communicate
with
a
database.
According
to
ANSI
(American
National
Standards
Institute),
it
is
the
standard
language
for
relational
database
management
systems.
SQL
statements
are
used
to
perform
tasks
such
as
update
data
on
a
database,
or
retrieve
data
from
a
database.
Some
common
relational
database
management
systems
that
use
SQL
are:
Oracle,
Sybase,
Microsoft
SQL
Server,
Access.
Ingres,
etc.
Although
most
database
systems
use
SQL,
most
of
them
also
have
their
own
additional
proprietary
extensions
that
are
usually
only
used
on
their
system.
What
is
RDBMS?
sQL
Introduction
RDBMS
stands
for
Relational
Database
Management
System.
RDBMS
store
the
data
into
collection
of
tables,
which
might
be
related
by
common
fields
(database
table
columns).
RDBMS
data
is
structured
in
database
tables,
fields
and
records.
Each
RDBMS
table
consists
of
database
table
rows.
Each
database
table
row
consists of
one
or
more
database
table
fields.
RDBMS
also
provide
relational
operators
to
manipulate
the
data
stored
into
the
database
tables.
Most
RDBMS
use
SQL
as
database
query
language.
Query:
Queries
are
the
primary
mechanism
for
retrieving
information
from
a
database
and
consist
of
questions
presented
to
the
database
in a
predefined
format.
Features
of
SQL:
SQL:
widely
used
non-procedural
language
i.e.
User
specifies
what
data
is
required
without
specifying
how
to
get
those
data.
SQL
is
a
Data
Manipulation
Language
(DML)
SQL
(Structured
Query
Language)
is
syntax
for
executing
queries.
But
the
SQL
language
also
includes
syntax
to
update,
insert,
and
delete
records.
SQL
is
a
Data
Definition
Language
(DDL)
pf3
pf4
pf5

Partial preview of the text

Download Introduction to Structure query language and more Summaries Structural Design and Architecture in PDF only on Docsity!

What is SQL?

SQL stands for Structured Query Language. SQL is used to communicate with a database.

According to ANSI(American National Standards Institute), it is the standard language for relational database management systems. SQL statements are used to perform tasks such as update data on a database, or retrieve data from a database. Some common relational database

management systems that use SQL are: Oracle, Sybase, Microsoft SQL Server, Access.

Ingres, etc. Although most database systems use SQL, most of them also have their own

additionalproprietary extensions that are usually only used on their system.

What is RDBMS?

sQL Introduction

RDBMS stands for Relational Database Management System. RDBMS store the data into

collection of tables, which might be related by common fields (database table columns).

RDBMS data is structured in database tables, fields and records. Each RDBMStable consists

of database table rows. Each database table row consists of one or more database table fields.

RDBMS also provide relational operators to manipulate the data stored into the database tables. Most RDBMS use SQL as database query language.

Query: Queries are the primary mechanism for retrieving information from a database and consist of questions presented to the database in a predefined format.

Features of SQL:

SQL: widely used non-procedural language

i.e. User specifies what data is required without specifying how to get those data.

SQL is a Data Manipulation Language (DML)

SQL (Structured Query Language) is syntax for executing queries. But the SQL

language also includes syntax to update, insert, and delete records.

SQL is a Data Definition Language (DDL)

The Data Definition Language (DDL) part of SQL permits database tables to be

created or deleted. We can also define indexes (keys), specify links between tables,

and impose constraints between database tables.

SQL includes the features of Relational Model

SQL is DBMS independent.

The result from a SQL query is stored in a result-set.

Semicolon is the standard way to separate each SQL statement in database systems

that allow more than one SQL statement to be executed in the same call to the server.

SQL uses the terms table, row, and column for relation, tuple, and attribute,

respectively.

delete

merge

LTCL: Transaction Control Language

Command

These commands are to keep a check on other commands and their affect on the database.

These commands can annul changes made by other commands by rolling back to original

state. It can also make changes permanent.

commit

rollback

savepoint

DCL: Data Control Language

Command

to delete a row

grant

merging two rows or two tables

revoke

Command

Data control language provides command to grant and take back authority.

select

Description

DQL : Data Query Language

to permanently save

to undo change

to save temporarily

Description

Description

grant permission of right

take back permission.

retrieve records from one or more table

Struc tured

what s

APPA

stamdond tor Qne Langge?

otan dard^ for^ DBMS

About SaL

APP

Stands for stme

Standen d

Stuetuad

The

DeMs inàepe

Both

Termioloqr

DBMS ue

DB

Relatioma) alg

Relatiow

AttriL wte

TDDL DML

Developed at IBM^ Reseack^ for^

4ztem R.

Lnclwdes feats of

tuple relatioal calenles.

ÀPP

2ndent.

My

lange

with tt (^) DBMs (^) bg

relatiome

data access APT

relotlonal algby and

Jalle

Calumn,

tt