You are on page 1of 2

Sql -- which is used Query the data from Database (any Mssql,mysql, oracle,

teradata, vertica, snowflake,redshift,bigquery...etc)

SQL -- Base and core language for SQL Developer /DB Developer /DB Admin/ Data
Engineer.

different command in SQL

1.DDL( Data Definiation Language ):


Create ,drop , alter , Rename,truncate
To Create any objects in database -- we required Create command.
To drop any objects in database -- we required drop command.
To modify objects in database -- we required alter command.
To modify the name of object we use Rename command to change name from one state to
another state in database -- we required rename command.

which is deal with Table(One of the object) ,To delete table data we used truncate
command -- truncate.

2.DML : Data Manipulation Language.


i.e. Insert , Delete , Update, Merge/Upsert.

All the DML Operations /commands which is being used to modify , insert , delete
the data into table /views.

3.DRL/DSL/DQL ( Data Retrivel/Select/Query Language).

select .

4.DCL (Data Control Language).


Grant , Revoke --> To Provide access or Revoke access to role,table or any object
to particular user , role we are using the grant & Revoke.

5.TCL (Trancation Control Language).


Commit,Rollback.-->

Dbever ( Which is help to connect any databases)

IDE(SSMS) ---> Intergrated Development Environment.

Oracle --> IDE ( SQL Developer,Toad )

Once you install Mssql version (2008,r2, 2012,2014) ---> 2016,2019.. Separately
need install the SSMS.

Use Learning;

Create table Employee_Table


(eno int,
ename varchar(100),
deptno int,
sal int);

alter table Employee_Table add comm int

select * from Employee_Table;

syntax: create [Object_type] Object_Name


(Column datatype...etc)

drop [table/view/procuedure/fucntions..etc] Employee_Table;

syntax: drop [Object Type] object_Name;

EXEC sp_help 'dbo.Employee_Table';

select * from [dbo].[DEPT]

You might also like