User:Kelti/sandbox

From Wikibooks, open books for an open world
Jump to: navigation, search


Structured Query Language (SQL) is a widely-used programming language for working with relational databases. The name of the language is generally pronounced as the three letters of its abbreviation [ˈɛs kjuː ˈɛl] or, in some people's usage, as [ˈsiːkwəl].

This Wikibook provides a short description of SQL, its origins, basic concepts and components, and a lot of examples. The book follows the specifications of the SQL:2011 standard, which is developed by a common committee of ISO and IEC. Their publications are not freely available. But you may want to refer to a working draft of SQL:2008, which you can download from Whitemarsh Information Systems Corporation.

Loupe light.svg

For a thorough look at special SQL implementations, see MySQL or Oracle Programming/SQL Cheatsheet.
For a comparision of SQL dialects/implementations, see SQL Dialects Reference.


Introduction

About the Book
Database Management Systems (DBMS)
Relational DBMS (rDBMS)
SQL: A Language for Working with rDBMS
SQL: The Standard ISO IEC 9075 and various Implementations
Language Elements

The Snippets Corner Take a snippet

SELECT code FROM examples WHERE topic = ...


Two Parallel Tracks: Standard and Classic

Standard Track

Classic Track


Foundation
Create a simple Table
Handle Data
Example Database Structure
Example Database Data

Basic Commands
SELECT Fundamentals









COMMIT and ROLLBACK
INSERT
UPDATE

DELETE

Daily Operations
SELECT

Join Operation
Grouping
IS NULL Predicate
Predefined Functions
Set Operations
Case Expression
Subquery

Views

INSERT
UPDATE
MERGE
DELETE
TRUNCATE


Advanced Topics (Work in Progress)
Managing Tables

CREATE TABLE
Data Types
Foreign Key
ALTER TABLE
DROP TABLE
Temporary Table

Managing Indexes
Managing Rights (GRANT / REVOKE)
Advanced SELECT features

Pattern Matching (LIKE Predicate and much more)
IN, SOME/ANY, ALL, EXISTS
Advanced Grouping: Rollup / Cube
Recursions
Windowing functions

NULLs and the Three Valued Logic
Transactions / Isolation Levels
With Clause / Common Table Expression ??



100% developed  as of 13 Dec, 2011 Relational Databases





100% developed  as of 13 Dec, 2011 Data Query Language










100% developed  as of 13 Dec, 2011 Data Manipulation Language








100% developed  as of 13 Dec, 2011 Data Definition Language






100% developed  as of 13 Dec, 2011 Performance

100% developed  as of 13 Dec, 2011 Data Control Language

End of Parallel Tracks


Tips and Tricks

Violated Foreign Key
Violated Uniqueness

Related Issues (mainly links)

Data Normalisation / Entity Relation Ship Diagrams
Relational Algebra

Appendices

Warnings and Exceptions (SQLSTATE)
Glossary  !!!!!!!
List of Keywords
Style Guide for Creating Tables
Style Guide for Naming Objects
Bibliographie