Professional Documents
Culture Documents
4927 Introduce About SQL
4927 Introduce About SQL
data analysis
What does the course cover?
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
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
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