Programming 1SQL Server 2012 PDF
Programming 1SQL Server 2012 PDF
What is a Database?
Database Architectures
SQL Server 2012 Architecture
Editions of SQL Server 2012
Installing SQL Server 2012
Tools and utilities in SQL Server 2012
CREATING AND
MANAGING DATABASES
Data Storage
System Databases
Creating User-defined Databases
Working with Databases
RETRIEVING DATA
SELECT Statement
FROM and WHERE Clauses
Using GROUP BY Clause
Using HAVING Clause
ORDER BY Clause
Creating a Copy Table
DATA INTEGRITY
JOINS
What is a Join?
Types of Joins
Alternate syntax for joins
Complex Joins
BUILT-IN FUNCTIONS
Aggregate Functions
Numeric Functions
Date and Time Functions
String Functions
CAST and CONVERT
RETRIEVING DATA
ADVANCED
What is a sub query?
Types of Sub Queries
Working with CORRELATED
SUBQUERIES
Working with CTEs
Operators
LIKE, IN, ANY, BETWEEN, EXIST
NORMALIZATION
What is Normalization?
Normal Forms
Advantages and Disadvantages
Denormalization
T-SQL PROGRAMMING
INTRODUCTION
Fundamentals
Control-of-flow Language Statements
Scripts and Batches
CURSORS
What is a Cursor?
Types of Cursors
Statements in the usage of a Cursor
@@FETCH_STATUS
TRANSACTIONS
ACID Properties
Types of Transactions
COMMIT, ROLLBACK, SAVE
STORED PROCEDURES
Definition
Types of Stored Procedures
Creating a Stored Procedure
Input and Output Parameters
Executing a Stored Procedure
Error Handling in Stored Procedures
Debugging a Stored Procedure
TRIGGERS
Definition
Creating a Trigger
Types of Triggers
DDL Triggers
DML Triggers
INSTEAD OF Triggers
Setting Triggering Order
USER-DEFINED
FUNCTIONS
What is a UDF?
Creating and using UDFs
UDFs returning a table
SECURITY
Security Basics
Authentication Modes
Creating a login
Providing permissions on a database
Providing permissions on database
objects
PERFORMANCE TUNING
Tuning Queries
When to Tune?
Strategies in Tuning
Evaluating Query Performance
Tuning Query Performance
Finding out which queries to Tune
Index Uses
Types of Indexes
Creating Indexes
Index Fragmentation
Tuning Indexes