SQL Tutorial

X

## SQL Tutorial

SQL HOME SQL Intro SQL Syntax SQL Select SQL Distinct SQL Where SQL And & Or SQL Order By SQL Insert Into SQL Update SQL Delete SQL Injection SQL Select Top SQL Like SQL Wildcards SQL In SQL Between SQL Aliases SQL Joins SQL Inner Join SQL Left Join SQL Right Join SQL Full Join SQL Union SQL Select Into SQL Into Select SQL Create DB SQL Create Table SQL Constraints SQL Not Null SQL Unique SQL Primary Key SQL Foreign Key SQL Check SQL Default SQL Create Index SQL Drop SQL Alter SQL Auto Increment SQL Views SQL Dates SQL Null Values SQL Null Functions SQL Data Types SQL DB Data Types

## SQL Functions

SQL Functions SQL Avg() SQL Count() SQL First() SQL Last() SQL Max() SQL Min() SQL Sum() SQL Group By SQL Having SQL Ucase() SQL Lcase() SQL Mid() SQL Len() SQL Round() SQL Now() SQL Format()
SQL Quick Ref SQL Hosting

## SQL Quiz

SQL Quiz

# SQL Tutorial

« W3Schools Home
Next Chapter »

SQL is a standard language for accessing databases.

Our SQL tutorial will teach you how to use SQL to access and manipulate data in: MySQL, SQL Server, Access, Oracle, Sybase, DB2, and other database systems.

## Examples in Each Chapter

With our online SQL editor, you can edit the SQL statements, and click on a button to view the result.

## Example

SELECT * FROM Customers;
Try it yourself »

Click on the "Try it yourself" button to see how it works.

Start learning SQL now!

## SQL Quiz Test

Test your SQL skills at W3Schools!

Start SQL Quiz!

## SQL Quick Reference

An SQL Quick Reference. Print it and put it in your pocket.

SQL Quick Reference

## SQL Data Types

Data types and ranges for Microsoft Access, MySQL and SQL Server.

SQL Data Types

## W3Schools Exam

## W3Schools' Online Certification

The perfect solution for professionals who need to balance work, family, and career building.

More than 10 000 certificates already issued!

Get Your Certificate »

The HTML Certificate documents your knowledge of HTML.

The HTML5 Certificate documents your knowledge of advanced HTML5.

The CSS Certificate documents your knowledge of advanced CSS.

The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.

The jQuery Certificate documents your knowledge of jQuery.

The PHP Certificate documents your knowledge of PHP and SQL (MySQL).

The XML Certificate documents your knowledge of XML, XML DOM and XSLT.

The ASP Certificate documents your knowledge of ASP, SQL, and ADO.

« W3Schools Home
Next Chapter »

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

UK Reseller Hosting cPanel Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER Free HTML5 Templates

## W3SCHOOLS EXAMS

HTML, CSS, JavaScript, PHP, jQuery, XML, and ASP Certifications

## SHARE THIS PAGE

## WEB RESOURCES

Web Statistics Web Validation