SQL Tutorial
SQL Tutorial
Language (DDL)
Creates a
new table, a
view of a
CREATE table, or Demo
other object
in the
database.
Modifies an
existing
ALTER database Demo
object, such
as a table.
Deletes an
entire table,
a view of a
table or
DROP Demo
other
objects in
the
database.
https://www.tutorialspoint.com/sql/index.htm 13/04/2024, 15 14
Page 5 of 18
:
Truncates
the entire
TRUNCATE Demo
table in a
go.
Data Manipulation
Language (DML)
A Data Manipulation
Language (DML) is a
computer programming
language which is used for
adding, deleting, and
modifying data in a
database.
Retrieves
certain
SELECT records Demo
from one or
more tables.
Creates a
INSERT Demo
record.
Modifies
UPDATE Demo
records.
Deletes
DELETE Demo
records.
https://www.tutorialspoint.com/sql/index.htm 13/04/2024, 15 14
Page 6 of 18
:
Data Control Language
(DCL) is a computer
programming language
which is used to control
access to data stored in a
database.
Gives a
GRANT privilege to Demo
user
Takes back
privileges
REVOKE Demo
granted
from user.
https://www.tutorialspoint.com/sql/index.htm 13/04/2024, 15 14
Page 7 of 18
:
so if you are starting to
learn any programming
language then it is very
much advised that you
should also learn SQL and
other Database related
concepts to become a
complete Software
Programmer. There are
many good reasons which
makes SQL as the first
choice of any programmer −
MS Access version of
SQL is called JET SQL
(native format) etc.
https://www.tutorialspoint.com/sql/index.htm 13/04/2024, 15 14
Page 8 of 18
:
SQL Applications
SQL is one of the most
widely used Query Language
over the databases. SQL
provides following
functionality to the database
programmers −
Execute different
database queries
against a database.
Define the data in a
database and
manipulate that data.
Create data in a
relational database
management system.
Set permissions on
tables, procedures
and views.
https://www.tutorialspoint.com/sql/index.htm 13/04/2024, 15 14
Page 9 of 18
:
Who Should Learn
SQL
This SQL tutorial will help
both students as well as
working professionals who
want to develop applications
based on some databases
like banking systems,
support systems,
information systems, web
websites, mobile apps or
personal blogs etc. We
recommend reading this
tutorial, in the sequence
listed in the left side menu.
Prerequisites to
Learn SQL
Though we have tried our
best to present the SQL
concepts in a simple and
easy way, still before you
start learning SQL concepts
given in this tutorial, it is
https://www.tutorialspoint.com/sql/index.htm 13/04/2024, 15 14
Page 10 of 18
:
assumed that you are
already aware about some
basic concepts of computer
science, what is a database,
especially the basics of
RDBMS and associated
concepts.
SQL Online
Quizzes
This SQL tutorial helps you
prepare for technical
interviews and certification
exams. We have provided
various quizzes and
assignments to check your
learning level. Given quizzes
have multiple choice type of
questions and their answers
with short explanation.
https://www.tutorialspoint.com/sql/index.htm 13/04/2024, 15 14
Page 11 of 18
:
Q 1 - The SQL
programming
language was
developed by which
of the following:
A - Google in 1990s
B - Microsoft in
1980s
C - IBM in 1970s
D - None of the
Above
Answer : C
Explanation
The SQL
programming
language was
developed in the
1970s by IBM
researchers
Raymond Boyce and
Donald Chamberlin.
https://www.tutorialspoint.com/sql/index.htm 13/04/2024, 15 14
Page 12 of 18
: