Sie sind auf Seite 1von 6

Course Outline

20461 - Querying Microsoft SQL


Server
General Description
This 5-day instructor led course provides students with the technical skills required to
write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the
foundation for all SQL Server-related disciplines; namely, Database Administration,
Database Development and Business Intelligence. This course helps people prepare for
exam 70-461.

Outcomes
At the end of the course, students will be able to:
Describe the basic architecture and concepts of Microsoft SQL Server 2014.
Understand the similarities and differences between Transact-SQL and other
computer languages.
Write SELECT queries
Query multiple tables
Sort and filter data
Describe the use of data types in SQL Server
Modify data using Transact-SQL
Use built-in functions
Group and aggregate data
Use subqueries
Use table expressions
Use set operators
Use window ranking, offset and aggregate functions
Implement pivoting and grouping sets
Execute stored procedures
Program with T-SQL
Implement error handling
Implement transactions

Course Details
Course code: 20461
Duration: 5 days
Starting time: 9am
Finishing time: 4.30pm
Lunch and refreshments are provided.
1300 86 87246
1300 TO TRAIN Booking guidelines
Contact our learning consultants on 1300 86 87246 and we will assist you with
your booking.

Enter pre-requisites

ttttttt

For more information about any of our training courses, contact our Learning Consultants
Course Outline 20461CC on 1300 86 87246 or email us on info@advancedtraining.com.au
Version 2.0 April 2015
Visit us on the web at www.advancedtraining.com.au
Course Outline
Module 1: Introduction to After completing this module, you Lab : Querying Multiple Tables
Microsoft SQL Server 2014 will be able to: Writing Queries That Use Inner
This module introduces the SQL Describe the elements of T-SQL Joins
Server platform and major tools. It and their role in writing queries Writing Queries That Use
discusses editions, versions, tools Describe the use of sets in SQL Multiple-Table Inner Join
used to query, documentation Server Writing Queries That Use Self
sources, and the logical structure of Describe the use of predicate Joins
databases. logic in SQL Server Writing Queries That Use Outer
Lessons Describe the logical order of Joins
The Basic Architecture of SQL operations in SELECT statements Writing Queries That Use Cross
Server Joins
SQL Server Editions and After completing this module, you
Module 3: Writing SELECT
Versions will be able to:
Queries
Getting Started with SQL Server Describe how multiple tables
This module introduces the
Management Studio may be queried in a SELECT
fundamentals of the SELECT
Lab : Working with SQL Server statement using joins.
statement, focusing on queries
2014 Tools Write queries that use inner joins.
against a single table.
Working with SQL Server Write queries that use outer joins.
Lessons Write queries that use self-joins
Management Studio
Writing Simple SELECT
Creating and Organizing T-SQL and cross joins.
Statements
scripts
Eliminating Duplicates with
Using Books Online Module 5: Sorting and Filtering
DISTINCT
After completing this module, you Data
Using Column and Table Aliases
will be able to: This module explains how to
Writing Simple CASE
Describe the architecture and enhance queries to limit the rows
Expressions
editions of SQL Server 2012. they return, and to control the order
Lab : Writing Basic SELECT
Work with SQL Server in which the rows are displayed.
Statements The module also discusses how to
Management Studio.
Write simple SELECT Statements
resolve missing and unknown
Eliminate Duplicates Using
results.
Module 2: Introduction to T- Distinct
Lessons
SQL Querying Use Table and Column Aliases
Sorting Data
This module introduces Transact Use a Simple CASE Expression
Filtering Data with a WHERE
SQL as the primary querying After completing this module, you
Clause
language of SQL Server. It discusses will be able to:
Filtering with the TOP and
the basic structure of T-SQL queries, Write simple SELECT statements.
OFFSET-FETCH Options
the logical flow of a SELECT Eliminate duplicates using the
Working with Unknown and
statement, and introduces concepts DISTINCT clause.
Missing Values
such as predicates and set-based Use column and table aliases.
Lab : Sorting and Filtering
operations. Write simple CASE expressions.
Data
Lessons
Writing Queries That Filter Data
Introducing T-SQL Module 4: Querying Multiple
Using a WHERE Clause
Understanding Sets Tables
Writing Queries That Filter Data
Understanding Predicate Logic This module explains how to write
Using an ORDER BY Clause
Understanding the Logical Order queries which combine data from
Writing Queries That Filter Data
of Operations in SELECT multiple sources in SQL Server. The
Using the TOP Option
statements module introduces the use of JOINs
Writing Queries That Filter Data
Lab : Introduction to Transact- in T-SQL queries as a mechanism
Using the OFFSET-FETCH
SQL Querying for retrieving data from multiple
Clause
Executing Basic SELECT tables.
After completing this module, you
Statements Lessons will be able to:
Executing queries which filter Understanding Joins
Filter data with predicates in the
data using predicates Querying with Inner Joins
WHERE clause.
Executing queries which sort Querying with Outer Joins
Sort data using ORDER BY.
data using ORDER BY Querying with Cross Joins and
Self Joins

For more information about any of our training courses, contact our Learning Consultants
on 1300 86 87246 or email us on info@advancedtraining.com.au
Visit us on the web at www.advancedtraining.com.au
Course Outline
Filter data in the SELECT clause Insert new data into your tables. Write queries which use
with TOP. Update and delete existing aggregate functions
Filter data with OFFSET and records in your tables. Write queries which use distinct
FETCH. aggregate functions
Write queries which filter groups
Module 8: Using Built-In
Module 6: Working with SQL with the HAVING clause
Functions After completing this module, you
Server 2014 Data Types
This module introduces the use of
This module explains the data types will be able to:
functions that are built in to SQL
SQL Server uses to store data. It Write queries which summarize
Server Denali, and will discuss
introduces the many types of data using built-in aggregate
some common usages including
numeric and special-use data types. functions.
data type conversion, testing for
It also explains conversions Use the GROUP BY clause to
logical results and nullability.
between data types, and the arrange rows into groups.
Lessons Use the HAVING clause to filter
importance of type precedence.
Writing Queries with Built-In
Lessons out groups based on a search
Functions
Introducing SQL Server 2014 condition.
Using Conversion Functions
Data Types
Using Logical Functions
Working with Character Data
Using Functions to Work with Module 10: Using Subqueries
Working with Date and Time This module will introduce the use
NULL
Data of subqueries in various parts of a
Lab : Using Built-In Functions
Lab : Working with SQL Server SELECT statement. It will include
Write queries which use
2014 Data Types the use of scalar and multi-result
conversion functions
Writing Queries That Return subqueries, and the use of the IN
Write queries which use logical
Date and Time Data and EXISTS operators.
functions
Writing Queries That Use Date Lessons
Write queries which test for
and Time Functions Writing Self-Contained
nullability
Writing Queries That Return Subqueries
After completing this module, you
Character Data Writing Correlated Subqueries
will be able to:
Writing Queries That Use Using the EXISTS Predicate with
Write queries with built-in scalar
Character Functions Subqueries
functions.
After completing this module, you Lab : Using Subqueries
Use conversion functions.
will be able to: Write queries which use self-
Use logical functions.
Describe numeric data types, contained subqueries
Use functions that work with
type precedence and type Write queries which use scalar
NULL.
conversions. and multi-result subqueries
Write queries using character Write queries which use
Module 9: Grouping and
data types. correlated subqueries and
Aggregating Data
Write queries using date and EXISTS predicate
This module introduces methods
time data types. After completing this module, you
for grouping data within a query,
will be able to:
aggregating the grouped data and
Module 7: Using DML to Describe the uses of queries
filtering groups with HAVING. The
Modify Data which are nested within other
module is designed to help the
This module describes the use of queries.
student grasp why a SELECT clause
Transact-SQL Data Manipulation Write self-contained subqueries
has restrictions placed upon column
Language to perform inserts, which return scalar or multi-
naming in the GROUP BY clause as
updates, and deletes to your data. valued results.
well as which columns may be
Lessons Write correlated subqueries
listed in the SELECT clause.
Inserting Data which return scalar or multi-
Lessons
Modifying and Deleting Data valued results.
Using Aggregate Functions
Lab : Using DML to Modify Using the GROUP BY Clause Use the EXISTS predicate to
Data Filtering Groups with HAVING efficiently check for the existence
Inserting Data of rows in a subquery.
Lab : Grouping and
Updating and Deleting Data
Aggregating Data
After completing this module, you
Write queries which use the
will be able to:
GROUP BY clause

