CS Compass Logo

CS Compass

Your CS Navigator

Introduction to SQL Basics

Learn Structured Query Language (SQL) to manage and retrieve data from databases..

What is SQL?

SQL (Structured Query Language) is the standard language used to create, retrieve, update, and manage data in relational databases. SQL was developed by IBM in the 1970s and is supported by most Database Management Systems such as MySQL, Oracle, SQL Server, and PostgreSQL.

Features of SQL

Types of SQL Commands

DDL (Data Definition Language)

DDL commands are used to create and modify database objects.

DML (Data Manipulation Language)

DML commands are used to insert, update, and delete records from tables.

DQL (Data Query Language)

The SELECT statement is used to retrieve data from one or more tables.

DCL (Data Control Language)

DCL commands control access to the database.

TCL (Transaction Control Language)

TCL commands manage transactions in a database.

Common SQL Clauses

Aggregate Functions

Advantages of SQL

Exam Points