SQL Tutorial | learning SQL. | SQL Command

SQL Commands:

SQL commands are instructions used to communicate with the database to perform specific task that work with data. SQL commands can be used not only for searching the database but also to perform various other functions like, for example, you can create tables, add data to tables, or modify data, drop the table, set permissions for users. SQL commands are grouped into four major categories depending on their functionality:
   1.Data Definition Language (DDL) - These SQL commands are used for creating, modifying, and dropping the structure of database objects. The commands are CREATE, ALTER, DROP, RENAME, and TRUNCATE.

CommandDescription
CREATECreates a new table, a view of a table, or other object in database
ALTERModifies an existing database object, such as a table.
DROPDeletes an entire table, a view of a table or other object in the database.

2.Data Manipulation Language (DML) - These SQL commands are used for storing, retrieving, modifying, and deleting data. These commands are SELECT, INSERT, UPDATE, and DELETE.

CommandDescription
INSERTCreates a record
UPDATEModifies records
DELETEDeletes records

3.Data Control Language (DCL) - These SQL commands are used for providing security to database objects. These commands are GRANT and REVOKE. 

CommandDescription
GRANTGives a privilege to user
REVOKETakes back privileges granted from user

4.Transaction Control Language (TCL) - These SQL commands are used for managing changes affecting the data. These commands are COMMIT, ROLLBACK, and SAVEPOINT. 

SQL Tutorial | Learning SQL |SQL Overview

                     SQL - Overview:


What is SQL?

 Ans: SQL is structured Query Language which is a computer language for storing, manipulating and retrieving data stored in relational database.

SQL is the standard language for Relation Database System. All relational database management systems like MySQL, MS Access, Oracle, Sybase, Informix, postgres and SQL Server uses SQL as standard database language.

Also they are using different dialects, Such as:

    1.MS SQL Server using T-SQL,

   2. Oracle using PL/SQL,

    3.MS Access version of SQL is called JET SQL (native format )etc

 Ans2:

    1.SQL stands for Structured Query Language
    2.SQL lets you access and manipulate databases
    3.SQL is an ANSI (American National Standards Institute) standard

Why SQL?

    1.Allow users to access data in relational database management systems.

    2.Allow users to describe the data.

    3.Allow users to define the data in database and manipulate that data.

    4.Allow to embed within other languages using SQL modules, libraries & pre-compilers.

    5.Allow users to create and drop databases and tables.

    6.Allow users to create view, stored procedure, functions in a database.

    7.Allow users to set permissions on tables, procedures, and views

What Can SQL do?

    1.SQL can execute queries against a database
    2.SQL can retrieve data from a database
    3.SQL can insert records in a database
    4.SQL can update records in a database
    5.SQL can delete records from a database
    6.SQL can create new databases
    7.SQL can create new tables in a database
    8.SQL can create stored procedures in a database
    9.SQL can create views in a database
    10.SQL can set permissions on tables, procedures, and views

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes