Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
1Activity

Table Of Contents

The SQL SELECT Statement
An SQL SELECT Example
SELECT * Example
Navigation in a Result-set
The SQL SELECT DISTINCT Statement
SELECT DISTINCT Example
The WHERE Clause
WHERE Clause Example
Quotes Around Text Fields
Operators Allowed in the WHERE Clause
The AND & OR Operators
AND Operator Example
OR Operator Example
Combining AND & OR
The ORDER BY Keyword
ORDER BY Example
ORDER BY DESC Example
The INSERT INTO Statement
SQL INSERT INTO Example
Insert Data Only in Specified Columns
The UPDATE Statement
SQL DELETE Example
Delete All Rows
The TOP Clause
SQL SELECT TOP Equivalent in MySQL and Oracle
SQL TOP Example
SQL TOP PERCENT Example
The LIKE Operator
LIKE Operator Example
SQL Wildcards
SQL Wildcard Examples
Using the % Wildcard
Using the _ Wildcard
Using the [charlist] Wildcard
The IN Operator
IN Operator Example
The BETWEEN Operator
BETWEEN Operator Example
Example 2
SQL Alias
Alias Example
SQL JOIN
Different SQL JOINs
SQL INNER JOIN Keyword
SQL INNER JOIN Example
SQL LEFT JOIN Keyword
SQL LEFT JOIN Example
SQL RIGHT JOIN Keyword
SQL RIGHT JOIN Example
SQL FULL JOIN Keyword
SQL FULL JOIN Example
The SQL UNION Operator
SQL UNION Example
SQL UNION ALL Example
The SQL SELECT INTO Statement
SQL SELECT INTO Example
SQL SELECT INTO - With a WHERE Clause
SQL SELECT INTO - Joined Tables
The CREATE DATABASE Statement
CREATE DATABASE Example
The CREATE TABLE Statement
CREATE TABLE Example
SQL Constraints
SQL NOT NULL Constraint
SQL UNIQUE Constraint
SQL UNIQUE Constraint on CREATE TABLE
SQL UNIQUE Constraint on ALTER TABLE
To DROP a UNIQUE Constraint
SQL PRIMARY KEY Constraint
SQL PRIMARY KEY Constraint on CREATE TABLE
SQL PRIMARY KEY Constraint on ALTER TABLE
To DROP a PRIMARY KEY Constraint
SQL FOREIGN KEY Constraint
SQL FOREIGN KEY Constraint on CREATE TABLE
SQL FOREIGN KEY Constraint on ALTER TABLE
To DROP a FOREIGN KEY Constraint
SQL CHECK Constraint
SQL CHECK Constraint on CREATE TABLE
SQL CHECK Constraint on ALTER TABLE
To DROP a CHECK Constraint
SQL DEFAULT Constraint
SQL DEFAULT Constraint on CREATE TABLE
SQL DEFAULT Constraint on ALTER TABLE
To DROP a DEFAULT Constraint
Indexes
CREATE INDEX Example
The DROP INDEX Statement
The DROP TABLE Statement
The DROP DATABASE Statement
The TRUNCATE TABLE Statement
The ALTER TABLE Statement
SQL ALTER TABLE Example
Change Data Type Example
DROP COLUMN Example
AUTO INCREMENT a Field
Syntax for MySQL
Syntax for SQL Server
Syntax for Access
Syntax for Oracle
SQL CREATE VIEW Statement
SQL CREATE VIEW Examples
SQL Updating a View
SQL Dropping a View
SQL Dates
MySQL Date Functions
SQL Server Date Functions
SQL Date Data Types
SQL Working with Dates
SQL NULL Values
SQL Working with NULL Values
SQL IS NULL
SQL IS NOT NULL
SQL ISNULL(), NVL(), IFNULL() and COALESCE()
Functions
Microsoft Access Data Types
MySQL Data Types
SQL Server Data Types
SQL Aggregate Functions
SQL Scalar functions
The AVG() Function
SQL AVG() Example
SQL COUNT(column_name) Example
SQL COUNT(*) Example
SQL COUNT(DISTINCT column_name) Example
The FIRST() Function
SQL FIRST() Example
The LAST() Function
SQL LAST() Example
The MAX() Function
SQL MAX() Example
The MIN() Function
SQL MIN() Example
The SUM() Function
SQL SUM() Example
SQL HAVING Example
The UCASE() Function
SQL UCASE() Example
The LCASE() Function
SQL LCASE() Example
The MID() Function
SQL MID() Example
The LEN() Function
SQL LEN() Example
The ROUND() Function
SQL ROUND() Example
The NOW() Function
SQL NOW() Example
The FORMAT() Function
SQL FORMAT() Example
SQL Hosting
SQL Summary
0 of .
Results for:
No results containing your search query
P. 1
What is SQL

What is SQL

Ratings: (0)|Views: 2,224|Likes:
Published by Abhi Joshi

More info:

Published by: Abhi Joshi on Nov 21, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

11/07/2011

pdf

text

original

You're Reading a Free Preview
Pages 4 to 14 are not shown in this preview.
You're Reading a Free Preview
Pages 18 to 84 are not shown in this preview.
You're Reading a Free Preview
Pages 88 to 101 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->