Introduction To Database and SQL
Introduction To Database and SQL
Introduction To Database
Database Concepts
Database Properties
What is Database Management System (DBMS)?
Examples of Databases
Database system (DBS) Environment
Overview of SQL
SQL features
Types of SQL queries
Writing SQL commands
Database Concepts
3
Information is the data you process in a manner that makes it meaningful. Information
can be provided only if proper data exists.
A database application is a collection of data and the programs that allow the
manipulation of these data to meet the information needs of an enterprise
Database Properties
4
DBS
Application Programs
DBMS
Query Process
Data Access
Meta-Data Database
Hierarchal:
This model has a parent–child structure that is similar
to an inverted tree, which is what forms the hierarchy,
A parent node can have many child nodes, but a child
node can have only one parent node
Network:
Data is organized in record types, the logical equivalent of
tables in a relational database. Like the hierarchical model,
the network model uses an inverted tree structure, but
record types are organized into a set structure that relates
pairs of record types into owners and members. Any one
record type can participate in any set with other record
types in the database
Database Models
9
Relational :
the structure of the relational database is based on the
relation, or table, along with the ability to define
complex relationships between these relations. Each
relation can be accessed directly
At the core of the relational model is the relation. A
relation is a set of columns and rows collected in a
table-like structure that represents a single entity made
up of related data.
I.Ghadah R. Al Hadba
Normalization
10
I.Ghadah R. Al Hadba
History of SQL
11
I.Ghadah R. Al Hadba
Overview of SQL
12
What is SQL?
SQL stands for Structured Query Language
Institute) standard
Features of SQL
14
16
18
Writing SQL Commands
19
DDL Commands:
Create table emp(ID number(3)….
Alter table emp Add ….
Drop table emp
Truncate table emp
DML Commands: