Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Buy Now $24.24
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword or section
Like this
2Activity
×

Table Of Contents

Chapter One
Overview
Database Management Systems (DBMS) and Databases
DBMS Tools
The Database
Schemas and Tables
Database Tables
Overview of Entity Relationship Modeling (E-R Models)
Basic Constructs of E-R Modelling
Contextual Modeling
Conceptual Modeling
Logical Modelling
The Physical Model
Normalisation
First Normal Form (1NF)
Second Normal Form (2NF)
Third Normal Form 3NF
Design Completeness and Table Navigation
Conclusion
Chapter two
SQL Overview
Basic Components of SQL
Comments
Nulls
Format Models
Operators and Operands
Column Data Types
Table and Column Aliases
Chapter three
Retrieving Data from Single Tables
Sorting Qery Results
Sorting Based on Dates
Sorting Characters
Sorting Numbers
Filtering Data with Comparison Operators
Filtering Data with the BETWEEN and IN Operators
Filtering for Null Values
Filtering with Logical Operators
The Order of Logical Operator Execution
Filtering with T-SQL Pattern Matching Operators
The Brackets [] Wildcard
Filtering with Oracle Pattern Matching Operators
Returning the TOP n Rows with T-SQL
Returning the TOP n Rows with Oracle Inline View
Returning Distinct Rows
Chapter Four
Retrieving Data from More than One Table
Joining More than One Table
Joins and Constraints
Types of Joins
T—SQL Equip-Join in the WHERE Clause
Qualifiying Column Names
Table Name Aliases
T-SQL Inner Joins in the FROM Clause
Oracle Inner Joins
Outer Joins
T-SQL LEFT and RIGHT OUTER JOIN
Oracle OUTER JOINS
SELF JOINS
Joining More than Two Tables
Cross Joins
INTERSECT Operator
MINUS and EXCEPT Operators
Oracle MINUS Operator
SQL Server EXCEPT Operator
SET Operator Precedence
Chapter seven
Inserting and Updating Data
Inserting a Single Full Row of Data
Inserting a Single Partial Row of Data
INSERTS and Table Constraints
Inserting Multiple Rows of Data
Creating Duplicate Tables
INSERTING Multiple Rows Using INSERT SELECT
Manually Inserting Non-Database Multiple Rows
Transforming Data during INSERTS
INSERT and SEQUENCES
(MINUS for ORACLE) Operator
UPDATING Tables
Updating Tables with Constant Values
Updating All Rows
T-SQL Update OUTPUT Clause
UPDATES Using SELECT Subqueries
UPDATES and Table Constraints
Using INSERT and SELECT CASE to Transform Data
Chapter eight
Calculated or Virtual Columns and Functions
T-SQL Calculated Columns
Oracle Virtual Columns
Oracle Simple CASE Expression
Character Functions
Oracle Data Conversion Functions
Miscellaneous and Null Related Functions
Date and Time Functions
Analytic Functions
System Functions
USING Views to References Virtual Columns
Using T-SQL CTEs to Reference Virtual Columns
Oracle CTEs Using Subqueries
Chapter nine
Grouping Data
Independent Fact Aggregation
Filtering Groups with the HAVING Clause
Filtering Groups with the HAVING and WHERE Clause
Chapter ten
DELETING Data
DELETING All Rows
Oracle DELETE and Auto COMMIT
Explicitly Committing Oracle DELETE Statements
SQL Server DELETE and Auto COMMIT
DELETE and Database Constraints
Deleting Oracle Duplicate Rows
Deleting SQL Server Duplicate Rows
TRUNCATE versus DELETE Table
Chapter eleven
Creating Database Tables and Constraints
Types of Constraints
Creating and Maintaining Tables
Creating Oracle Tables
Creating Sequences
Creating Oracle Sequences
Indexes and ROWIDs
Triggers
Database Level DDL Triggers
Table Level Triggers and Data History Maintenance
SQL Server AFTER UPDATE Triggers
Oracle AFTER UPDATE Triggers
Chapter thirteen
SQL Performance Tuning
Tuning the Business Process
The Optimiser
Schema Design for Performance OLAP or OLTP
Constraints and Performance
Denormalising OLTP Databases for Performance
Tuning SQL Statements
Displaying Execution Plans
Oracle Execution Plans
Restructuring SQL Statements for Performance
Using SQL Hints to Influence the Optimiser
JOIN Hints
Table Hints
Query Hints
Tuning the Database for Performance
Tuning Transactions
PL /SQL Programmable T-SQL Overview
Oracle PL/SQL
Anonymous Blocks
The Declaration Section
The Execution Section
The Exception Section
General Guidelines
PL/SQL Variables and Constants
Declaration of Variables and Constants
Variable Value Assignment
Scope of Variables
PL/SQL Control Constructs
Conditional Control Statements
Iterative Control Constructs
Cursors and Records
Cursors
Records
Declaring Record Data Types
Assigning Values to Records
Implicit Cursors
Explicit Cursors
Opening the Cursor
Fetching the Cursor
Closing the Cursor
Explicit Cursor Attributes
Oracle REF CURSOR And Dynamic SQL
Subprograms, Procedures, Functions, and Parameters
Subprogram Parameters
Stored Procedures
User-Defined Functions
Error Handling
Named Predefined Exceptions
Unnamed Predefined Exceptions
User-Defined Exceptions
PL/SQL Transaction Processing
SET TRANSACTION
COMMIT
ROLLBACK Using EXCEPTIONS
Oracle Table Functions and User-Defined Types
Programmable T—SQL
T-SQL OBJECT_ID Function
T-SQL Anonymous Block
T-SQL DECLARE
Assigning Values to Variables Using the SET Keyword
Assigning Values to Variables Using the SELECT Keyword
T-SQL Execution Section
T-SQL Exception Handling (Try . . . CATCH)
T-SQL Flow Control
T-SQL Conditional Logic
T-SQL Iteration
T-SQL Sequential Control
Cursors in T-SQL
T-SQL Functions and Procedures
T-SQL Stored Procedures
T-SQL Functions
T-SQL Table Functions
T-SQL Transactions Processing
T-SQL SET TRANSACTION Isolation Level
T-SQL BEGIN and COMMIT TRANSACTION
T-SQL BEGIN, ROLLBACK TRANSACTION
Programmable Objects
appendix
Getting Started with Oracle
Installing Oracle 11g Express
Opening the Oracle Query Editor
Getting Started with SQL Server 2012
Installing SQL Server 2012 Express with Advanced Services
AdventureWorks2012 Database
about the author
about the Book
P. 1
What Is SQL ?