For more information about any of our training courses, contact our Learning Consultants
on 1300 86 87246 or email us on info@advancedtraining.com.au
Visit us on the web at www.advancedtraining.com.au
Course Outline
Module 11: Using Table Write queries which use EXCEPT Module 14: Pivoting and
Expressions and INTERSECT operators Grouping Sets
This module introduces T-SQL After completing this module, you This module discusses techniques
expressions which return a valid will be able to: for pivoting data in T-SQL as well
relational table, typically for further Write queries which combine to introduce the fundamentals of
use in the query. The module data using the UNION operator the GROUPING SETS clause. It will
discusses views, derived tables, Write queries which compare also cover the use of GROUP BY
common table expressions and sets using the INTERSECT and ROLLUP and GROUP BY CUBE
inline table-valued functions. EXCEPT operators syntax in SQL Server.
Lessons Write queries which manipulate Lessons
Using Derived Tables rows in a table by using APPLY Writing Queries with PIVOT and
Using Common Table with the results of a derived table UNPIVOT
Expressions or function Working with Grouping Sets
Using Views Lab : Pivoting and Grouping
Using Inline Table-Valued Module 13: Using Window Sets
Functions Ranking, Offset, and Write queries which use the
Lab : Using Table Expressions Aggregate Functions PIVOT operator
Write Queries Which Use Views This module introduces window Write queries which use the
Write Queries Which Use functions including ranking, UNPIVOT operator
Derived Tables aggregate and offset functions. Write queries which use the
Write Queries Which Use Much of this functionality is new to GROUPING SETS subclause
Common Table Expressions SQL Server 2012. It will cover the After completing this module, you
Write Queries Which Use Inline use of T-SQL functions such as will be able to:
Table-Valued Functions ROW_NUMBER, RANK, Write queries which pivot and
After completing this module, you DENSE_RANK, NTILE, LAG, unpivot result sets.
will be able to: LEAD, FIRST_VALUE and Write queries which specify
Write queries which use derived LAST_VALUE to perform multiple groupings with
tables. calculations against a set, or grouping sets.
Write queries which use common window, of rows.
table expressions. Lessons Module 15: Executing Stored
Create simple views and write Creating Windows with OVER Procedures
queries against them. Exploring Window Functions This module introduces the use of
Create simple inline table-valued Lab : Using Window Ranking, existing stored procedures in a T-
functions and write queries Offset and Aggregate SQL querying environment. It
against them. Functions discusses the use of EXECUTE, how
Write queries which use ranking to pass input and output
Module 12: Using Set functions parameters to a procedure, and how
Operators Write queries which use offset to invoke system stored procedures.
This module introduces Microsoft functions Lessons
SharePoint Server as a platform for Write queries which use window Querying Data with Stored
BI, and then focuses on building BI aggregate functions Procedures
dashboards and scorecards with After completing this module, you Passing Parameters to Stored
PerformancePoint Services. will be able to: Procedures
Lessons Describe the benefits to using Creating Simple Stored
Writing Queries with the UNION window functions. Procedures
Operator Restrict window functions to Working with Dynamic SQL
Using EXCEPT and INTERSECT rows defined in an OVER clause, Lab : Executing Stored
Using APPLY including partitions and frames. Procedures
Lab : Using Set Operators Write queries which use window Use the EXECUTE statement to
Write queries which use UNION functions to operate on a window invoke stored procedures
set operators and UNION ALL of rows and return ranking, Pass parameters to stored
multi-set operators aggregation and offset procedures
Write queries which use CROSS comparison results. Execute system stored
APPLY and OUTER APPLY procedures
operators

