SQL Server DDL, DCL, DML

Explain Data Definition Language, Data Control Language and Data Manipulation Language.

Data Definition Language (DDL):- are the SQL statements that define the database structure.

Example:
a. CREATE
b. ALTER
c. DROP
d. TRUNCATE
e. COMMENT
f. RENAME

Data Manipulation Language (DML):- statements are used for manipulate or edit data.

Example:
a. SELECT - retrieve data from the a database
b. INSERT - insert data into a table
c. UPDATE - updates existing data within a table
d. DELETE
e. MERGE
f. CALL
g. EXPLAIN PLAN
h. LOCK TABLE

Data Control Language (DCL):-statements to take care of the security and authorization.

Examples:
a. GRANT
b. REVOKE

Explain Data Definition Language, Data Control Language and Data Manipulation Language.

Data definition language is used to define and manage all attributes and properties of a database.

Most DDL statements include following commands
CREATE
ALTER
DROP

Data Control Language
Data control language is used to control permissions on database objects. Permissions are controlled by using GRANT, REVOKE, and DENY statement.

Data Manipulation Language
Data manipulation language is used to select, insert, update, and delete data in the objects defined with DDL.
What are the steps to process a single SELECT statement?
SQL Server SELECT Statement - SQL Server uses the following steps to process a single SELECT statement:.......
What are the restrictions while creating batches in SQL Server?
SQL server batches - CREATE DEFAULT, CREATE PROCEDURE, CREATE RULE, CREATE TRIGGER, and CREATE VIEW statements cannot be combined with ......
Explain GO Command
GO Command is used to signal the end of a batch........
Post your comment
Discussion Board
Basic SQL Query
This is best one article so far I have read online. I would like to appreciate you for making it very simple and easy. I have found another nice post related to this post over the internet which also explained very well. For more details you may check out this link...

http://mindstick.com/Articles/9c4a80f3-64be-41b2-a0b8-ba7e26590e06/?Basic%20SQL%20Query

Thanks
Golu Singh 12-26-2011