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

Table Of Contents

Operator Description
The AND & OR Operators
AND Operator Example
OR Operator Example
The ORDER BY Keyword
SQL ORDER BY Syntax
ORDER BY Example
The INSERT INTO Statement
SQL INSERT INTO Syntax
SQL INSERT INTO Example
Insert Data Only in Specified Columns
The UPDATE Statement
SQL UPDATE Syntax
SQL UPDATE Example
SQL UPDATE Warning
The DELETE Statement
SQL DELETE Syntax
SQL DELETE Example
Delete All Rows
The TOP Clause
SQL Server Syntax
SQL SELECT TOP Equivalent in MySQL and Oracle
MySQL Syntax
Example
Oracle Syntax
SQL TOP Example
SQL TOP PERCENT Example
The LIKE Operator
SQL LIKE Syntax
LIKE Operator Example
Wildcard Description
SQL Wildcard Examples
Using the % Wildcard
Using the _ Wildcard
Using the [charlist] Wildcard
The IN Operator
SQL IN Syntax
IN Operator Example
The BETWEEN Operator
SQL BETWEEN Syntax
BETWEEN Operator Example
Example 2
SQL Alias
SQL Alias Syntax for Tables
SQL Alias Syntax for Columns
Alias Example
SQL JOIN
O_Id OrderNo P_Id
Different SQL JOINs
SQL INNER JOIN Keyword
SQL INNER JOIN Syntax
SQL INNER JOIN Example
LastName FirstName OrderNo
SQL LEFT JOIN Keyword
SQL LEFT JOIN Syntax
SQL LEFT JOIN Example
SQL RIGHT JOIN Keyword
SQL RIGHT JOIN Syntax
SQL RIGHT JOIN Example
SQL FULL JOIN Keyword
SQL FULL JOIN Syntax
SQL FULL JOIN Example
The SQL UNION Operator
SQL UNION Syntax
SQL UNION Example
E_Name
SQL UNION ALL Example
Result E_Name
The SQL SELECT INTO Statement
SQL SELECT INTO Syntax
SQL SELECT INTO Example
SQL SELECT INTO - With a WHERE Clause
SQL SELECT INTO - Joined Tables
The CREATE DATABASE Statement
SQL CREATE DATABASE Syntax
CREATE DATABASE Example
The CREATE TABLE Statement
SQL CREATE TABLE Syntax
SQL Constraints
SQL NOT NULL Constraint
SQL UNIQUE Constraint
SQL UNIQUE Constraint on CREATE TABLE
MySQL:
SQL Server / Oracle / MS Access:
MySQL / SQL Server / Oracle / MS Access:
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
My SQL:
SQL CHECK Constraint on ALTER TABLE
To DROP a CHECK Constraint
SQL DEFAULT Constraint
SQL DEFAULT Constraint on CREATE TABLE
My SQL / SQL Server / Oracle / MS Access:
SQL DEFAULT Constraint on ALTER TABLE
To DROP a DEFAULT Constraint
Indexes
SQL CREATE INDEX Syntax
SQL CREATE UNIQUE INDEX Syntax
CREATE INDEX Example
The DROP INDEX Statement
DROP INDEX Syntax for MS Access:
DROP INDEX Syntax for MS SQL Server:
DROP INDEX Syntax for DB2/Oracle:
DROP INDEX Syntax for MySQL:
The DROP TABLE Statement
The DROP DATABASE Statement
The TRUNCATE TABLE Statement
SQL ALTER TABLE Syntax
SQL ALTER TABLE Example
P_IdLastName FirstName Address City DateOfBirth
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 Syntax
SQL CREATE VIEW Examples
SQL Updating a View
SQL CREATE OR REPLACE VIEW Syntax
SQL Dropping a View
SQL DROP VIEW Syntax
SQL Dates
MySQL Date Functions
SQL Server Date Functions
Function Description
SQL Date Data Types
SQL Working with Dates
OrderId ProductName OrderDate
SQL NULL Values
SQL Working with NULL Values
SQL IS NULL
LastName FirstName Address
SQL IS NOT NULL
SQL ISNULL(), NVL(), IFNULL() and COALESCE() Functions
P_IdProductName UnitPrice UnitsInStock UnitsOnOrder
SQL Server / MS Access
Oracle
MySQL
Microsoft Access Data Types
Data type Description Storage
MySQL Data Types
Text types: Data type Description
Number types: Data type Description
SQL Server Data Types
Character strings: Data type Description Storage
Unicode strings: Data type Description Storage
Binary types: Data type Description Storage
Date types: Data type Description Storage
Other data types: Data type Description
Oracle Stored Procedures
What you will learn
Oracle Stored Procedures - Write a procedure
Oracle Stored Procedures - Create a procedure
Oracle Stored Procedures - Run a procedure
0 of .
Results for:
No results containing your search query
P. 1
SQL Tutorial

SQL Tutorial

Ratings: (0)|Views: 64|Likes:
Published by srini1006

More info:

Published by: srini1006 on Sep 08, 2010
Copyright:Attribution Non-commercial

Availability:

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

12/26/2012

pdf

text

original

You're Reading a Free Preview
Pages 6 to 50 are not shown in this preview.

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Rafael Silva liked this
krishnanand liked this

You're Reading a Free Preview

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