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

DATA DELUGE AND INFORMATIONAL OVERLOAD
Relational Database Management Systems
Good Riddance: the DELETE Statement
I Can Fix That: the UPDATE Statement
SUMMARY
A REALLY BRIEF INTRODUCTION TO DATA MODELING
Conceptual Modeling
Logical Modeling
Physical Modeling
WHY CAN’T EVERYTHING BE TEXT?
Character Data
Fixed Length and Variable Strings
Binary Strings
Character versus Special Files
Numeric Data
Exact Numbers
Approximate Numbers
Literals for the Number
Once Upon a Time: Date and Time Data Types
Binary Data
IT’S A BIRD, IT’S A PLANE, IT’S … A NULL!
Much Ado About Nothing
None of the Above: More Data Types
BOOLEAN
XML Data Type
DDL, DML, AND DQL: COMPONENTS OF SQL
REFACTORING DATABASE TABLE
DROP TABLE
CREATE TABLE
ALTER TABLE
POPULATING A TABLE WITH DIFFERENT DATA TYPES
Implicit and Explicit Data Conversion
SELECT STATEMENT REVISITED
Selecting Literals, Functions, and Calculated Columns
Setting Vertical Limits
Alias: What’s in a Name?
Setting Horizontal Limits
DISTINCT
Get Organized: Marching Orders
ORDER BY
ASC and DESC
TOP and LIMIT
INSERT, UPDATE, AND DELETE REVISITED
INSERT
SELECT INTO
UPDATE
DELETE
TRUNCATE That Table!
SQL Operators: Agents of Change x 67
SQL OPERATORS: AGENTS OF CHANGE
Arithmetic and String Concatenation Operators
Comparison Operators
Logical Operators
ANY | SOME
BETWEEN <expression> AND <expression>
IN
Keys to the Kingdom: Primary and Foreign
Relationship Patterns
What Could and Does Go Wrong
Working with Multiple Tables
JOIN Syntax
UNION Operator
Dynamic SQL
Ultimate Flexibility, Potential Problems
IN NUMBERS, STRENGTH
BUILDING CHARACTER
“X” Marks the Spot: Finding the Position of a Character in a String
CHARINDEX
CHAR
SUBSTRING
LENGTH
TRIM, LTRIM, and RTRIM
DATE AND TIME FUNCTIONS
What Time Is It?
Date Arithmetic
A Glimpse of Aggregate Functions x 121
A GLIMPSE OF AGGREGATE FUNCTIONS
CONVERSION FUNCTIONS
Conversion Between Diferent Data Types
Conversion Between Diferent Character Sets
MISCELLANEOUS FUNCTIONS
MAKING THE CASE
SQL PROCEDURAL EXTENSIONS
Happy Parsing: Stored Procedures
User-Defined Functions (UDFs)
Why Use Procedural Extensions?
Performance and Network Traf c
Database Security
Code Reusability
AGGREGATE SQL FUNCTIONS REVISITED
AVG()
COUNT()
MAX()
MIN()
ORDER BY Clause: Sorting Query Output
WHAT YOU DON’T KNOW MIGHT HELP YOU
Subquery in the WHERE Clause
EXISTS Operator
ANY Operator
ALL Operator
Subquery in the SELECT List
Subquery in the FROM Clause
Subquery in the HAVING Clause
Subqueries with INSERT
Subqueries with UPDATE
Subqueries with DELETE
CORRELATED QUERY
How Deep the Rabbit Hole Goes: Nesting Subqueries x 169
HOW DEEP THE RABBIT HOLE GOES: NESTING SUBQUERIES
A SUBQUERY OR A JOIN?
JOINS REVISITED
INNER JOIN
N-way INNER JOIN
LEFT OUTER JOIN
RIGHT OUTER JOIN
FULL JOIN
Self JOIN: Looking Inside for an Answer
CROSS JOIN (aka Cartesian Product)
STATE OF THE UNION
A POINT OF VIEW
CREATE VIEW
ALTER VIEW
DROP VIEW
Updatable VIEW
WITH CHECK OPTION
Hierarchical Views
Benefits and Drawbacks
BUT WAIT; THERE’S MORE!
INTERSECT
EXCEPT and MINUS
AN INDEX FOR ALL SEASONS
UNIQUE Index
CLUSTERED Index
An INDEX Destroyed
TABLE REVISITED
VIEW REVISITED
BY ANY OTHER NAME: ALIASES AND SYNONYMS
AUTO-INCREMENTED VALUES
Identity Columns
Microsoft SQL Server
IBM DB2
PostgreSQL
MySQL
Microsoft Access
OpenOf ce BASE with HSQLDB
Who Am I: Finding One’s IDENTITY
SEQUENCES
Comparing Identity Columns and Sequences x 227
COMPARING IDENTITY COLUMNS AND SEQUENCES
TRIGGERS
ONE HAPPY FAMILY: WORKING IN HETEROGENEOUS ENVIRONMENTS
DATABASE PERFORMANCE
Performance Benchmarks
Order of Optimization
Hardware Optimization
Operating System Tune-up
Optimizing RDBMSs
Optimizing Database/Schema
Application Optimization
SQL Optimization
RDBMS-SPECIFIC OPTIMIZATION
Oracle 10g/11g
IBM DB2 LUW 9.7
Microsoft SQL Server 2008
Desktop RDBMSs
OpenOf ce BASE with HSQLDB Backend
YOUR DBA IS YOUR FRIEND
SESSIONS
Orphaned Sessions
Transactions
Understanding Locks
SQL Security
Basic Security Mechanisms
Defining a Database User
Managing Security with Privileges
Operating System Security Integration
INFORMATION_SCHEMA and SQL System Catalogs
Oracle Data Dictionary
IBM DB2 LUW System Catalogs
Microsoft SQL Server 2008 System Catalog
SQL AND XML
A BRIEF INTRODUCTION TO XML
Formatted XML
DTD and Schema
Document Type Definition (DTD)
XML Schema Definition (XSD)
Namespaces
XML as a DataSource
Accessing XML Documents in an Application
XML Path Language: XPath
XML Query Language: XQuery
Encoding XML
Presenting XML Documents
XSL and XSLT
XML and RDBMSs
Implementation Details
Oracle 11g XML DB
IBM DB 9.7 pureXML
PostgreSQL 9.0
MySQL 5.5
XML for RDBMS: Best Practices
All Bits Considered
What Would Google Do?
Getting Binary Data In and Out of the RDBMS Table
Best Practices for Binary Data
SQL and Text Documents
THE FUTURE IS CLOUDY
Key/Value Pair
What in the World Is Hadoop?
Google’s BigTable, Base, and Fusion Tables
Amazon SimpleDB
MongoDB
Microsoft SQL Azure
SQL and Business Intelligence x 339
SQL AND BUSINESS INTELLIGENCE
OLAP Rules
ROLAP, MOLAP, and HOLAP
Oracle 11g
XML for Analysis (XMLA)
ELEMENTARY, MY DEAR WATSON!
COLUMN-ORIENTED DBMS
OBJECT DATABASES
Object-Oriented Programming (OOP) Paradigm
Objects and Classes
Object-Relational Mapping Frameworks x 349
OBJECT-RELATIONAL MAPPING FRAMEWORKS
Hibernate/NHibernate
Microsoft LINQ and Entity Framework
ORACLE 10G XE
Installing Library Sample Database with SQL*Plus
Installing with Oracle Web Interface
IBM DB2 9.7 EXPRESS-C
IBM Command Editor
IBM Command Window
Microsoft SQL Server 2008 Express x 363
MICROSOFT SQL SERVER 2008 EXPRESS
SQL Server Management Studio Express
POSTGRESQL 9.0
Installing with pgAdmin III
MYSQL 5.1
Installing with the MySQL CommanA-Line Utility
MICROSOFT ACCESS 2007/2010
ORACLE
MICROSOFT SQL SERVER 2008
MYSQL
POSTGRESQL
OPEN OFFICE BASE WITH HSQLDB
Accessing RDBMSs with the SQuirreL Universal SQL Client
INDEX
0 of .
Results for:
No results containing your search query
P. 1
Wrox.discovering.sql.Apr.2011

Wrox.discovering.sql.Apr.2011

Ratings: (0)|Views: 554|Likes:
Published by momitza
tech
tech

More info:

Published by: momitza on Aug 22, 2013
Copyright:Attribution Non-commercial

Availability:

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

08/30/2013

pdf

text

original

You're Reading a Free Preview
Pages 11 to 105 are not shown in this preview.
You're Reading a Free Preview
Pages 116 to 118 are not shown in this preview.
You're Reading a Free Preview
Pages 129 to 175 are not shown in this preview.
You're Reading a Free Preview
Pages 186 to 482 are not shown in this preview.
You're Reading a Free Preview
Pages 493 to 508 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)//-->