SQL stands for Structured Query Language .It was developed by IBM and originally called as SEQUEL. It was implemented for getting data from experimental relational database system called SYSTEM R. SQL is very easy and mostly resembles with English language. The following are the features of SQL:-

  1. Almost same as English.

  2. Easy to understand and learn.

  3. Works with all the RDBMS systems currently available.

  4. Many tools are available to auto generate SQL.


  Let’s take an example:
      Select Employ_Name
                        From Employ
This query will retrieve the names of employee from the table EMPLOY.



Classification of SQL
The SQL is basically divided into three parts.



  1. Data Definition Language(DDL)


DDL statements are used to build and modify the structure of your tables and other objects in the database.
Let’s take an example:
create table Student
                (st_name char (20),
                                             st_add char (30),
                                             st_course char (10),
                                             st_rollno numeric(10),
                                              primary key (st_rollno))
This query will create the table in database with fields St_name, st_add, st_course, st_rollno, and will make the st_rollno primary key of table Student.



  1. Data Manipulation Language (DML)

  2. DML is used to retrieve, insert, delete and update data in database.
  3. Data Control Language (DCL)


  4. DCL is a subset of SQL, used to control access to data in a database.
                    

Database Discussion

...more

Database Source Code

...more

Database Related Tutorials

...more

New Database Resources

...more

Copyright © 2013 VisualBuilder. All rights reserved