Welcome

SQL Basic

SQL HOME
SQL Intro
SQL Syntax
SQL Select
SQL Distinct
SQL Where
SQL And & Or
SQL Order By
SQL Insert
SQL Update
SQL Delete

SQL Demo

SQL Try It

SQL Advanced

SQL Top
SQL Like
SQL Wildcards
SQL In
SQL Between
SQL Alias
SQL Joins
SQL Inner Join
SQL Left Join
SQL Right Join
SQL Full Join
SQL Union
SQL Select Into
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 Increment
SQL Views
SQL Dates
SQL Nulls
SQL isnull()
SQL 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 Summary

SQL Quiz

SQL Quiz

SQL Tutorial

« gaohf.com Home Next Chapter »

SQL

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.

SQL Syntax

SELECT Company, Country FROM Customers WHERE Country <> 'USA'

SQL Result

Company Country
Island Trading  UK 
Galería del gastrónomo  Spain 
Laughing Bacchus Wine Cellars  Canada 
Paris spécialités  France 
Simons bistro  Denmark 
Wolski Zajazd  Poland 

Try it yourself »

Start learning SQL now!

SQL Demo

Learn by examples! With our editor, you can edit the SQL, and click on a button to view the result.

Try-It-Yourself!

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

« gaohf.com Home Next Chapter »