For more information about any of our training courses, contact our Learning Consultants
on 1300 86 87246 or email us on info@advancedtraining.com.au
Visit us on the web at www.advancedtraining.com.au
Course Outline
After completing this module, you ERROR class of functions, and the Use SET XACT_ABORT to define
will be able to: use of the new THROW statement. SQL Server's handling of
Return results by executing Lessons transactions outside TRY /
stored procedures. Using TRY / CATCH Blocks CATCH blocks.
Pass parameters to procedures. Working with Error Information Describe the effects of isolation
Create simple stored procedures Lab : Implementing Error levels on transactions.
which encapsulate a SELECT Handling
statement. Redirecting Errors with TRY / Module 19: Improving Query
Construct and execute dynamic CATCH
SQL with EXEC and
Performance
Using THROW to Pass an Error This module presents several key
sp_executesql. Message Back to a Client guidelines for writing well-
After completing this module, you performing queries, as well as ways
Module 16: Programming with will be able to: to monitor the execution of your
T-SQL Describe SQL Server's behavior queries and their impact on
This module provides a basic when errors occur in T-SQL code. Microsoft SQL Server.
introduction to T-SQL Implement structured exception Lessons
programming concepts and objects. handling in T-SQL. Factors in Query Performance
It discusses batches, variables, Return information about errors Displaying Query Performance
control of flow elements such as from system objects. Data
loops and conditionals, how to Raise user-defined errors and
create and execute dynamic SQL
Lab : Improving Query
pass system errors in T-SQL Performance
statements, and how to use code. Viewing Query Execution Plans
synonyms.
Viewing Index Usage and Using
Lessons Module 18: Implementing SET STATISTICS Statements
T-SQL Programming Elements
Transactions After completing this module, you
Controlling Program Flow
This module introduces the will be able to:
Lab : Programming with T-SQL concepts of transaction Describe components of well-
Declaring Variables and management in SQL Server. It will performing queries.
Delimiting Batches provide a high-level overview of Display and interpret basic query
Using Control-of-Flow Elements transaction properties, cover the performance data
Generating Dynamic SQL basics of marking transactions with
Using Synonyms BEGIN, COMMIT and ROLLBACK.
After completing this module, you
Module 20: Querying SQL
Lessons Server Metadata
will be able to:
Transactions and the Database SQL Server provides access to
Describe the language elements
Engine structured metadata by using a
of T-SQL used for simple
Controlling Transactions variety of mechanisms, such as
programming tasks.
Isolation Levels system catalog views, system
Describe batches and how they
Lab : Implementing functions, dynamic management
are handled by SQL Server.
Transactions objects, and system stored
Declare and assign variables and
Controlling transactions with procedures. In this module, you will
synonyms.
BEGIN, COMMIT, and learn how to write queries to return
Use IF and WHILE blocks to
ROLLBACK system metadata using these
control program flow.
Adding error handling to a mechanisms.
CATCH block Lessons
Module 17: Implementing Error After completing this module, you Querying System Catalog Views
Handling will be able to: and Functions
This module introduces the use of
Describe transactions and the Executing System Stored
error handlers in T-SQL code. It will
differences between batches and Procedures
introduce the difference between
transactions. Querying Dynamic Management
compile errors and run-time errors,
Describe batches and how they Objects
and will cover how errors affect
are handled by SQL Server. Lab : Querying SQL Server
batches. The module will also cover
Create and manage transactions Metadata
how to control error handling using
with transaction control language Querying System Catalog Views
TRY/CATCH blocks, the use of the
statements. Querying System Functions

For more information about any of our training courses, contact our Learning Consultants
on 1300 86 87246 or email us on info@advancedtraining.com.au
Visit us on the web at www.advancedtraining.com.au
Course Outline
Querying System Dynamic
Management Views
After completing this module, you
will be able to:
Write queries that retrieve
system metadata using system
views and functions.
Execute system stored
procedures to return system
information.
Write queries that retrieve
system metadata and state
information using system
dynamic management views and
functions.

For more information about any of our training courses, contact our Learning Consultants
on 1300 86 87246 or email us on info@advancedtraining.com.au
Visit us on the web at www.advancedtraining.com.au

Das könnte Ihnen auch gefallen