You are on page 1of 5

Relational Model

SS2
By computerslides.blogspot.com
What is Relational Model?
• Relational Model represents how
data is stored in Relational
Databases.

• A relational database stores data in


the form of relations (tables).

• Consider a relation STUDENT with


attributes ROLL_NO, NAME,
ADDRESS, PHONE and AGE
shown in Table 1.
SQL

• SQL (Structured Query Language) is a programming


language designed for managing data in relational
database management systems (RDBMS).
What Can SQL do?
• SQL can execute queries against a database.
• SQL can retrieve data from a database.
• SQL can insert records in a database.
• SQL can update records in a database.
• SQL can delete records from a database.
• SQL can create new databases.
• SQL can create new tables in a database.
• SQL can create views in a database.
• SQL can set permission on table, procedures, and views.
Database Tables
• A database most often contains one or more tables.
• Each table is identified by a name (e.g Customer, Student)
• Tables contain records(rows) with data.

Shown in the table contains three records (one for


each person) and five columns (RowID, Name,
Age,State,Job)

You might also like