What Is SQL ?

Ratings: (0)|Views: 282|Likes:
Published by AuthorHouseBooks
What Is SQL guides beginners, experts, and intermediate readers through the most important aspects of declarative and procedural SQL. Knowledge gained includes the following:

? Designing, building, and querying relational databases in the latest versions of oracle and SQL server databases

? Performing data-quality operations that eliminate corrupted data from databases

? Extending the functionality of SQL using PL/SQL and programmable T-SQL

? Building and loading data warehouses without using an expensive ETL tool

? Troubleshooting and tuning SQL code and database designs

? Extensive use of built-in functions to retrieve and transform data

? Translating complex business rules into database constraints

? Creating advanced queries that answer complex business questions

? Manipulating data within tables

? Creating recoverable business transactions

? Perform nonstandard SQL operations such as deleting duplicate rows


Obtain a free sample of oracle11i and SQL server 2012 databases.
What Is SQL guides beginners, experts, and intermediate readers through the most important aspects of declarative and procedural SQL. Knowledge gained includes the following:

? Designing, building, and querying relational databases in the latest versions of oracle and SQL server databases

? Performing data-quality operations that eliminate corrupted data from databases

? Extending the functionality of SQL using PL/SQL and programmable T-SQL

? Building and loading data warehouses without using an expensive ETL tool

? Troubleshooting and tuning SQL code and database designs

? Extensive use of built-in functions to retrieve and transform data

? Translating complex business rules into database constraints

? Creating advanced queries that answer complex business questions

? Manipulating data within tables

? Creating recoverable business transactions

? Perform nonstandard SQL operations such as deleting duplicate rows


Obtain a free sample of oracle11i and SQL server 2012 databases.

More info:

Published by: AuthorHouseBooks on Jan 07, 2013
Copyright:Traditional Copyright: All rights reservedISBN:9781477246450
List Price: $24.24 Buy Now

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
Buy the full version from:Amazon
See More
See less

05/02/2013

431

9781477246450

$24.24

USD

pdf

You're Reading a Free Preview
Pages 18 to 110 are not shown in this preview.
You're Reading a Free Preview
Pages 128 to 176 are not shown in this preview.
You're Reading a Free Preview
Pages 194 to 262 are not shown in this preview.
You're Reading a Free Preview
Pages 282 to 431 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)//-->