w3reference home
SQL Tutorial


Bookmark and Share

SQL

  • SQL (pronounced as "ess-que-el") stands for Structured Query Language.
  • SQL is an ANSI (American National Standards Institute) standard.
  • SQL is used to communicate with a database.
  • SQL retrieves and modifies the data in the database.
  • It is a very important tool used with relational database management systems like Oracle, Sybase, Microsoft SQL Server, Access, Ingres, etc.
Although SQL is an ANSI standard, there are many extentions and variations of SQL, such as Oracle Corporation's PL/SQL or Sybase, IBM's SQL PL (SQL Procedural Language) and Microsoft's Transact-SQL but the standard SQL commands such as "Select", "Insert", "Update", "Delete", "Create", and "Drop" are still compatible to comply with the ANSI standards.

SQL is not case sensitive.

Standard SQL statements can be subdivided into 4 distinct groups which are shown below:

Group Statements
DQL (Data Query Language) Select
DML (Data Manipulation Language) Delete, Insert, Update
DDL (Data Definition Language) DROP, TRUNCATE, CREATE, ALTER
DCL (Data Control Language) REVOKE,GRANT

A look at relational database
Since SQL is used to communicate with the database so lets see what a relational database actually is. A relational database system consists of one or more objects called tables which hold the data. Each table has a unique name. A table is made up of rows and columns.
Lets take a look at this example:

users
first_namelast_nameSSNage
MikePeter34334090930
AdamSandler31334411931
NamSam24334190934
NeilGrigorian84334090040
JohnRussel54324150720

This is a table named "users" and "first_name", "last_name", "SSN" and "age" are the columns. The rows, "Mike", "Adam" etc. contain the data.

Code Validator
Learn FTP
Color finder
Link Checker
Free web designs
Coming soon!
Interview Questions...
'w3reference : Learn by examples ... Advanced to beginner's tutorials ...'
Ajax: AJAX tutorial1 | Apache: Apache HTTP Server | Restarting Apache | CSS: CSS Border | CSS Syntax | CSS Selector | CSS Comment | CVS: CVS Release | CVS Login | CVS Logout | CVS Annotate | Databases: Rolap Tutorial | OLAP Tutorial | OLTP Tutorial | data warehousing | Expect: HTML: html | Linux: Dot (.) conf files | Linux Mount Point | Linux Filesystem | SSH Tutorial | Linux Commands: cal | cat | cfdisk | chroot | MySQL: MySQL Commands | PHP: PHP Basics | PHP Variables | PHP Output (echo/print) | PHP String Concat | PL/SQL: PL/SQL Data Types | PL/SQL Control Structures | PL/SQL File Extensions | PL/SQL DBMS_OUTPUT package | Python: My first Python program | Shell: Starting Bash | Bash Redirection | Bash Pipes | Bash Variables | SQL: SQL Transactions | SQL Constraints | SQL Drop | SQL Union & Union All | SVN: svn architecture | SVN Repository | SVN Import | SVN Checkout | Tech: soap | Web Designing: Web Hosting | HTML/XHTML/CSS code validator | Learn FTP | Search Engine Optimization Tips | www: XML: XML vs HTML | XML Syntax | XML Tags, Elements and Attributes | XML Namespaces |
Sitemap | Disclaim | Privacy Policy | Contact | ©2007-2009 w3reference.com All Rights Reserved.