bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL Tutorial
SQL•SQL Tutorial

SQL Syntax

Concept visual

SQL Syntax

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

SQL Statements

Most of the actions you need to perform on a database are done with SQL statements. SQL statements consist of keywords that are easy to understand. The following SQL statement selects all records from the table named "Customers":

Example

Select all records from the Customers table:

SELECT * FROM Customers;

In this tutorial we will teach you all about the different SQL statements.

Database Tables

A database most often contains one or more tables. Each table is identified by a name (e.g. "Customers" or "Orders"), and contain records (rows) with data.

Formula

In this tutorial we will use the well - known Northwind sample database

(included in MS Access and MS SQL Server).

Below is a selection from the

Customers table used in the examples:

CustomerID

CustomerName

ContactName

Address

City

PostalCode

Country

Alfreds Futterkiste

Maria Anders

Obere Str. 57

Berlin

12209

Germany

Ana Trujillo Emparedados y helados

Ana Trujillo

Avda. de la Constitución 2222 México D.F. 05021

Mexico

Antonio Moreno Taquería

Antonio Moreno

Mataderos 2312

México D.F. 05023

Mexico

Around the Horn

Thomas Hardy

120 Hanover Sq.

London

Previous

Introduction to SQL

Next

SQL SELECT Statement