Student Guide 3 - Introduction To The SQL Interfaces - Docx-1716974458991
Student Guide 3 - Introduction To The SQL Interfaces - Docx-1716974458991
LECTURE 3
Introduction to the SQL Interfaces
SQL has long been the backbone of database operations.
Originating in the early 1970s, it was developed by Donald D.
Chamberlin and Raymond F. Boyce at IBM to manage and
retrieve data stored in their original quasi-relational database
management system. Over the decades, SQL has evolved, and
while many variations exist today, its core functionality and
purpose remain consistent to interact with relational databases.
Its significance has grown in tandem with the increasing
importance of data storage, management, and retrieval in our
digital age.
Types of SQL
Databases are complex, and to cater to various operations, SQL is categorized into different types:
■ Data Query Language (DQL): This is all about retrieving data, primarily using the SELECT
statement.
■ Data Definition Language (DDL): DDL deals with database schema and structure, with
commands like CREATE, ALTER, and DROP.
■ Data Manipulation Language (DML): This involves modifying data. Common DML commands
include INSERT, UPDATE, and DELETE.
■ Data Control Language (DCL): DCL is concerned with permissions using commands like GRANT
and REVOKE.
■ Transaction Control Language (TCL): Ensures the integrity of data by managing transactions
with commands like COMMIT and ROLLBACK.
■ Statements and queries: Commands given to the database to perform specific tasks.
■ Clauses, expressions, and predicates: These provide specificity in operations like the WHERE
clause which narrows down query results.
■ Operators (like AND, OR, NOT): These are logical conditions used to refine searches.
2
How SQL Works
While using SQL might seem straightforward, there’s a lot happening behind the scenes.
Reference:
▪ Mohan, M., & Mohan, M. (2023, October 28). What is SQL? Complete introduction to SQL. codedamn news.
https://codedamn.com/news/sql/complete-introduction-to-sql