Duration
35 hours (usually 5 days including breaks)
Requirements
Background in Database Concept
Overview
After completing this course, students will be able to:
- Understand Core Database Concepts
- Create Database Objects
- Manipulate Data
- Understand Data Storage
- Administer a Database
Course Outline
Module 1: Understanding Core Database Concepts
•Introduction core database concepts
•Define databases
•Example of relational database tables
•Introduce common database terminology
•Relational Concepts
•Normalization
•Referential Integrity
•Constraints
Module 2: Creating Database Objects
•Data types
•Data Objects
•DLL (Data Definition Language) Statements
•Creating Scripts
Module 3: Manipulating Data
•Using DML (data manipulation language) Statements
•Using SELECT Statement
•Using INSERT, UPDATE, and DELETE to manage data
•Indexes
•Triggers
Module 4: Understanding Data Storage
•Designing Tables
•Creating and Modifying Tables
•Viewing Tables
•Deleting a Table
Module 5: Administering a Database
•SQL Server Security
•Securing Database and Objects
•Performing Database Backups
•Performing Database Restores
Duration
14 hours (usually 2 days including breaks)
Requirements
Good SQL knowledge in Microsoft SQL Server 2008/2012 environment.
Overview
This course has been created for delegates already acquainted with SQL in Microsoft SQL Server Environment 2008/2012. The course focuses on set-based querying and query tuning, working with indexes and analyzing execution plans.
The training also covers table expressions, ranking functions and how to deal with partitioned tables.
Course Outline
Module 1. Query Tuning
- Tools for Query Tuning
- Cached Query Execution Plans
- Clearing the Cache
- Analyzing Execution Plans
- Hints
- Using the Database Engine Tuning Advisor
- Index Tuning
- Table and Index Structures
- Index Access Methods
- Indexing Strategies
Module 2. Subqueries, Table Expression, and Ranking Functions
- Writing Subqueries
- Using Table Expressions
- Using Ranking Functions
Module 3. Optimizing Joins and Set Operations
- Fundamental Join Types
- Join Algorithm
- Set Operations
- Using INTO with Set Operation
Module 4. Aggregating and Pivoting Data
- Using the OVER Clause
- Different types of aggregations (Cumulative, Sliding and Year-To-Date)
- Pivoting and Unpivoting
- Setup Custom Aggregations
- Using GROUPING SETS Subclause
- CUBE and RULLUP Subclauses
- How to materialize Grouping Sets
Module 5. Using TOP and APPLY
- SELECT TOP
- Using the APPLY table operator
- TOP n at the Group Level
- Implementing Paging
Module 6. Optimizing Data Transformation
- Inserting data with Enhanced VALUES Clause
- Using the BULK Rowset Provider
- Using INSERT EXEC
- The Sequence Mechanisms
- DELETE with joins
- UPDATE with joins
- MERGE statement
- The OUTPUT Clause with INSERT
- The OUTPUT Clause with DELETE
- The OUTPUT Clause with UPDATE
- The OUTPUT Clause with MERGE
Module 7. Querying Partitioned Tables
- Partitioning in SQL Server
- How to write queries on partitioned tables
- How to write queries on partitioned views
Duration
14 hours (usually 2 days including breaks)
Requirements
- Computer literacy
- Knowledge of any operating system
Overview
The course answers questions
- How to build a query?
- What opportunities have SQL?
- What is a relational database?
- What is the structure and SQL commands?
Course Outline
Relational database models
- The structure of a relational database
- Relational operators
Download the data
- Rules for writing SQL queries
- The syntax for the SELECT
- Selecting all columns
- Inquiries from arithmetic operations
- Aliases columns
- Literals
- Concatenation
Restrict results
- The WHERE clause
- The comparison operators.
- LIKE Condition
- Prerequisite BETWEEN … AND
- IS NULL condition
- IN condition.
- Logical operators
- Many of the conditions in the WHERE clause
- The order of operators
- DISTINCT clause
Sorting Data
- The ORDER BY clause
- Sorting by multiple columns or expressions
SQL Functions
- The differences between the functions of single and multi-rows
- Functions text, numeric, date,
- Conversion functions
- Nesting functions
- Handling of NULL values
Aggregating data using the grouping function
- Grouping functions
- How grouping functions treat NULL values
- Create groups of data – the GROUP BY clause
- Grouping multiple columns
- Reducing the function result grouping – the HAVING clause
Retrieving data from multiple tables
- Types of joins
- Aliases tables
- Joins in the WHERE clause
- INNER JOIN Inner join
- External Merge LEFT, RIGHT
- Cartesian product
Subqueries
- Place subqueries in the SELECT command
- Subqueries single and multi-lineage
- Operators Subqueries single-line
- Operators Subqueries multi-IN, ALL, ANY
Collective operators
- UNION operator
- INTERSECT operator
- EXCEPT operator
Insert, update, and delete data
- INSERT command
- UPDATE command
- DELETE command
Transactions