This repository will be useful to get started and understand SQL better. Practice These Exercises.
This repository will be useful to get started and know SQL better. Practice These Exercises.
Used to retrieve Data from Databases.SQL is widely used nowadays because everything is DATA
DDL - Data Defenition Language : DDL is abbreviation of Data Definition Language. It is used to create and modify the structure of database objects in database. Examples: CREATE, ALTER, DROP statements
DML - Data Manipulation Language : DML is abbreviation of Data Manipulation Language. It is used to retrieve, store, modify, delete, insert and update data in database. Examples: SELECT, UPDATE, INSERT statements
DCL - Data Control Language : DCL is abbreviation of Data Control Language. It is used to create roles, permissions, and referential integrity as well it is used to control access to database by securing it. Examples: GRANT, REVOKE statements
TCL - Transaction Control Language : TCL is abbreviation of Transactional Control Language. It is used to manage different transactions occurring within a database. Examples: COMMIT, ROLLBACK statements
Install MS-SQL Server to work on Exercises. To install, Follow this video, he explains clearly.
After Installation, You need Databases to Practice SQL
Download Northwind DB
Download Adventure Works DB
Create HR DB on your own
Creating HR Table and insert the values to the table. Queries
git clone https://github.com/engineeringwitharavind/SQL-Exercises-With-Solutions.git
Each folder contains two files:
A PNG file
.png
contains Questions for all the Exercises Seperately.
A SQL file.sql
contains solutions done by me. You can correct me if i am wrong and modify it as needed.
After Completing these Exercises Try to solve SQL Exercises on