Lec 62 SQL Overview
Lec 62 SQL Overview
1) Structured Storage:
Data is stored in a specific format, often in tables with rows and columns, making
it easy to query and analyze.
2) Consistency: The data stored is consistent, meaning that the same type of data
is stored in the same way across the database.
3) Integrity: Data integrity ensures that the data is accurate and reliable.
4) Scalability: Databases can grow in size, handling more data without performance
issues.
-----------------------------------------------------------------------------------
----
-----------------------------------------------------------------------------------
----
a) Tables: Data is stored in tables, where each table consists of rows (records)
and columns (attributes).
b) Primary Key: Each table typically has a primary key, a unique identifier for
each row in the table.
c) Foreign Key: Relationships between tables are established using foreign keys,
which are fields in one table that refer to the primary key in another table.
SQL (Structured Query Language): RDBMS systems use SQL for querying, updating, and
managing the data.
1) Data Query Language (DQL): Used to query data from the database.
The most common command is SELECT.
2) Data Manipulation Language (DML): Used to insert, update, and delete data.
3) Data Definition Language (DDL): Used to define or alter the structure of the
database, such as creating, altering, or dropping tables.
4) Data Control Language (DCL): Used to control access to the data, like granting
and revoking permissions.