SQL Server Hindi Part3
SQL Server Hindi Part3
Created by Ajay Parmar
Course Description
DDL (Data Definition Language)
-
DDL is used to define and modify database structures (schemas).
-
Main DDL commands:
CREATE
,ALTER
,DROP
,TRUNCATE
,RENAME
. -
CREATE
is used to make new tables, views, stored procedures, functions, etc. -
ALTER
modifies existing objects like adding/dropping columns, changing data types. -
DROP
permanently deletes database objects. -
TRUNCATE
removes all rows from a table but keeps the structure; faster thanDELETE
. -
DDL commands auto-commit — you can’t roll them back without explicit transaction control.
-
CREATE TABLE
should include primary key and constraints for best practice. -
You can use
IF EXISTS
withDROP
orCREATE
to avoid errors. -
CREATE INDEX
improves performance for read-heavy queries. -
Always take a backup before applying DDL changes in production.
-
ALTER TABLE
allows adding constraints (PK, FK, CHECK) after table creation. -
Use
sp_help
orINFORMATION_SCHEMA.TABLES
to check object structure. -
You can generate DDL scripts from SSMS by right-clicking on the object.
-
Constraints like
UNIQUE
,NOT NULL
,DEFAULT
are added via DDL. -
You can use
CREATE SCHEMA
to organize tables under logical groups. -
Follow naming conventions when creating objects for consistency and clarity.
- Interview Questions with solutions
🔹 DML (Data Manipulation Language)
-
DML commands are used to modify and retrieve data in existing tables.
-
Main DML commands include
SELECT
,INSERT
,UPDATE
,DELETE
, andMERGE
. -
SELECT
is used to retrieve data from one or more tables or views. -
INSERT
is used to add new records into a table. -
You can insert single or multiple rows in one
INSERT
statement. -
UPDATE
modifies existing records based on conditions using theWHERE
clause. -
Always use a
WHERE
clause inUPDATE
to avoid updating all rows. -
DELETE
removes records based on a condition, but the table structure remains. -
Without a
WHERE
clause,DELETE
removes all records — use cautiously. -
MERGE
combinesINSERT
,UPDATE
, andDELETE
in a single query (though you prefer not to use it, it’s worth mentioning). -
Transactions can be applied to DML commands (
BEGIN TRAN
,COMMIT
,ROLLBACK
).
Course Curriculum
SQL Server
-
Interview Questions Part1
00:00 -
Interview Question Part2
00:00 -
Interview Questions Part3
00:00 -
Interview Questions Part4
00:00 -
Interview Questions Part5
00:00 -
Interview Questions Part6
00:00 -
Interview Questions Part 7
00:00 -
Dml | Ddl | Dcl | Create Drop DB | TBL | SCHEMA Part1
00:00 -
alter Table Command | Select Into query Part2
00:00 -
rename Columns | delete | Update queries Part3
00:00 -
update Customer DiscountRate_Part4
00:00 -
update StockValidation Project Part5
00:00 -
insert query Part6
00:00 -
Project Insert Column value Into NewTbl Part7
00:00

-
LevelExpert
-
Total Enrolled6
-
Last UpdatedMay 10, 2025

SQL Server Hindi Part3
-
LevelExpert
-
Total Enrolled6
-
Last UpdatedMay 10, 2025
Course Description
DDL (Data Definition Language)
-
DDL is used to define and modify database structures (schemas).
-
Main DDL commands:
CREATE
,ALTER
,DROP
,TRUNCATE
,RENAME
. -
CREATE
is used to make new tables, views, stored procedures, functions, etc. -
ALTER
modifies existing objects like adding/dropping columns, changing data types. -
DROP
permanently deletes database objects. -
TRUNCATE
removes all rows from a table but keeps the structure; faster thanDELETE
. -
DDL commands auto-commit — you can’t roll them back without explicit transaction control.
-
CREATE TABLE
should include primary key and constraints for best practice. -
You can use
IF EXISTS
withDROP
orCREATE
to avoid errors. -
CREATE INDEX
improves performance for read-heavy queries. -
Always take a backup before applying DDL changes in production.
-
ALTER TABLE
allows adding constraints (PK, FK, CHECK) after table creation. -
Use
sp_help
orINFORMATION_SCHEMA.TABLES
to check object structure. -
You can generate DDL scripts from SSMS by right-clicking on the object.
-
Constraints like
UNIQUE
,NOT NULL
,DEFAULT
are added via DDL. -
You can use
CREATE SCHEMA
to organize tables under logical groups. -
Follow naming conventions when creating objects for consistency and clarity.
- Interview Questions with solutions
🔹 DML (Data Manipulation Language)
-
DML commands are used to modify and retrieve data in existing tables.
-
Main DML commands include
SELECT
,INSERT
,UPDATE
,DELETE
, andMERGE
. -
SELECT
is used to retrieve data from one or more tables or views. -
INSERT
is used to add new records into a table. -
You can insert single or multiple rows in one
INSERT
statement. -
UPDATE
modifies existing records based on conditions using theWHERE
clause. -
Always use a
WHERE
clause inUPDATE
to avoid updating all rows. -
DELETE
removes records based on a condition, but the table structure remains. -
Without a
WHERE
clause,DELETE
removes all records — use cautiously. -
MERGE
combinesINSERT
,UPDATE
, andDELETE
in a single query (though you prefer not to use it, it’s worth mentioning). -
Transactions can be applied to DML commands (
BEGIN TRAN
,COMMIT
,ROLLBACK
).
Course Curriculum
SQL Server
-
Interview Questions Part1
00:00 -
Interview Question Part2
00:00 -
Interview Questions Part3
00:00 -
Interview Questions Part4
00:00 -
Interview Questions Part5
00:00 -
Interview Questions Part6
00:00 -
Interview Questions Part 7
00:00 -
Dml | Ddl | Dcl | Create Drop DB | TBL | SCHEMA Part1
00:00 -
alter Table Command | Select Into query Part2
00:00 -
rename Columns | delete | Update queries Part3
00:00 -
update Customer DiscountRate_Part4
00:00 -
update StockValidation Project Part5
00:00 -
insert query Part6
00:00 -
Project Insert Column value Into NewTbl Part7
00:00