Database Systems
T. Amani Al-Kebsi Lecture 1
Introduction to database
What is SQL?
SQL is Structured Query Language, which is a computer language
for storing, manipulating and retrieving data stored in relational
database.
SQL is the standard language for Relation Database System. All
relational database management systems like MySQL, MS Access, Oracle
and SQL Server use SQL as standard database language.
Introduction to database
Why SQL?
➢ Allows users to access data in relational database management systems.
➢ Allows users to describe the data.
➢ Allows users to define the data in database and manipulate that data.
➢ Allows to embed within other languages using SQL modules, libraries & pre-
compilers.
➢ Allows users to create and drop databases and tables.
➢ Allows users to create view, stored procedure, functions in a database.
➢ Allows users to set permissions on tables, procedures and views .
Introduction to database
SQL Commands:
Introduction to database
SQL Commands:
Introduction to database
SQL Commands:
Introduction to database
What is RDBMS?
RDBMS stands for Relational Database Management System. RDBMS is
the basis for SQL and for all modern database systems like MS SQL
Server, IBM DB2, Oracle, MySQL, and Microsoft Access.
Introduction to database
What is table?
The data in RDBMS is stored in
database objects called tables.
The table is a collection of
related data entries and it
consists of columns and rows
Introduction to database
What is field?
Every table is broken up into
smaller entities called fields. The
fields in the this table consist of
ID, NAME, AGE, ADDRESS and
SALARY
Introduction to database
What is record or row?
A record, also called a row of data, is each individual entry that exists
in a table.
Introduction to database
What is column?
A column is a vertical entity in a table
that contains all information associated
with a specific field in a table.
Introduction to database
What is NULL value?
➢ A NULL value in a table is a value in a field that appears to be blank, which
means a field with a NULL value is a field with no value.
➢ It is very important to understand that a NULL value is different than a
zero value or a field that contains spaces. A field with a NULL value is one
that has been left blank during record creation.
References
SQL TUTORIAL , Simply Easy Learning by tutorialspoint.com