An open API service indexing awesome lists of open source software.

https://github.com/mthirumalai2905/sql

SQL (Structured Query Language) is a programming language designed for managing and manipulating relational databases.
https://github.com/mthirumalai2905/sql

sql

Last synced: 4 months ago
JSON representation

SQL (Structured Query Language) is a programming language designed for managing and manipulating relational databases.

Awesome Lists containing this project

README

          

# SQL
SQL (Structured Query Language) is a programming language designed for managing and manipulating relational databases.

*Database*

Database is collection of data in a format that can be easily accessed(Digital)


A software application used to manage our DB is called DBMS (Database Management System)

*Types of Database*

Relational Databases-MySQL


Non-relational(NoSQL) Databases- mongoDB

## We Use SQL programming language to interact with relational databases
It is used to perform CRUD operations:
Create

Read

Update

Delete

```sql
CREATE DATABASE db_name;
DROP DATABASE db_name;
```
## Creating our first Table
```sql
USE db_name;

CREATE TABLE table_name(
column_name1 datatype constraint;
column_name2 datatype constraint;
column_name3 datatype constraint;
```

## Types of SQL Commands
DDL(Data Definition Language): create, alter, rename, truncate & drop

DQL(Data Query Language): select

DML(Data Modification Language): select, insertm update & delete

DCL(Data Control Language): grant and revoke

TCL(Transaction Control Language): start transaction, commit, rollback etc