Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

SQL for

data analysis
What does the course cover?

SQL Basic Course

1. Introduce about SQL, types of SQL commands


2. SQL syntax and keywords
3. How to use DQL commands in SQL (Select)
4. General knowledge about DDL, DML, DCL and TCL
5. Project practices
SQL

INTRODUCTION
- SQL, which stands for Structured Query Language, is a language for interacting with
SQL
data stored in something called a relational database.
- A relational database as a collection of tables – a set of rows and columns
- Each row, or record, of a table contains information about a single entity
- Each column, or field, of a table contains a single attribute for all rows in the table
SQL

SQL
Table examples
Types of sql commands

01. DQL 02. DDL 03. DCL


Data query language DATA DEFINITION LANGUAGE Data control language

DQL is used to fetch the data from the database. DDL changes the structure of the table like DCL commands are used to grant and take
Examples: SELECT commands creating a table, deleting a table, altering a table back authority from any database user.
Examples: CREATE, ALTER, DROP, … commands Examples: GRANT, REVOKE, … commands

04. DML 05. TCL


Data manipulation language Transaction Control Language

DML commands are used to modify the database. It is TCL commands can only use with DML commands like
responsible for all form of changes in the database INSERT, DELETE and UPDATE only.
Examples: INSERT, UPDATE, DELETE, … commands Examples: COMMIT, ROLLBACK, SAVEPOINT, … commands

You might also like