Querying Microsoft SQL Server® 2014 - Worldwide IT...

25
M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60 Querying Microsoft SQL Server® 2014 Duración: 5 Días Código del Curso: M20461 Version: C Temario: 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. The main purpose of the course is to prepare people for the exam "70-461: Writing Queries Using Microsoft® SQL Server® 2014 Transact-SQL." This exam will be the underlying exam for all SQL Server-related disciplines; namely, Database Administration, Database Development and Business Intelligence. As such, the primary target audience for this course is: Database Administrators, Database Developers and BI professionals.. Note: This course is designed for customers who are interested in learning SQL Server 2012 or SQL Server 2014. It covers the new features in SQL Server 2014, but also the important capabilities across the SQL Server data platform. Dirigido a: This course is intended for Database Administrators, Database Developers, and Business Intelligence professionals. The course will very likely be well attended by SQL power users who aren’t necessarily database-focused or plan on taking the exam; namely, report writers, business analysts and client application developers. Objetivos: After completing this course, students will be able to: Use subqueries Describe the basic architecture and concepts of Microsoft SQL Use table expressions Server 2014. Use set operators Understand the similarities and differences between Transact-SQL and other computer languages. Use window ranking, offset and aggregate functions Write SELECT queries Implement pivoting and grouping sets Query multiple tables Execute stored procedures Sort and filter data Program with T-SQL Describe the use of data types in SQL Server Implement error handling Modify data using Transact-SQL Implement transactions Use built-in functions Group and aggregate data Prerequisitos: Exámenes y certificación This course requires that you meet the following prerequisites: This course helps people prepare for exam 70-461. Working knowledge of relational databases. Basic knowledge of the Microsoft Windows operating system and its core functionality.

Transcript of Querying Microsoft SQL Server® 2014 - Worldwide IT...

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Querying Microsoft SQL Server® 2014

Duración: 5 Días Código del Curso: M20461 Version: C

Temario:

This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQLServer 2014. This course is the foundation for all SQL Server-related disciplines; namely, Database Administration, Database Developmentand Business Intelligence. The main purpose of the course is to prepare people for the exam "70-461: Writing Queries Using Microsoft® SQLServer® 2014 Transact-SQL." This exam will be the underlying exam for all SQL Server-related disciplines; namely, Database Administration,Database Development and Business Intelligence. As such, the primary target audience for this course is: Database Administrators, DatabaseDevelopers and BI professionals..Note: This course is designed for customers who are interested in learning SQL Server 2012 or SQL Server 2014. It covers the new features inSQL Server 2014, but also the important capabilities across the SQL Server data platform.

Dirigido a:

This course is intended for Database Administrators, Database Developers, and Business Intelligence professionals. The course will very likelybe well attended by SQL power users who aren’t necessarily database-focused or plan on taking the exam; namely, report writers, businessanalysts and client application developers.

Objetivos:

After completing this course, students will be able to: Use subqueries

Describe the basic architecture and concepts of Microsoft SQL Use table expressionsServer 2014.

Use set operatorsUnderstand the similarities and differences betweenTransact-SQL and other computer languages. Use window ranking, offset and aggregate functions

Write SELECT queries Implement pivoting and grouping sets

Query multiple tables Execute stored procedures

Sort and filter data Program with T-SQL

Describe the use of data types in SQL Server Implement error handling

Modify data using Transact-SQL Implement transactions

Use built-in functions

Group and aggregate data

Prerequisitos: Exámenes y certificación

This course requires that you meet the following prerequisites: This course helps people prepare for exam 70-461.

Working knowledge of relational databases.Basic knowledge of the Microsoft Windows operating system andits core functionality.

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Contenido:

Module 1: Introduction to Microsoft SQL Server After completing this module, you will be able Lab : Pivoting and Grouping Sets2014 to: lineline line

Describe the architecture and editions of After completing this module, you will be ableThis module introduces the SQL Server SQL Server 2012. to:platform and major tools. It discusses editions, Work with SQL Server Management lineversions, tools used to query, documentation Studio. Describe the architecture and editions ofsources, and the logical structure of databases. Describe the elements of T-SQL and their SQL Server 2012.line role in writing queries Work with SQL Server Management

Describe the use of sets in SQL Server Studio.Lessons Describe the use of predicate logic in Describe the elements of T-SQL and theirline SQL Server role in writing queries

The Basic Architecture of SQL Server Describe the logical order of operations in Describe the use of sets in SQL ServerSQL Server Editions and Versions SELECT statements Describe the use of predicate logic in SQLGetting Started with SQL Server Write simple SELECT statements. ServerManagement Studio Eliminate duplicates using the DISTINCT Describe the logical order of operations inIntroducing T-SQL clause. SELECT statementsUnderstanding Sets Use column and table aliases. Write simple SELECT statements.Understanding Predicate Logic Write simple CASE expressions. Eliminate duplicates using the DISTINCTUnderstanding the Logical Order of Describe how multiple tables may be clause.Operations in SELECT statements queried in a SELECT statement using Use column and table aliases.Writing Simple SELECT Statements joins. Write simple CASE expressions.Eliminate Duplicates with DISTINCT Write queries that use inner joins. Describe how multiple tables may beUsing Column and Table Aliases Write queries that use outer joins. queried in a SELECT statement usingWrite Simple CASE Expressions Write queries that use self-joins and joins.Understanding Joins cross joins. Write queries that use inner joins.Querying with Inner Joins Filter data with predicates in the WHERE Write queries that use outer joins.Querying with Outer Joins clause. Write queries that use self-joins and crossQuerying with Cross Joins and Self Joins Sort data using ORDER BY. joins.Sorting Data Filter data in the SELECT clause with Filter data with predicates in the WHEREFiltering Data with Predicates TOP. clause.Filtering with the TOP and OFFSET-FETCH Filter data with OFFSET and FETCH. Sort data using ORDER BY.Working with Unknown Values Describe numeric data types, type Filter data in the SELECT clause withIntroducing SQL Server 2014 Data Types precedence and type conversions. TOP.Working with Character Data Write queries using character data types. Filter data with OFFSET and FETCH.Working with Date and Time Data Write queries using date and time data Describe numeric data types, typeInserting Data types. precedence and type conversions.Modifying and Deleting Data Insert new data into your tables. Write queries using character data types.Writing Queries with Built-In Functions Update and delete existing records in Write queries using date and time dataUsing Conversion Functions your tables. types.Using Logical Functions Write queries with built-in scalar Insert new data into your tables.Using Functions to Work with NULL functions. Update and delete existing records in yourUsing Aggregate Functions Use conversion functions. tables.Using the GROUP BY Clause Use logical functions. Write queries with built-in scalar functions.Filtering Groups with HAVING Use functions that work with NULL. Use conversion functions.Writing Self-Contained Subqueries Write queries which summarize data Use logical functions.Writing Correlated Subqueries using built-in aggregate functions. Use functions that work with NULL.Using the EXISTS Predicate with Use the GROUP BY clause to arrange Write queries which summarize data usingSubqueries rows into groups. built-in aggregate functions.Using Views Use the HAVING clause to filter out Use the GROUP BY clause to arrangeUsing Inline Table-Valued Functions groups based on a search condition. rows into groups.Using Derived Tables Describe the uses of queries which are Use the HAVING clause to filter out groupsUsing Common Table Expressions nested within other queries. based on a search condition.Writing Queries with the UNION Operator Write self-contained subqueries which Describe the uses of queries which areUsing EXCEPT and INTERSECT return scalar or multi-valued results. nested within other queries.Using APPLY Write correlated subqueries which return Write self-contained subqueries whichCreating Windows with OVER scalar or multi-valued results. return scalar or multi-valued results.Exploring Window Functions Use the EXISTS predicate to efficiently Write correlated subqueries which returnWriting Queries with PIVOT and UNPIVOT check for the existence of rows in a scalar or multi-valued results.Working with Grouping Sets subquery. Use the EXISTS predicate to efficientlyWriting Queries with PIVOT and UNPIVOT Write queries which use derived tables. check for the existence of rows in aPassing Parameters to Stored Procedures Write queries which use common table subquery.Creating Simple Stored Procedures expressions. Write queries which use derived tables.Working with Dynamic SQL Create simple views and write queries Write queries which use common table

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

T-SQL Programming Elements against them. expressions.Controlling Program Flow Create simple inline table-valued Create simple views and write queriesUsing TRY / CATCH Blocks functions and write queries against them. against them.Working with Error Information Write queries which combine data using Create simple inline table-valued functionsTransactions and the Database Engine the UNION operator and write queries against them.Controlling Transactions Write queries which compare sets using Write queries which combine data usingFactors in Query Performance the INTERSECT and EXCEPT operators the UNION operatorDisplaying Query Performance Data Write queries which manipulate rows in a Write queries which compare sets usingQuerying System Catalog Views and table by using APPLY with the results of the INTERSECT and EXCEPT operatorsFunctions a derived table or function Write queries which manipulate rows in aExecuting System Stored Procedures Describe the benefits to using window table by using APPLY with the results of aQuerying Dynamic Management Objects functions. derived table or function

Restrict window functions to rows defined Describe the benefits to using windowLab : Working with SQL Server 2014 Tools in an OVER clause, including partitions functions.line and frames. Restrict window functions to rows defined

Write queries which use window in an OVER clause, including partitionsAfter completing this module, you will be able functions to operate on a window of rows and frames.to: and return ranking, aggregation and Write queries which use window functionsline offset comparison results. to operate on a window of rows and return

Describe the architecture and editions of Write queries which pivot and unpivot ranking, aggregation and offsetSQL Server 2012. result sets. comparison results.Work with SQL Server Management Studio. Write queries which specify multiple Write queries which pivot and unpivotDescribe the elements of T-SQL and their groupings with grouping sets. result sets.role in writing queries Return results by executing stored Write queries which specify multipleDescribe the use of sets in SQL Server procedures. groupings with grouping sets.Describe the use of predicate logic in SQL Pass parameters to procedures. Return results by executing storedServer Create simple stored procedures which procedures.Describe the logical order of operations in encapsulate a SELECT statement. Pass parameters to procedures.SELECT statements Construct and execute dynamic SQL with Create simple stored procedures whichWrite simple SELECT statements. EXEC and sp_executesql. encapsulate a SELECT statement.Eliminate duplicates using the DISTINCT Describe the language elements of Construct and execute dynamic SQL withclause. T-SQL used for simple programming EXEC and sp_executesql.Use column and table aliases. tasks. Describe the language elements of T-SQLWrite simple CASE expressions. Describe batches and how they are used for simple programming tasks.Describe how multiple tables may be handled by SQL Server. Describe batches and how they arequeried in a SELECT statement using joins. Declare and assign variables and handled by SQL Server.Write queries that use inner joins. synonyms. Declare and assign variables andWrite queries that use outer joins. Use IF and WHILE blocks to control synonyms.Write queries that use self-joins and cross program flow. Use IF and WHILE blocks to controljoins. Describe SQL Server's behavior when program flow.Filter data with predicates in the WHERE errors occur in T-SQL code. Describe SQL Server's behavior whenclause. Implement structured exception handling errors occur in T-SQL code.Sort data using ORDER BY. in T-SQL. Implement structured exception handling inFilter data in the SELECT clause with TOP. Return information about errors from T-SQL.Filter data with OFFSET and FETCH. system objects. Return information about errors fromDescribe numeric data types, type Raise user-defined errors and pass system objects.precedence and type conversions. system errors in T-SQL code. Raise user-defined errors and pass systemWrite queries using character data types. Describe transactions and the differences errors in T-SQL code.Write queries using date and time data between batches and transactions. Describe transactions and the differencestypes. Describe batches and how they are between batches and transactions.Insert new data into your tables. handled by SQL Server. Describe batches and how they areUpdate and delete existing records in your Create and manage transactions with handled by SQL Server.tables. transaction control language statements. Create and manage transactions withWrite queries with built-in scalar functions. Use SET XACT_ABORT to define SQL transaction control language statements.Use conversion functions. Server's handling of transactions outside Use SET XACT_ABORT to define SQLUse logical functions. TRY / CATCH blocks. Server's handling of transactions outsideUse functions that work with NULL. Describe the effects of isolation levels on TRY / CATCH blocks.Write queries which summarize data using transactions. Describe the effects of isolation levels onbuilt-in aggregate functions. Describe components of well-performing transactions.Use the GROUP BY clause to arrange rows queries. Describe components of well-performinginto groups. Display and interpret basic query queries.Use the HAVING clause to filter out groups performance data Display and interpret basic querybased on a search condition. Write queries that retrieve system performance dataDescribe the uses of queries which are metadata using system views and Write queries that retrieve systemnested within other queries. functions. metadata using system views andWrite self-contained subqueries which return Execute system stored procedures to functions.

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

scalar or multi-valued results. return system information. Execute system stored procedures toWrite correlated subqueries which return Write queries that retrieve system return system information.scalar or multi-valued results. metadata and state information using Write queries that retrieve systemUse the EXISTS predicate to efficiently system dynamic management views and metadata and state information usingcheck for the existence of rows in a functions. system dynamic management views andsubquery. functions.Write queries which use derived tables. Module 8: Using Built-In FunctionsWrite queries which use common table line Module 15: Querying data with Storedexpressions. ProceduresCreate simple views and write queries This module introduces the use of functions lineagainst them. that are built in to SQL Server Denali, and willCreate simple inline table-valued functions discuss some common usages including data This module introduces the use of existingand write queries against them. type conversion, testing for logical results and stored procedures in a T-SQL queryingWrite queries which combine data using the nullability. environment. It discusses the use ofUNION operator line EXECUTE, how to pass input and outputWrite queries which compare sets using the parameters to a procedure, and how to invokeINTERSECT and EXCEPT operators Lessons system stored procedures.Write queries which manipulate rows in a line linetable by using APPLY with the results of a The Basic Architecture of SQL Serverderived table or function SQL Server Editions and Versions LessonsDescribe the benefits to using window Getting Started with SQL Server linefunctions. Management Studio The Basic Architecture of SQL ServerRestrict window functions to rows defined in Introducing T-SQL SQL Server Editions and Versionsan OVER clause, including partitions and Understanding Sets Getting Started with SQL Serverframes. Understanding Predicate Logic Management StudioWrite queries which use window functions to Understanding the Logical Order of Introducing T-SQLoperate on a window of rows and return Operations in SELECT statements Understanding Setsranking, aggregation and offset comparison Writing Simple SELECT Statements Understanding Predicate Logicresults. Eliminate Duplicates with DISTINCT Understanding the Logical Order ofWrite queries which pivot and unpivot result Using Column and Table Aliases Operations in SELECT statementssets. Write Simple CASE Expressions Writing Simple SELECT StatementsWrite queries which specify multiple Understanding Joins Eliminate Duplicates with DISTINCTgroupings with grouping sets. Querying with Inner Joins Using Column and Table AliasesReturn results by executing stored Querying with Outer Joins Write Simple CASE Expressionsprocedures. Querying with Cross Joins and Self Joins Understanding JoinsPass parameters to procedures. Sorting Data Querying with Inner JoinsCreate simple stored procedures which Filtering Data with Predicates Querying with Outer Joinsencapsulate a SELECT statement. Filtering with the TOP and Querying with Cross Joins and Self JoinsConstruct and execute dynamic SQL with OFFSET-FETCH Sorting DataEXEC and sp_executesql. Working with Unknown Values Filtering Data with PredicatesDescribe the language elements of T-SQL Introducing SQL Server 2014 Data Types Filtering with the TOP andused for simple programming tasks. Working with Character Data OFFSET-FETCHDescribe batches and how they are handled Working with Date and Time Data Working with Unknown Valuesby SQL Server. Inserting Data Introducing SQL Server 2014 Data TypesDeclare and assign variables and synonyms. Modifying and Deleting Data Working with Character DataUse IF and WHILE blocks to control Writing Queries with Built-In Functions Working with Date and Time Dataprogram flow. Using Conversion Functions Inserting DataDescribe SQL Server's behavior when errors Using Logical Functions Modifying and Deleting Dataoccur in T-SQL code. Using Functions to Work with NULL Writing Queries with Built-In FunctionsImplement structured exception handling in Using Aggregate Functions Using Conversion FunctionsT-SQL. Using the GROUP BY Clause Using Logical FunctionsReturn information about errors from system Filtering Groups with HAVING Using Functions to Work with NULLobjects. Writing Self-Contained Subqueries Using Aggregate FunctionsRaise user-defined errors and pass system Writing Correlated Subqueries Using the GROUP BY Clauseerrors in T-SQL code. Using the EXISTS Predicate with Filtering Groups with HAVINGDescribe transactions and the differences Subqueries Writing Self-Contained Subqueriesbetween batches and transactions. Using Views Writing Correlated SubqueriesDescribe batches and how they are handled Using Inline Table-Valued Functions Using the EXISTS Predicate withby SQL Server. Using Derived Tables SubqueriesCreate and manage transactions with Using Common Table Expressions Using Viewstransaction control language statements. Writing Queries with the UNION Operator Using Inline Table-Valued FunctionsUse SET XACT_ABORT to define SQL Using EXCEPT and INTERSECT Using Derived TablesServer's handling of transactions outside Using APPLY Using Common Table ExpressionsTRY / CATCH blocks. Creating Windows with OVER Writing Queries with the UNION OperatorDescribe the effects of isolation levels on Exploring Window Functions Using EXCEPT and INTERSECTtransactions. Writing Queries with PIVOT and Using APPLY

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Describe components of well-performing UNPIVOT Creating Windows with OVERqueries. Working with Grouping Sets Exploring Window FunctionsDisplay and interpret basic query Writing Queries with PIVOT and Writing Queries with PIVOT and UNPIVOTperformance data UNPIVOT Working with Grouping SetsWrite queries that retrieve system metadata Passing Parameters to Stored Writing Queries with PIVOT and UNPIVOTusing system views and functions. Procedures Passing Parameters to Stored ProceduresExecute system stored procedures to return Creating Simple Stored Procedures Creating Simple Stored Proceduressystem information. Working with Dynamic SQL Working with Dynamic SQLWrite queries that retrieve system metadata T-SQL Programming Elements T-SQL Programming Elementsand state information using system dynamic Controlling Program Flow Controlling Program Flowmanagement views and functions. Using TRY / CATCH Blocks Using TRY / CATCH Blocks

Working with Error Information Working with Error InformationModule 2: Introduction to T-SQL Querying Transactions and the Database Engine Transactions and the Database Engineline Controlling Transactions Controlling Transactions

Factors in Query Performance Factors in Query PerformanceThis module introduces Transact SQL as the Displaying Query Performance Data Displaying Query Performance Dataprimary querying language of SQL Server. It Querying System Catalog Views and Querying System Catalog Views anddiscusses the basic structure of T-SQL queries, Functions Functionsthe logical flow of a SELECT statement, and Executing System Stored Procedures Executing System Stored Proceduresintroduces concepts such as predicates and Querying Dynamic Management Objects Querying Dynamic Management Objectsset-based operations.line Lab : Using Built-In Functions Lab : Executing Stored Procedures

line lineLessonsline After completing this module, you will be able After completing this module, you will be able

The Basic Architecture of SQL Server to: to:SQL Server Editions and Versions line lineGetting Started with SQL Server Describe the architecture and editions of Describe the architecture and editions ofManagement Studio SQL Server 2012. SQL Server 2012.Introducing T-SQL Work with SQL Server Management Work with SQL Server ManagementUnderstanding Sets Studio. Studio.Understanding Predicate Logic Describe the elements of T-SQL and their Describe the elements of T-SQL and theirUnderstanding the Logical Order of role in writing queries role in writing queriesOperations in SELECT statements Describe the use of sets in SQL Server Describe the use of sets in SQL ServerWriting Simple SELECT Statements Describe the use of predicate logic in Describe the use of predicate logic in SQLEliminate Duplicates with DISTINCT SQL Server ServerUsing Column and Table Aliases Describe the logical order of operations in Describe the logical order of operations inWrite Simple CASE Expressions SELECT statements SELECT statementsUnderstanding Joins Write simple SELECT statements. Write simple SELECT statements.Querying with Inner Joins Eliminate duplicates using the DISTINCT Eliminate duplicates using the DISTINCTQuerying with Outer Joins clause. clause.Querying with Cross Joins and Self Joins Use column and table aliases. Use column and table aliases.Sorting Data Write simple CASE expressions. Write simple CASE expressions.Filtering Data with Predicates Describe how multiple tables may be Describe how multiple tables may beFiltering with the TOP and OFFSET-FETCH queried in a SELECT statement using queried in a SELECT statement usingWorking with Unknown Values joins. joins.Introducing SQL Server 2014 Data Types Write queries that use inner joins. Write queries that use inner joins.Working with Character Data Write queries that use outer joins. Write queries that use outer joins.Working with Date and Time Data Write queries that use self-joins and Write queries that use self-joins and crossInserting Data cross joins. joins.Modifying and Deleting Data Filter data with predicates in the WHERE Filter data with predicates in the WHEREWriting Queries with Built-In Functions clause. clause.Using Conversion Functions Sort data using ORDER BY. Sort data using ORDER BY.Using Logical Functions Filter data in the SELECT clause with Filter data in the SELECT clause withUsing Functions to Work with NULL TOP. TOP.Using Aggregate Functions Filter data with OFFSET and FETCH. Filter data with OFFSET and FETCH.Using the GROUP BY Clause Describe numeric data types, type Describe numeric data types, typeFiltering Groups with HAVING precedence and type conversions. precedence and type conversions.Writing Self-Contained Subqueries Write queries using character data types. Write queries using character data types.Writing Correlated Subqueries Write queries using date and time data Write queries using date and time dataUsing the EXISTS Predicate with types. types.Subqueries Insert new data into your tables. Insert new data into your tables.Using Views Update and delete existing records in Update and delete existing records in yourUsing Inline Table-Valued Functions your tables. tables.Using Derived Tables Write queries with built-in scalar Write queries with built-in scalar functions.Using Common Table Expressions functions. Use conversion functions.

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Writing Queries with the UNION Operator Use conversion functions. Use logical functions.Using EXCEPT and INTERSECT Use logical functions. Use functions that work with NULL.Using APPLY Use functions that work with NULL. Write queries which summarize data usingCreating Windows with OVER Write queries which summarize data built-in aggregate functions.Exploring Window Functions using built-in aggregate functions. Use the GROUP BY clause to arrangeWriting Queries with PIVOT and UNPIVOT Use the GROUP BY clause to arrange rows into groups.Working with Grouping Sets rows into groups. Use the HAVING clause to filter out groupsWriting Queries with PIVOT and UNPIVOT Use the HAVING clause to filter out based on a search condition.Passing Parameters to Stored Procedures groups based on a search condition. Describe the uses of queries which areCreating Simple Stored Procedures Describe the uses of queries which are nested within other queries.Working with Dynamic SQL nested within other queries. Write self-contained subqueries whichT-SQL Programming Elements Write self-contained subqueries which return scalar or multi-valued results.Controlling Program Flow return scalar or multi-valued results. Write correlated subqueries which returnUsing TRY / CATCH Blocks Write correlated subqueries which return scalar or multi-valued results.Working with Error Information scalar or multi-valued results. Use the EXISTS predicate to efficientlyTransactions and the Database Engine Use the EXISTS predicate to efficiently check for the existence of rows in aControlling Transactions check for the existence of rows in a subquery.Factors in Query Performance subquery. Write queries which use derived tables.Displaying Query Performance Data Write queries which use derived tables. Write queries which use common tableQuerying System Catalog Views and Write queries which use common table expressions.Functions expressions. Create simple views and write queriesExecuting System Stored Procedures Create simple views and write queries against them.Querying Dynamic Management Objects against them. Create simple inline table-valued functions

Create simple inline table-valued and write queries against them.Lab : Introduction to Transact-SQL Querying functions and write queries against them. Write queries which combine data usingline Write queries which combine data using the UNION operator

the UNION operator Write queries which compare sets usingAfter completing this module, you will be able Write queries which compare sets using the INTERSECT and EXCEPT operatorsto: the INTERSECT and EXCEPT operators Write queries which manipulate rows in aline Write queries which manipulate rows in a table by using APPLY with the results of a

Describe the architecture and editions of table by using APPLY with the results of derived table or functionSQL Server 2012. a derived table or function Describe the benefits to using windowWork with SQL Server Management Studio. Describe the benefits to using window functions.Describe the elements of T-SQL and their functions. Restrict window functions to rows definedrole in writing queries Restrict window functions to rows defined in an OVER clause, including partitionsDescribe the use of sets in SQL Server in an OVER clause, including partitions and frames.Describe the use of predicate logic in SQL and frames. Write queries which use window functionsServer Write queries which use window to operate on a window of rows and returnDescribe the logical order of operations in functions to operate on a window of rows ranking, aggregation and offsetSELECT statements and return ranking, aggregation and comparison results.Write simple SELECT statements. offset comparison results. Write queries which pivot and unpivotEliminate duplicates using the DISTINCT Write queries which pivot and unpivot result sets.clause. result sets. Write queries which specify multipleUse column and table aliases. Write queries which specify multiple groupings with grouping sets.Write simple CASE expressions. groupings with grouping sets. Return results by executing storedDescribe how multiple tables may be Return results by executing stored procedures.queried in a SELECT statement using joins. procedures. Pass parameters to procedures.Write queries that use inner joins. Pass parameters to procedures. Create simple stored procedures whichWrite queries that use outer joins. Create simple stored procedures which encapsulate a SELECT statement.Write queries that use self-joins and cross encapsulate a SELECT statement. Construct and execute dynamic SQL withjoins. Construct and execute dynamic SQL with EXEC and sp_executesql.Filter data with predicates in the WHERE EXEC and sp_executesql. Describe the language elements of T-SQLclause. Describe the language elements of used for simple programming tasks.Sort data using ORDER BY. T-SQL used for simple programming Describe batches and how they areFilter data in the SELECT clause with TOP. tasks. handled by SQL Server.Filter data with OFFSET and FETCH. Describe batches and how they are Declare and assign variables andDescribe numeric data types, type handled by SQL Server. synonyms.precedence and type conversions. Declare and assign variables and Use IF and WHILE blocks to controlWrite queries using character data types. synonyms. program flow.Write queries using date and time data Use IF and WHILE blocks to control Describe SQL Server's behavior whentypes. program flow. errors occur in T-SQL code.Insert new data into your tables. Describe SQL Server's behavior when Implement structured exception handling inUpdate and delete existing records in your errors occur in T-SQL code. T-SQL.tables. Implement structured exception handling Return information about errors fromWrite queries with built-in scalar functions. in T-SQL. system objects.Use conversion functions. Return information about errors from Raise user-defined errors and pass system

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Use logical functions. system objects. errors in T-SQL code.Use functions that work with NULL. Raise user-defined errors and pass Describe transactions and the differencesWrite queries which summarize data using system errors in T-SQL code. between batches and transactions.built-in aggregate functions. Describe transactions and the differences Describe batches and how they areUse the GROUP BY clause to arrange rows between batches and transactions. handled by SQL Server.into groups. Describe batches and how they are Create and manage transactions withUse the HAVING clause to filter out groups handled by SQL Server. transaction control language statements.based on a search condition. Create and manage transactions with Use SET XACT_ABORT to define SQLDescribe the uses of queries which are transaction control language statements. Server's handling of transactions outsidenested within other queries. Use SET XACT_ABORT to define SQL TRY / CATCH blocks.Write self-contained subqueries which return Server's handling of transactions outside Describe the effects of isolation levels onscalar or multi-valued results. TRY / CATCH blocks. transactions.Write correlated subqueries which return Describe the effects of isolation levels on Describe components of well-performingscalar or multi-valued results. transactions. queries.Use the EXISTS predicate to efficiently Describe components of well-performing Display and interpret basic querycheck for the existence of rows in a queries. performance datasubquery. Display and interpret basic query Write queries that retrieve systemWrite queries which use derived tables. performance data metadata using system views andWrite queries which use common table Write queries that retrieve system functions.expressions. metadata using system views and Execute system stored procedures toCreate simple views and write queries functions. return system information.against them. Execute system stored procedures to Write queries that retrieve systemCreate simple inline table-valued functions return system information. metadata and state information usingand write queries against them. Write queries that retrieve system system dynamic management views andWrite queries which combine data using the metadata and state information using functions.UNION operator system dynamic management views andWrite queries which compare sets using the functions. Module 16: Programming with T-SQLINTERSECT and EXCEPT operators lineWrite queries which manipulate rows in a Module 9: Grouping and Aggregating Datatable by using APPLY with the results of a line This module provides a basic introduction toderived table or function T-SQL programming concepts and objects. ItDescribe the benefits to using window This module introduces methods for grouping discusses batches, variables, control of flowfunctions. data within a query, aggregating the grouped elements such as loops and conditionals, howRestrict window functions to rows defined in data and filtering groups with HAVING. The to create and execute dynamic SQLan OVER clause, including partitions and module is designed to help the student grasp statements, and how to use synonyms.frames. why a SELECT clause has restrictions placed lineWrite queries which use window functions to upon column naming in the GROUP BYoperate on a window of rows and return clause as well as which columns may be Lessonsranking, aggregation and offset comparison listed in the SELECT clause. lineresults. line The Basic Architecture of SQL ServerWrite queries which pivot and unpivot result SQL Server Editions and Versionssets. Lessons Getting Started with SQL ServerWrite queries which specify multiple line Management Studiogroupings with grouping sets. The Basic Architecture of SQL Server Introducing T-SQLReturn results by executing stored SQL Server Editions and Versions Understanding Setsprocedures. Getting Started with SQL Server Understanding Predicate LogicPass parameters to procedures. Management Studio Understanding the Logical Order ofCreate simple stored procedures which Introducing T-SQL Operations in SELECT statementsencapsulate a SELECT statement. Understanding Sets Writing Simple SELECT StatementsConstruct and execute dynamic SQL with Understanding Predicate Logic Eliminate Duplicates with DISTINCTEXEC and sp_executesql. Understanding the Logical Order of Using Column and Table AliasesDescribe the language elements of T-SQL Operations in SELECT statements Write Simple CASE Expressionsused for simple programming tasks. Writing Simple SELECT Statements Understanding JoinsDescribe batches and how they are handled Eliminate Duplicates with DISTINCT Querying with Inner Joinsby SQL Server. Using Column and Table Aliases Querying with Outer JoinsDeclare and assign variables and synonyms. Write Simple CASE Expressions Querying with Cross Joins and Self JoinsUse IF and WHILE blocks to control Understanding Joins Sorting Dataprogram flow. Querying with Inner Joins Filtering Data with PredicatesDescribe SQL Server's behavior when errors Querying with Outer Joins Filtering with the TOP andoccur in T-SQL code. Querying with Cross Joins and Self Joins OFFSET-FETCHImplement structured exception handling in Sorting Data Working with Unknown ValuesT-SQL. Filtering Data with Predicates Introducing SQL Server 2014 Data TypesReturn information about errors from system Filtering with the TOP and Working with Character Dataobjects. OFFSET-FETCH Working with Date and Time DataRaise user-defined errors and pass system Working with Unknown Values Inserting Dataerrors in T-SQL code. Introducing SQL Server 2014 Data Types Modifying and Deleting Data

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Describe transactions and the differences Working with Character Data Writing Queries with Built-In Functionsbetween batches and transactions. Working with Date and Time Data Using Conversion FunctionsDescribe batches and how they are handled Inserting Data Using Logical Functionsby SQL Server. Modifying and Deleting Data Using Functions to Work with NULLCreate and manage transactions with Writing Queries with Built-In Functions Using Aggregate Functionstransaction control language statements. Using Conversion Functions Using the GROUP BY ClauseUse SET XACT_ABORT to define SQL Using Logical Functions Filtering Groups with HAVINGServer's handling of transactions outside Using Functions to Work with NULL Writing Self-Contained SubqueriesTRY / CATCH blocks. Using Aggregate Functions Writing Correlated SubqueriesDescribe the effects of isolation levels on Using the GROUP BY Clause Using the EXISTS Predicate withtransactions. Filtering Groups with HAVING SubqueriesDescribe components of well-performing Writing Self-Contained Subqueries Using Viewsqueries. Writing Correlated Subqueries Using Inline Table-Valued FunctionsDisplay and interpret basic query Using the EXISTS Predicate with Using Derived Tablesperformance data Subqueries Using Common Table ExpressionsWrite queries that retrieve system metadata Using Views Writing Queries with the UNION Operatorusing system views and functions. Using Inline Table-Valued Functions Using EXCEPT and INTERSECTExecute system stored procedures to return Using Derived Tables Using APPLYsystem information. Using Common Table Expressions Creating Windows with OVERWrite queries that retrieve system metadata Writing Queries with the UNION Operator Exploring Window Functionsand state information using system dynamic Using EXCEPT and INTERSECT Writing Queries with PIVOT and UNPIVOTmanagement views and functions. Using APPLY Working with Grouping Sets

Creating Windows with OVER Writing Queries with PIVOT and UNPIVOTModule 3: Writing SELECT Queries Exploring Window Functions Passing Parameters to Stored Proceduresline Writing Queries with PIVOT and Creating Simple Stored Procedures

UNPIVOT Working with Dynamic SQLThis module introduces the fundamentals of the Working with Grouping Sets T-SQL Programming ElementsSELECT statement, focusing on queries Writing Queries with PIVOT and Controlling Program Flowagainst a single table. UNPIVOT Using TRY / CATCH Blocksline Passing Parameters to Stored Working with Error Information

Procedures Transactions and the Database EngineLessons Creating Simple Stored Procedures Controlling Transactionsline Working with Dynamic SQL Factors in Query Performance

The Basic Architecture of SQL Server T-SQL Programming Elements Displaying Query Performance DataSQL Server Editions and Versions Controlling Program Flow Querying System Catalog Views andGetting Started with SQL Server Using TRY / CATCH Blocks FunctionsManagement Studio Working with Error Information Executing System Stored ProceduresIntroducing T-SQL Transactions and the Database Engine Querying Dynamic Management ObjectsUnderstanding Sets Controlling TransactionsUnderstanding Predicate Logic Factors in Query Performance Lab : Programming with T-SQLUnderstanding the Logical Order of Displaying Query Performance Data lineOperations in SELECT statements Querying System Catalog Views andWriting Simple SELECT Statements Functions After completing this module, you will be ableEliminate Duplicates with DISTINCT Executing System Stored Procedures to:Using Column and Table Aliases Querying Dynamic Management Objects lineWrite Simple CASE Expressions Describe the architecture and editions ofUnderstanding Joins Lab : Grouping and Aggregating Data SQL Server 2012.Querying with Inner Joins line Work with SQL Server ManagementQuerying with Outer Joins Studio.Querying with Cross Joins and Self Joins After completing this module, you will be able Describe the elements of T-SQL and theirSorting Data to: role in writing queriesFiltering Data with Predicates line Describe the use of sets in SQL ServerFiltering with the TOP and OFFSET-FETCH Describe the architecture and editions of Describe the use of predicate logic in SQLWorking with Unknown Values SQL Server 2012. ServerIntroducing SQL Server 2014 Data Types Work with SQL Server Management Describe the logical order of operations inWorking with Character Data Studio. SELECT statementsWorking with Date and Time Data Describe the elements of T-SQL and their Write simple SELECT statements.Inserting Data role in writing queries Eliminate duplicates using the DISTINCTModifying and Deleting Data Describe the use of sets in SQL Server clause.Writing Queries with Built-In Functions Describe the use of predicate logic in Use column and table aliases.Using Conversion Functions SQL Server Write simple CASE expressions.Using Logical Functions Describe the logical order of operations in Describe how multiple tables may beUsing Functions to Work with NULL SELECT statements queried in a SELECT statement usingUsing Aggregate Functions Write simple SELECT statements. joins.Using the GROUP BY Clause Eliminate duplicates using the DISTINCT Write queries that use inner joins.Filtering Groups with HAVING clause. Write queries that use outer joins.

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Writing Self-Contained Subqueries Use column and table aliases. Write queries that use self-joins and crossWriting Correlated Subqueries Write simple CASE expressions. joins.Using the EXISTS Predicate with Describe how multiple tables may be Filter data with predicates in the WHERESubqueries queried in a SELECT statement using clause.Using Views joins. Sort data using ORDER BY.Using Inline Table-Valued Functions Write queries that use inner joins. Filter data in the SELECT clause withUsing Derived Tables Write queries that use outer joins. TOP.Using Common Table Expressions Write queries that use self-joins and Filter data with OFFSET and FETCH.Writing Queries with the UNION Operator cross joins. Describe numeric data types, typeUsing EXCEPT and INTERSECT Filter data with predicates in the WHERE precedence and type conversions.Using APPLY clause. Write queries using character data types.Creating Windows with OVER Sort data using ORDER BY. Write queries using date and time dataExploring Window Functions Filter data in the SELECT clause with types.Writing Queries with PIVOT and UNPIVOT TOP. Insert new data into your tables.Working with Grouping Sets Filter data with OFFSET and FETCH. Update and delete existing records in yourWriting Queries with PIVOT and UNPIVOT Describe numeric data types, type tables.Passing Parameters to Stored Procedures precedence and type conversions. Write queries with built-in scalar functions.Creating Simple Stored Procedures Write queries using character data types. Use conversion functions.Working with Dynamic SQL Write queries using date and time data Use logical functions.T-SQL Programming Elements types. Use functions that work with NULL.Controlling Program Flow Insert new data into your tables. Write queries which summarize data usingUsing TRY / CATCH Blocks Update and delete existing records in built-in aggregate functions.Working with Error Information your tables. Use the GROUP BY clause to arrangeTransactions and the Database Engine Write queries with built-in scalar rows into groups.Controlling Transactions functions. Use the HAVING clause to filter out groupsFactors in Query Performance Use conversion functions. based on a search condition.Displaying Query Performance Data Use logical functions. Describe the uses of queries which areQuerying System Catalog Views and Use functions that work with NULL. nested within other queries.Functions Write queries which summarize data Write self-contained subqueries whichExecuting System Stored Procedures using built-in aggregate functions. return scalar or multi-valued results.Querying Dynamic Management Objects Use the GROUP BY clause to arrange Write correlated subqueries which return

rows into groups. scalar or multi-valued results.Lab : Writing Basic SELECT Statements Use the HAVING clause to filter out Use the EXISTS predicate to efficientlyline groups based on a search condition. check for the existence of rows in a

Describe the uses of queries which are subquery.After completing this module, you will be able nested within other queries. Write queries which use derived tables.to: Write self-contained subqueries which Write queries which use common tableline return scalar or multi-valued results. expressions.

Describe the architecture and editions of Write correlated subqueries which return Create simple views and write queriesSQL Server 2012. scalar or multi-valued results. against them.Work with SQL Server Management Studio. Use the EXISTS predicate to efficiently Create simple inline table-valued functionsDescribe the elements of T-SQL and their check for the existence of rows in a and write queries against them.role in writing queries subquery. Write queries which combine data usingDescribe the use of sets in SQL Server Write queries which use derived tables. the UNION operatorDescribe the use of predicate logic in SQL Write queries which use common table Write queries which compare sets usingServer expressions. the INTERSECT and EXCEPT operatorsDescribe the logical order of operations in Create simple views and write queries Write queries which manipulate rows in aSELECT statements against them. table by using APPLY with the results of aWrite simple SELECT statements. Create simple inline table-valued derived table or functionEliminate duplicates using the DISTINCT functions and write queries against them. Describe the benefits to using windowclause. Write queries which combine data using functions.Use column and table aliases. the UNION operator Restrict window functions to rows definedWrite simple CASE expressions. Write queries which compare sets using in an OVER clause, including partitionsDescribe how multiple tables may be the INTERSECT and EXCEPT operators and frames.queried in a SELECT statement using joins. Write queries which manipulate rows in a Write queries which use window functionsWrite queries that use inner joins. table by using APPLY with the results of to operate on a window of rows and returnWrite queries that use outer joins. a derived table or function ranking, aggregation and offsetWrite queries that use self-joins and cross Describe the benefits to using window comparison results.joins. functions. Write queries which pivot and unpivotFilter data with predicates in the WHERE Restrict window functions to rows defined result sets.clause. in an OVER clause, including partitions Write queries which specify multipleSort data using ORDER BY. and frames. groupings with grouping sets.Filter data in the SELECT clause with TOP. Write queries which use window Return results by executing storedFilter data with OFFSET and FETCH. functions to operate on a window of rows procedures.Describe numeric data types, type and return ranking, aggregation and Pass parameters to procedures.precedence and type conversions. offset comparison results. Create simple stored procedures which

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Write queries using character data types. Write queries which pivot and unpivot encapsulate a SELECT statement.Write queries using date and time data result sets. Construct and execute dynamic SQL withtypes. Write queries which specify multiple EXEC and sp_executesql.Insert new data into your tables. groupings with grouping sets. Describe the language elements of T-SQLUpdate and delete existing records in your Return results by executing stored used for simple programming tasks.tables. procedures. Describe batches and how they areWrite queries with built-in scalar functions. Pass parameters to procedures. handled by SQL Server.Use conversion functions. Create simple stored procedures which Declare and assign variables andUse logical functions. encapsulate a SELECT statement. synonyms.Use functions that work with NULL. Construct and execute dynamic SQL with Use IF and WHILE blocks to controlWrite queries which summarize data using EXEC and sp_executesql. program flow.built-in aggregate functions. Describe the language elements of Describe SQL Server's behavior whenUse the GROUP BY clause to arrange rows T-SQL used for simple programming errors occur in T-SQL code.into groups. tasks. Implement structured exception handling inUse the HAVING clause to filter out groups Describe batches and how they are T-SQL.based on a search condition. handled by SQL Server. Return information about errors fromDescribe the uses of queries which are Declare and assign variables and system objects.nested within other queries. synonyms. Raise user-defined errors and pass systemWrite self-contained subqueries which return Use IF and WHILE blocks to control errors in T-SQL code.scalar or multi-valued results. program flow. Describe transactions and the differencesWrite correlated subqueries which return Describe SQL Server's behavior when between batches and transactions.scalar or multi-valued results. errors occur in T-SQL code. Describe batches and how they areUse the EXISTS predicate to efficiently Implement structured exception handling handled by SQL Server.check for the existence of rows in a in T-SQL. Create and manage transactions withsubquery. Return information about errors from transaction control language statements.Write queries which use derived tables. system objects. Use SET XACT_ABORT to define SQLWrite queries which use common table Raise user-defined errors and pass Server's handling of transactions outsideexpressions. system errors in T-SQL code. TRY / CATCH blocks.Create simple views and write queries Describe transactions and the differences Describe the effects of isolation levels onagainst them. between batches and transactions. transactions.Create simple inline table-valued functions Describe batches and how they are Describe components of well-performingand write queries against them. handled by SQL Server. queries.Write queries which combine data using the Create and manage transactions with Display and interpret basic queryUNION operator transaction control language statements. performance dataWrite queries which compare sets using the Use SET XACT_ABORT to define SQL Write queries that retrieve systemINTERSECT and EXCEPT operators Server's handling of transactions outside metadata using system views andWrite queries which manipulate rows in a TRY / CATCH blocks. functions.table by using APPLY with the results of a Describe the effects of isolation levels on Execute system stored procedures toderived table or function transactions. return system information.Describe the benefits to using window Describe components of well-performing Write queries that retrieve systemfunctions. queries. metadata and state information usingRestrict window functions to rows defined in Display and interpret basic query system dynamic management views andan OVER clause, including partitions and performance data functions.frames. Write queries that retrieve systemWrite queries which use window functions to metadata using system views and Module 17: Implementing Error Handlingoperate on a window of rows and return functions. lineranking, aggregation and offset comparison Execute system stored procedures toresults. return system information. This module introduces the use of errorWrite queries which pivot and unpivot result Write queries that retrieve system handlers in T-SQL code. It will introduce thesets. metadata and state information using difference between compile errors andWrite queries which specify multiple system dynamic management views and run-time errors, and will cover how errorsgroupings with grouping sets. functions. affect batches. The module will also coverReturn results by executing stored how to control error handling usingprocedures. Module 10: Using Subqueries TRY/CATCH blocks, the use of the ERRORPass parameters to procedures. line class of functions, and the use of the newCreate simple stored procedures which THROW statement.encapsulate a SELECT statement. This module will introduce the use of lineConstruct and execute dynamic SQL with subqueries in various parts of a SELECTEXEC and sp_executesql. statement. It will include the use of scalar and LessonsDescribe the language elements of T-SQL multi-result subqueries, and the use of the IN lineused for simple programming tasks. and EXISTS operators. The Basic Architecture of SQL ServerDescribe batches and how they are handled line SQL Server Editions and Versionsby SQL Server. Getting Started with SQL ServerDeclare and assign variables and synonyms. Lessons Management StudioUse IF and WHILE blocks to control line Introducing T-SQLprogram flow. The Basic Architecture of SQL Server Understanding Sets

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Describe SQL Server's behavior when errors SQL Server Editions and Versions Understanding Predicate Logicoccur in T-SQL code. Getting Started with SQL Server Understanding the Logical Order ofImplement structured exception handling in Management Studio Operations in SELECT statementsT-SQL. Introducing T-SQL Writing Simple SELECT StatementsReturn information about errors from system Understanding Sets Eliminate Duplicates with DISTINCTobjects. Understanding Predicate Logic Using Column and Table AliasesRaise user-defined errors and pass system Understanding the Logical Order of Write Simple CASE Expressionserrors in T-SQL code. Operations in SELECT statements Understanding JoinsDescribe transactions and the differences Writing Simple SELECT Statements Querying with Inner Joinsbetween batches and transactions. Eliminate Duplicates with DISTINCT Querying with Outer JoinsDescribe batches and how they are handled Using Column and Table Aliases Querying with Cross Joins and Self Joinsby SQL Server. Write Simple CASE Expressions Sorting DataCreate and manage transactions with Understanding Joins Filtering Data with Predicatestransaction control language statements. Querying with Inner Joins Filtering with the TOP andUse SET XACT_ABORT to define SQL Querying with Outer Joins OFFSET-FETCHServer's handling of transactions outside Querying with Cross Joins and Self Joins Working with Unknown ValuesTRY / CATCH blocks. Sorting Data Introducing SQL Server 2014 Data TypesDescribe the effects of isolation levels on Filtering Data with Predicates Working with Character Datatransactions. Filtering with the TOP and Working with Date and Time DataDescribe components of well-performing OFFSET-FETCH Inserting Dataqueries. Working with Unknown Values Modifying and Deleting DataDisplay and interpret basic query Introducing SQL Server 2014 Data Types Writing Queries with Built-In Functionsperformance data Working with Character Data Using Conversion FunctionsWrite queries that retrieve system metadata Working with Date and Time Data Using Logical Functionsusing system views and functions. Inserting Data Using Functions to Work with NULLExecute system stored procedures to return Modifying and Deleting Data Using Aggregate Functionssystem information. Writing Queries with Built-In Functions Using the GROUP BY ClauseWrite queries that retrieve system metadata Using Conversion Functions Filtering Groups with HAVINGand state information using system dynamic Using Logical Functions Writing Self-Contained Subqueriesmanagement views and functions. Using Functions to Work with NULL Writing Correlated Subqueries

Using Aggregate Functions Using the EXISTS Predicate withModule 4: Querying Multiple Tables Using the GROUP BY Clause Subqueriesline Filtering Groups with HAVING Using Views

Writing Self-Contained Subqueries Using Inline Table-Valued FunctionsThis module explains how to write queries Writing Correlated Subqueries Using Derived Tableswhich combine data from multiple sources in Using the EXISTS Predicate with Using Common Table ExpressionsSQL Server. The module introduces the use of Subqueries Writing Queries with the UNION OperatorJOINs in T-SQL queries as a mechanism for Using Views Using EXCEPT and INTERSECTretrieving data from multiple tables. Using Inline Table-Valued Functions Using APPLYline Using Derived Tables Creating Windows with OVER

Using Common Table Expressions Exploring Window FunctionsLessons Writing Queries with the UNION Operator Writing Queries with PIVOT and UNPIVOTline Using EXCEPT and INTERSECT Working with Grouping Sets

The Basic Architecture of SQL Server Using APPLY Writing Queries with PIVOT and UNPIVOTSQL Server Editions and Versions Creating Windows with OVER Passing Parameters to Stored ProceduresGetting Started with SQL Server Exploring Window Functions Creating Simple Stored ProceduresManagement Studio Writing Queries with PIVOT and Working with Dynamic SQLIntroducing T-SQL UNPIVOT T-SQL Programming ElementsUnderstanding Sets Working with Grouping Sets Controlling Program FlowUnderstanding Predicate Logic Writing Queries with PIVOT and Using TRY / CATCH BlocksUnderstanding the Logical Order of UNPIVOT Working with Error InformationOperations in SELECT statements Passing Parameters to Stored Transactions and the Database EngineWriting Simple SELECT Statements Procedures Controlling TransactionsEliminate Duplicates with DISTINCT Creating Simple Stored Procedures Factors in Query PerformanceUsing Column and Table Aliases Working with Dynamic SQL Displaying Query Performance DataWrite Simple CASE Expressions T-SQL Programming Elements Querying System Catalog Views andUnderstanding Joins Controlling Program Flow FunctionsQuerying with Inner Joins Using TRY / CATCH Blocks Executing System Stored ProceduresQuerying with Outer Joins Working with Error Information Querying Dynamic Management ObjectsQuerying with Cross Joins and Self Joins Transactions and the Database EngineSorting Data Controlling Transactions Lab : Implementing Error HandlingFiltering Data with Predicates Factors in Query Performance lineFiltering with the TOP and OFFSET-FETCH Displaying Query Performance DataWorking with Unknown Values Querying System Catalog Views and After completing this module, you will be ableIntroducing SQL Server 2014 Data Types Functions to:Working with Character Data Executing System Stored Procedures line

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Working with Date and Time Data Querying Dynamic Management Objects Describe the architecture and editions ofInserting Data SQL Server 2012.Modifying and Deleting Data Lab : Using Subqueries Work with SQL Server ManagementWriting Queries with Built-In Functions line Studio.Using Conversion Functions Describe the elements of T-SQL and theirUsing Logical Functions After completing this module, you will be able role in writing queriesUsing Functions to Work with NULL to: Describe the use of sets in SQL ServerUsing Aggregate Functions line Describe the use of predicate logic in SQLUsing the GROUP BY Clause Describe the architecture and editions of ServerFiltering Groups with HAVING SQL Server 2012. Describe the logical order of operations inWriting Self-Contained Subqueries Work with SQL Server Management SELECT statementsWriting Correlated Subqueries Studio. Write simple SELECT statements.Using the EXISTS Predicate with Describe the elements of T-SQL and their Eliminate duplicates using the DISTINCTSubqueries role in writing queries clause.Using Views Describe the use of sets in SQL Server Use column and table aliases.Using Inline Table-Valued Functions Describe the use of predicate logic in Write simple CASE expressions.Using Derived Tables SQL Server Describe how multiple tables may beUsing Common Table Expressions Describe the logical order of operations in queried in a SELECT statement usingWriting Queries with the UNION Operator SELECT statements joins.Using EXCEPT and INTERSECT Write simple SELECT statements. Write queries that use inner joins.Using APPLY Eliminate duplicates using the DISTINCT Write queries that use outer joins.Creating Windows with OVER clause. Write queries that use self-joins and crossExploring Window Functions Use column and table aliases. joins.Writing Queries with PIVOT and UNPIVOT Write simple CASE expressions. Filter data with predicates in the WHEREWorking with Grouping Sets Describe how multiple tables may be clause.Writing Queries with PIVOT and UNPIVOT queried in a SELECT statement using Sort data using ORDER BY.Passing Parameters to Stored Procedures joins. Filter data in the SELECT clause withCreating Simple Stored Procedures Write queries that use inner joins. TOP.Working with Dynamic SQL Write queries that use outer joins. Filter data with OFFSET and FETCH.T-SQL Programming Elements Write queries that use self-joins and Describe numeric data types, typeControlling Program Flow cross joins. precedence and type conversions.Using TRY / CATCH Blocks Filter data with predicates in the WHERE Write queries using character data types.Working with Error Information clause. Write queries using date and time dataTransactions and the Database Engine Sort data using ORDER BY. types.Controlling Transactions Filter data in the SELECT clause with Insert new data into your tables.Factors in Query Performance TOP. Update and delete existing records in yourDisplaying Query Performance Data Filter data with OFFSET and FETCH. tables.Querying System Catalog Views and Describe numeric data types, type Write queries with built-in scalar functions.Functions precedence and type conversions. Use conversion functions.Executing System Stored Procedures Write queries using character data types. Use logical functions.Querying Dynamic Management Objects Write queries using date and time data Use functions that work with NULL.

types. Write queries which summarize data usingLab : Querying Multiple Tables Insert new data into your tables. built-in aggregate functions.line Update and delete existing records in Use the GROUP BY clause to arrange

your tables. rows into groups.After completing this module, you will be able Write queries with built-in scalar Use the HAVING clause to filter out groupsto: functions. based on a search condition.line Use conversion functions. Describe the uses of queries which are

Describe the architecture and editions of Use logical functions. nested within other queries.SQL Server 2012. Use functions that work with NULL. Write self-contained subqueries whichWork with SQL Server Management Studio. Write queries which summarize data return scalar or multi-valued results.Describe the elements of T-SQL and their using built-in aggregate functions. Write correlated subqueries which returnrole in writing queries Use the GROUP BY clause to arrange scalar or multi-valued results.Describe the use of sets in SQL Server rows into groups. Use the EXISTS predicate to efficientlyDescribe the use of predicate logic in SQL Use the HAVING clause to filter out check for the existence of rows in aServer groups based on a search condition. subquery.Describe the logical order of operations in Describe the uses of queries which are Write queries which use derived tables.SELECT statements nested within other queries. Write queries which use common tableWrite simple SELECT statements. Write self-contained subqueries which expressions.Eliminate duplicates using the DISTINCT return scalar or multi-valued results. Create simple views and write queriesclause. Write correlated subqueries which return against them.Use column and table aliases. scalar or multi-valued results. Create simple inline table-valued functionsWrite simple CASE expressions. Use the EXISTS predicate to efficiently and write queries against them.Describe how multiple tables may be check for the existence of rows in a Write queries which combine data usingqueried in a SELECT statement using joins. subquery. the UNION operatorWrite queries that use inner joins. Write queries which use derived tables. Write queries which compare sets using

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Write queries that use outer joins. Write queries which use common table the INTERSECT and EXCEPT operatorsWrite queries that use self-joins and cross expressions. Write queries which manipulate rows in ajoins. Create simple views and write queries table by using APPLY with the results of aFilter data with predicates in the WHERE against them. derived table or functionclause. Create simple inline table-valued Describe the benefits to using windowSort data using ORDER BY. functions and write queries against them. functions.Filter data in the SELECT clause with TOP. Write queries which combine data using Restrict window functions to rows definedFilter data with OFFSET and FETCH. the UNION operator in an OVER clause, including partitionsDescribe numeric data types, type Write queries which compare sets using and frames.precedence and type conversions. the INTERSECT and EXCEPT operators Write queries which use window functionsWrite queries using character data types. Write queries which manipulate rows in a to operate on a window of rows and returnWrite queries using date and time data table by using APPLY with the results of ranking, aggregation and offsettypes. a derived table or function comparison results.Insert new data into your tables. Describe the benefits to using window Write queries which pivot and unpivotUpdate and delete existing records in your functions. result sets.tables. Restrict window functions to rows defined Write queries which specify multipleWrite queries with built-in scalar functions. in an OVER clause, including partitions groupings with grouping sets.Use conversion functions. and frames. Return results by executing storedUse logical functions. Write queries which use window procedures.Use functions that work with NULL. functions to operate on a window of rows Pass parameters to procedures.Write queries which summarize data using and return ranking, aggregation and Create simple stored procedures whichbuilt-in aggregate functions. offset comparison results. encapsulate a SELECT statement.Use the GROUP BY clause to arrange rows Write queries which pivot and unpivot Construct and execute dynamic SQL withinto groups. result sets. EXEC and sp_executesql.Use the HAVING clause to filter out groups Write queries which specify multiple Describe the language elements of T-SQLbased on a search condition. groupings with grouping sets. used for simple programming tasks.Describe the uses of queries which are Return results by executing stored Describe batches and how they arenested within other queries. procedures. handled by SQL Server.Write self-contained subqueries which return Pass parameters to procedures. Declare and assign variables andscalar or multi-valued results. Create simple stored procedures which synonyms.Write correlated subqueries which return encapsulate a SELECT statement. Use IF and WHILE blocks to controlscalar or multi-valued results. Construct and execute dynamic SQL with program flow.Use the EXISTS predicate to efficiently EXEC and sp_executesql. Describe SQL Server's behavior whencheck for the existence of rows in a Describe the language elements of errors occur in T-SQL code.subquery. T-SQL used for simple programming Implement structured exception handling inWrite queries which use derived tables. tasks. T-SQL.Write queries which use common table Describe batches and how they are Return information about errors fromexpressions. handled by SQL Server. system objects.Create simple views and write queries Declare and assign variables and Raise user-defined errors and pass systemagainst them. synonyms. errors in T-SQL code.Create simple inline table-valued functions Use IF and WHILE blocks to control Describe transactions and the differencesand write queries against them. program flow. between batches and transactions.Write queries which combine data using the Describe SQL Server's behavior when Describe batches and how they areUNION operator errors occur in T-SQL code. handled by SQL Server.Write queries which compare sets using the Implement structured exception handling Create and manage transactions withINTERSECT and EXCEPT operators in T-SQL. transaction control language statements.Write queries which manipulate rows in a Return information about errors from Use SET XACT_ABORT to define SQLtable by using APPLY with the results of a system objects. Server's handling of transactions outsidederived table or function Raise user-defined errors and pass TRY / CATCH blocks.Describe the benefits to using window system errors in T-SQL code. Describe the effects of isolation levels onfunctions. Describe transactions and the differences transactions.Restrict window functions to rows defined in between batches and transactions. Describe components of well-performingan OVER clause, including partitions and Describe batches and how they are queries.frames. handled by SQL Server. Display and interpret basic queryWrite queries which use window functions to Create and manage transactions with performance dataoperate on a window of rows and return transaction control language statements. Write queries that retrieve systemranking, aggregation and offset comparison Use SET XACT_ABORT to define SQL metadata using system views andresults. Server's handling of transactions outside functions.Write queries which pivot and unpivot result TRY / CATCH blocks. Execute system stored procedures tosets. Describe the effects of isolation levels on return system information.Write queries which specify multiple transactions. Write queries that retrieve systemgroupings with grouping sets. Describe components of well-performing metadata and state information usingReturn results by executing stored queries. system dynamic management views andprocedures. Display and interpret basic query functions.Pass parameters to procedures. performance dataCreate simple stored procedures which Write queries that retrieve system Module 18: Implementing Transactions

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

encapsulate a SELECT statement. metadata using system views and lineConstruct and execute dynamic SQL with functions.EXEC and sp_executesql. Execute system stored procedures to This module introduces the concepts ofDescribe the language elements of T-SQL return system information. transaction management in SQL Server. It willused for simple programming tasks. Write queries that retrieve system provide a high-level overview of transactionDescribe batches and how they are handled metadata and state information using properties, cover the basics of markingby SQL Server. system dynamic management views and transactions with BEGIN, COMMIT andDeclare and assign variables and synonyms. functions. ROLLBACK.Use IF and WHILE blocks to control lineprogram flow. Module 11: Using Table ExpressionsDescribe SQL Server's behavior when errors line Lessonsoccur in T-SQL code. lineImplement structured exception handling in This module introduces T-SQL expressions The Basic Architecture of SQL ServerT-SQL. which return a valid relational table, typically SQL Server Editions and VersionsReturn information about errors from system for further use in the query. The module Getting Started with SQL Serverobjects. discusses views, derived tables, common Management StudioRaise user-defined errors and pass system table expressions and inline table-valued Introducing T-SQLerrors in T-SQL code. functions. Understanding SetsDescribe transactions and the differences line Understanding Predicate Logicbetween batches and transactions. Understanding the Logical Order ofDescribe batches and how they are handled Lessons Operations in SELECT statementsby SQL Server. line Writing Simple SELECT StatementsCreate and manage transactions with The Basic Architecture of SQL Server Eliminate Duplicates with DISTINCTtransaction control language statements. SQL Server Editions and Versions Using Column and Table AliasesUse SET XACT_ABORT to define SQL Getting Started with SQL Server Write Simple CASE ExpressionsServer's handling of transactions outside Management Studio Understanding JoinsTRY / CATCH blocks. Introducing T-SQL Querying with Inner JoinsDescribe the effects of isolation levels on Understanding Sets Querying with Outer Joinstransactions. Understanding Predicate Logic Querying with Cross Joins and Self JoinsDescribe components of well-performing Understanding the Logical Order of Sorting Dataqueries. Operations in SELECT statements Filtering Data with PredicatesDisplay and interpret basic query Writing Simple SELECT Statements Filtering with the TOP andperformance data Eliminate Duplicates with DISTINCT OFFSET-FETCHWrite queries that retrieve system metadata Using Column and Table Aliases Working with Unknown Valuesusing system views and functions. Write Simple CASE Expressions Introducing SQL Server 2014 Data TypesExecute system stored procedures to return Understanding Joins Working with Character Datasystem information. Querying with Inner Joins Working with Date and Time DataWrite queries that retrieve system metadata Querying with Outer Joins Inserting Dataand state information using system dynamic Querying with Cross Joins and Self Joins Modifying and Deleting Datamanagement views and functions. Sorting Data Writing Queries with Built-In Functions

Filtering Data with Predicates Using Conversion FunctionsModule 5: Sorting and Filtering Data Filtering with the TOP and Using Logical Functionsline OFFSET-FETCH Using Functions to Work with NULL

Working with Unknown Values Using Aggregate FunctionsThis module explains how to enhance queries Introducing SQL Server 2014 Data Types Using the GROUP BY Clauseto limit the rows they return, and to control the Working with Character Data Filtering Groups with HAVINGorder in which the rows are displayed. The Working with Date and Time Data Writing Self-Contained Subqueriesmodule also discusses how to resolve missing Inserting Data Writing Correlated Subqueriesand unknown results. Modifying and Deleting Data Using the EXISTS Predicate withline Writing Queries with Built-In Functions Subqueries

Using Conversion Functions Using ViewsLessons Using Logical Functions Using Inline Table-Valued Functionsline Using Functions to Work with NULL Using Derived Tables

The Basic Architecture of SQL Server Using Aggregate Functions Using Common Table ExpressionsSQL Server Editions and Versions Using the GROUP BY Clause Writing Queries with the UNION OperatorGetting Started with SQL Server Filtering Groups with HAVING Using EXCEPT and INTERSECTManagement Studio Writing Self-Contained Subqueries Using APPLYIntroducing T-SQL Writing Correlated Subqueries Creating Windows with OVERUnderstanding Sets Using the EXISTS Predicate with Exploring Window FunctionsUnderstanding Predicate Logic Subqueries Writing Queries with PIVOT and UNPIVOTUnderstanding the Logical Order of Using Views Working with Grouping SetsOperations in SELECT statements Using Inline Table-Valued Functions Writing Queries with PIVOT and UNPIVOTWriting Simple SELECT Statements Using Derived Tables Passing Parameters to Stored ProceduresEliminate Duplicates with DISTINCT Using Common Table Expressions Creating Simple Stored ProceduresUsing Column and Table Aliases Writing Queries with the UNION Operator Working with Dynamic SQLWrite Simple CASE Expressions Using EXCEPT and INTERSECT T-SQL Programming Elements

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Understanding Joins Using APPLY Controlling Program FlowQuerying with Inner Joins Creating Windows with OVER Using TRY / CATCH BlocksQuerying with Outer Joins Exploring Window Functions Working with Error InformationQuerying with Cross Joins and Self Joins Writing Queries with PIVOT and Transactions and the Database EngineSorting Data UNPIVOT Controlling TransactionsFiltering Data with Predicates Working with Grouping Sets Factors in Query PerformanceFiltering with the TOP and OFFSET-FETCH Writing Queries with PIVOT and Displaying Query Performance DataWorking with Unknown Values UNPIVOT Querying System Catalog Views andIntroducing SQL Server 2014 Data Types Passing Parameters to Stored FunctionsWorking with Character Data Procedures Executing System Stored ProceduresWorking with Date and Time Data Creating Simple Stored Procedures Querying Dynamic Management ObjectsInserting Data Working with Dynamic SQLModifying and Deleting Data T-SQL Programming Elements Lab : Implementing TransactionsWriting Queries with Built-In Functions Controlling Program Flow lineUsing Conversion Functions Using TRY / CATCH BlocksUsing Logical Functions Working with Error Information After completing this module, you will be ableUsing Functions to Work with NULL Transactions and the Database Engine to:Using Aggregate Functions Controlling Transactions lineUsing the GROUP BY Clause Factors in Query Performance Describe the architecture and editions ofFiltering Groups with HAVING Displaying Query Performance Data SQL Server 2012.Writing Self-Contained Subqueries Querying System Catalog Views and Work with SQL Server ManagementWriting Correlated Subqueries Functions Studio.Using the EXISTS Predicate with Executing System Stored Procedures Describe the elements of T-SQL and theirSubqueries Querying Dynamic Management Objects role in writing queriesUsing Views Describe the use of sets in SQL ServerUsing Inline Table-Valued Functions Lab : Using Table Expressions Describe the use of predicate logic in SQLUsing Derived Tables line ServerUsing Common Table Expressions Describe the logical order of operations inWriting Queries with the UNION Operator After completing this module, you will be able SELECT statementsUsing EXCEPT and INTERSECT to: Write simple SELECT statements.Using APPLY line Eliminate duplicates using the DISTINCTCreating Windows with OVER Describe the architecture and editions of clause.Exploring Window Functions SQL Server 2012. Use column and table aliases.Writing Queries with PIVOT and UNPIVOT Work with SQL Server Management Write simple CASE expressions.Working with Grouping Sets Studio. Describe how multiple tables may beWriting Queries with PIVOT and UNPIVOT Describe the elements of T-SQL and their queried in a SELECT statement usingPassing Parameters to Stored Procedures role in writing queries joins.Creating Simple Stored Procedures Describe the use of sets in SQL Server Write queries that use inner joins.Working with Dynamic SQL Describe the use of predicate logic in Write queries that use outer joins.T-SQL Programming Elements SQL Server Write queries that use self-joins and crossControlling Program Flow Describe the logical order of operations in joins.Using TRY / CATCH Blocks SELECT statements Filter data with predicates in the WHEREWorking with Error Information Write simple SELECT statements. clause.Transactions and the Database Engine Eliminate duplicates using the DISTINCT Sort data using ORDER BY.Controlling Transactions clause. Filter data in the SELECT clause withFactors in Query Performance Use column and table aliases. TOP.Displaying Query Performance Data Write simple CASE expressions. Filter data with OFFSET and FETCH.Querying System Catalog Views and Describe how multiple tables may be Describe numeric data types, typeFunctions queried in a SELECT statement using precedence and type conversions.Executing System Stored Procedures joins. Write queries using character data types.Querying Dynamic Management Objects Write queries that use inner joins. Write queries using date and time data

Write queries that use outer joins. types.Lab : Sorting and Filtering Data Write queries that use self-joins and Insert new data into your tables.line cross joins. Update and delete existing records in your

Filter data with predicates in the WHERE tables.After completing this module, you will be able clause. Write queries with built-in scalar functions.to: Sort data using ORDER BY. Use conversion functions.line Filter data in the SELECT clause with Use logical functions.

Describe the architecture and editions of TOP. Use functions that work with NULL.SQL Server 2012. Filter data with OFFSET and FETCH. Write queries which summarize data usingWork with SQL Server Management Studio. Describe numeric data types, type built-in aggregate functions.Describe the elements of T-SQL and their precedence and type conversions. Use the GROUP BY clause to arrangerole in writing queries Write queries using character data types. rows into groups.Describe the use of sets in SQL Server Write queries using date and time data Use the HAVING clause to filter out groupsDescribe the use of predicate logic in SQL types. based on a search condition.Server Insert new data into your tables. Describe the uses of queries which are

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Describe the logical order of operations in Update and delete existing records in nested within other queries.SELECT statements your tables. Write self-contained subqueries whichWrite simple SELECT statements. Write queries with built-in scalar return scalar or multi-valued results.Eliminate duplicates using the DISTINCT functions. Write correlated subqueries which returnclause. Use conversion functions. scalar or multi-valued results.Use column and table aliases. Use logical functions. Use the EXISTS predicate to efficientlyWrite simple CASE expressions. Use functions that work with NULL. check for the existence of rows in aDescribe how multiple tables may be Write queries which summarize data subquery.queried in a SELECT statement using joins. using built-in aggregate functions. Write queries which use derived tables.Write queries that use inner joins. Use the GROUP BY clause to arrange Write queries which use common tableWrite queries that use outer joins. rows into groups. expressions.Write queries that use self-joins and cross Use the HAVING clause to filter out Create simple views and write queriesjoins. groups based on a search condition. against them.Filter data with predicates in the WHERE Describe the uses of queries which are Create simple inline table-valued functionsclause. nested within other queries. and write queries against them.Sort data using ORDER BY. Write self-contained subqueries which Write queries which combine data usingFilter data in the SELECT clause with TOP. return scalar or multi-valued results. the UNION operatorFilter data with OFFSET and FETCH. Write correlated subqueries which return Write queries which compare sets usingDescribe numeric data types, type scalar or multi-valued results. the INTERSECT and EXCEPT operatorsprecedence and type conversions. Use the EXISTS predicate to efficiently Write queries which manipulate rows in aWrite queries using character data types. check for the existence of rows in a table by using APPLY with the results of aWrite queries using date and time data subquery. derived table or functiontypes. Write queries which use derived tables. Describe the benefits to using windowInsert new data into your tables. Write queries which use common table functions.Update and delete existing records in your expressions. Restrict window functions to rows definedtables. Create simple views and write queries in an OVER clause, including partitionsWrite queries with built-in scalar functions. against them. and frames.Use conversion functions. Create simple inline table-valued Write queries which use window functionsUse logical functions. functions and write queries against them. to operate on a window of rows and returnUse functions that work with NULL. Write queries which combine data using ranking, aggregation and offsetWrite queries which summarize data using the UNION operator comparison results.built-in aggregate functions. Write queries which compare sets using Write queries which pivot and unpivotUse the GROUP BY clause to arrange rows the INTERSECT and EXCEPT operators result sets.into groups. Write queries which manipulate rows in a Write queries which specify multipleUse the HAVING clause to filter out groups table by using APPLY with the results of groupings with grouping sets.based on a search condition. a derived table or function Return results by executing storedDescribe the uses of queries which are Describe the benefits to using window procedures.nested within other queries. functions. Pass parameters to procedures.Write self-contained subqueries which return Restrict window functions to rows defined Create simple stored procedures whichscalar or multi-valued results. in an OVER clause, including partitions encapsulate a SELECT statement.Write correlated subqueries which return and frames. Construct and execute dynamic SQL withscalar or multi-valued results. Write queries which use window EXEC and sp_executesql.Use the EXISTS predicate to efficiently functions to operate on a window of rows Describe the language elements of T-SQLcheck for the existence of rows in a and return ranking, aggregation and used for simple programming tasks.subquery. offset comparison results. Describe batches and how they areWrite queries which use derived tables. Write queries which pivot and unpivot handled by SQL Server.Write queries which use common table result sets. Declare and assign variables andexpressions. Write queries which specify multiple synonyms.Create simple views and write queries groupings with grouping sets. Use IF and WHILE blocks to controlagainst them. Return results by executing stored program flow.Create simple inline table-valued functions procedures. Describe SQL Server's behavior whenand write queries against them. Pass parameters to procedures. errors occur in T-SQL code.Write queries which combine data using the Create simple stored procedures which Implement structured exception handling inUNION operator encapsulate a SELECT statement. T-SQL.Write queries which compare sets using the Construct and execute dynamic SQL with Return information about errors fromINTERSECT and EXCEPT operators EXEC and sp_executesql. system objects.Write queries which manipulate rows in a Describe the language elements of Raise user-defined errors and pass systemtable by using APPLY with the results of a T-SQL used for simple programming errors in T-SQL code.derived table or function tasks. Describe transactions and the differencesDescribe the benefits to using window Describe batches and how they are between batches and transactions.functions. handled by SQL Server. Describe batches and how they areRestrict window functions to rows defined in Declare and assign variables and handled by SQL Server.an OVER clause, including partitions and synonyms. Create and manage transactions withframes. Use IF and WHILE blocks to control transaction control language statements.Write queries which use window functions to program flow. Use SET XACT_ABORT to define SQLoperate on a window of rows and return Describe SQL Server's behavior when Server's handling of transactions outside

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

ranking, aggregation and offset comparison errors occur in T-SQL code. TRY / CATCH blocks.results. Implement structured exception handling Describe the effects of isolation levels onWrite queries which pivot and unpivot result in T-SQL. transactions.sets. Return information about errors from Describe components of well-performingWrite queries which specify multiple system objects. queries.groupings with grouping sets. Raise user-defined errors and pass Display and interpret basic queryReturn results by executing stored system errors in T-SQL code. performance dataprocedures. Describe transactions and the differences Write queries that retrieve systemPass parameters to procedures. between batches and transactions. metadata using system views andCreate simple stored procedures which Describe batches and how they are functions.encapsulate a SELECT statement. handled by SQL Server. Execute system stored procedures toConstruct and execute dynamic SQL with Create and manage transactions with return system information.EXEC and sp_executesql. transaction control language statements. Write queries that retrieve systemDescribe the language elements of T-SQL Use SET XACT_ABORT to define SQL metadata and state information usingused for simple programming tasks. Server's handling of transactions outside system dynamic management views andDescribe batches and how they are handled TRY / CATCH blocks. functions.by SQL Server. Describe the effects of isolation levels onDeclare and assign variables and synonyms. transactions. Module 19: Appendix 1: Improving QueryUse IF and WHILE blocks to control Describe components of well-performing Performanceprogram flow. queries. lineDescribe SQL Server's behavior when errors Display and interpret basic queryoccur in T-SQL code. performance data This module presents several key guidelinesImplement structured exception handling in Write queries that retrieve system for writing well-performing queries, as well asT-SQL. metadata using system views and ways to monitor the execution of your queriesReturn information about errors from system functions. and their impact on Microsoft SQL Serverobjects. Execute system stored procedures to lineRaise user-defined errors and pass system return system information.errors in T-SQL code. Write queries that retrieve system LessonsDescribe transactions and the differences metadata and state information using linebetween batches and transactions. system dynamic management views and The Basic Architecture of SQL ServerDescribe batches and how they are handled functions. SQL Server Editions and Versionsby SQL Server. Getting Started with SQL ServerCreate and manage transactions with Module 12: Using Set Operators Management Studiotransaction control language statements. line Introducing T-SQLUse SET XACT_ABORT to define SQL Understanding SetsServer's handling of transactions outside This module introduces the set operators Understanding Predicate LogicTRY / CATCH blocks. UNION, INTERSECT, and EXCEPT to Understanding the Logical Order ofDescribe the effects of isolation levels on compare rows between two input sets Operations in SELECT statementstransactions. line Writing Simple SELECT StatementsDescribe components of well-performing Eliminate Duplicates with DISTINCTqueries. Lessons Using Column and Table AliasesDisplay and interpret basic query line Write Simple CASE Expressionsperformance data The Basic Architecture of SQL Server Understanding JoinsWrite queries that retrieve system metadata SQL Server Editions and Versions Querying with Inner Joinsusing system views and functions. Getting Started with SQL Server Querying with Outer JoinsExecute system stored procedures to return Management Studio Querying with Cross Joins and Self Joinssystem information. Introducing T-SQL Sorting DataWrite queries that retrieve system metadata Understanding Sets Filtering Data with Predicatesand state information using system dynamic Understanding Predicate Logic Filtering with the TOP andmanagement views and functions. Understanding the Logical Order of OFFSET-FETCH

Operations in SELECT statements Working with Unknown ValuesModule 6: Working with SQL Server 2014 Data Writing Simple SELECT Statements Introducing SQL Server 2014 Data TypesTypes Eliminate Duplicates with DISTINCT Working with Character Dataline Using Column and Table Aliases Working with Date and Time Data

Write Simple CASE Expressions Inserting DataThis module explains the data types SQL Understanding Joins Modifying and Deleting DataServer uses to store data. It introduces the Querying with Inner Joins Writing Queries with Built-In Functionsmany types of numeric and special-use data Querying with Outer Joins Using Conversion Functionstypes. It also explains conversions between Querying with Cross Joins and Self Joins Using Logical Functionsdata types, and the importance of type Sorting Data Using Functions to Work with NULLprecedence. Filtering Data with Predicates Using Aggregate Functionsline Filtering with the TOP and Using the GROUP BY Clause

OFFSET-FETCH Filtering Groups with HAVINGLessons Working with Unknown Values Writing Self-Contained Subqueriesline Introducing SQL Server 2014 Data Types Writing Correlated Subqueries

The Basic Architecture of SQL Server Working with Character Data Using the EXISTS Predicate with

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

SQL Server Editions and Versions Working with Date and Time Data SubqueriesGetting Started with SQL Server Inserting Data Using ViewsManagement Studio Modifying and Deleting Data Using Inline Table-Valued FunctionsIntroducing T-SQL Writing Queries with Built-In Functions Using Derived TablesUnderstanding Sets Using Conversion Functions Using Common Table ExpressionsUnderstanding Predicate Logic Using Logical Functions Writing Queries with the UNION OperatorUnderstanding the Logical Order of Using Functions to Work with NULL Using EXCEPT and INTERSECTOperations in SELECT statements Using Aggregate Functions Using APPLYWriting Simple SELECT Statements Using the GROUP BY Clause Creating Windows with OVEREliminate Duplicates with DISTINCT Filtering Groups with HAVING Exploring Window FunctionsUsing Column and Table Aliases Writing Self-Contained Subqueries Writing Queries with PIVOT and UNPIVOTWrite Simple CASE Expressions Writing Correlated Subqueries Working with Grouping SetsUnderstanding Joins Using the EXISTS Predicate with Writing Queries with PIVOT and UNPIVOTQuerying with Inner Joins Subqueries Passing Parameters to Stored ProceduresQuerying with Outer Joins Using Views Creating Simple Stored ProceduresQuerying with Cross Joins and Self Joins Using Inline Table-Valued Functions Working with Dynamic SQLSorting Data Using Derived Tables T-SQL Programming ElementsFiltering Data with Predicates Using Common Table Expressions Controlling Program FlowFiltering with the TOP and OFFSET-FETCH Writing Queries with the UNION Operator Using TRY / CATCH BlocksWorking with Unknown Values Using EXCEPT and INTERSECT Working with Error InformationIntroducing SQL Server 2014 Data Types Using APPLY Transactions and the Database EngineWorking with Character Data Creating Windows with OVER Controlling TransactionsWorking with Date and Time Data Exploring Window Functions Factors in Query PerformanceInserting Data Writing Queries with PIVOT and Displaying Query Performance DataModifying and Deleting Data UNPIVOT Querying System Catalog Views andWriting Queries with Built-In Functions Working with Grouping Sets FunctionsUsing Conversion Functions Writing Queries with PIVOT and Executing System Stored ProceduresUsing Logical Functions UNPIVOT Querying Dynamic Management ObjectsUsing Functions to Work with NULL Passing Parameters to StoredUsing Aggregate Functions Procedures Lab : Improving Query PerformanceUsing the GROUP BY Clause Creating Simple Stored Procedures lineFiltering Groups with HAVING Working with Dynamic SQLWriting Self-Contained Subqueries T-SQL Programming Elements After completing this module, you will be ableWriting Correlated Subqueries Controlling Program Flow to:Using the EXISTS Predicate with Using TRY / CATCH Blocks lineSubqueries Working with Error Information Describe the architecture and editions ofUsing Views Transactions and the Database Engine SQL Server 2012.Using Inline Table-Valued Functions Controlling Transactions Work with SQL Server ManagementUsing Derived Tables Factors in Query Performance Studio.Using Common Table Expressions Displaying Query Performance Data Describe the elements of T-SQL and theirWriting Queries with the UNION Operator Querying System Catalog Views and role in writing queriesUsing EXCEPT and INTERSECT Functions Describe the use of sets in SQL ServerUsing APPLY Executing System Stored Procedures Describe the use of predicate logic in SQLCreating Windows with OVER Querying Dynamic Management Objects ServerExploring Window Functions Describe the logical order of operations inWriting Queries with PIVOT and UNPIVOT Lab : Using Set Operators SELECT statementsWorking with Grouping Sets line Write simple SELECT statements.Writing Queries with PIVOT and UNPIVOT Eliminate duplicates using the DISTINCTPassing Parameters to Stored Procedures After completing this module, you will be able clause.Creating Simple Stored Procedures to: Use column and table aliases.Working with Dynamic SQL line Write simple CASE expressions.T-SQL Programming Elements Describe the architecture and editions of Describe how multiple tables may beControlling Program Flow SQL Server 2012. queried in a SELECT statement usingUsing TRY / CATCH Blocks Work with SQL Server Management joins.Working with Error Information Studio. Write queries that use inner joins.Transactions and the Database Engine Describe the elements of T-SQL and their Write queries that use outer joins.Controlling Transactions role in writing queries Write queries that use self-joins and crossFactors in Query Performance Describe the use of sets in SQL Server joins.Displaying Query Performance Data Describe the use of predicate logic in Filter data with predicates in the WHEREQuerying System Catalog Views and SQL Server clause.Functions Describe the logical order of operations in Sort data using ORDER BY.Executing System Stored Procedures SELECT statements Filter data in the SELECT clause withQuerying Dynamic Management Objects Write simple SELECT statements. TOP.

Eliminate duplicates using the DISTINCT Filter data with OFFSET and FETCH.Lab : Working with SQL Server 2014 Data clause. Describe numeric data types, typeTypes Use column and table aliases. precedence and type conversions.

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

line Write simple CASE expressions. Write queries using character data types.Describe how multiple tables may be Write queries using date and time data

After completing this module, you will be able queried in a SELECT statement using types.to: joins. Insert new data into your tables.line Write queries that use inner joins. Update and delete existing records in your

Describe the architecture and editions of Write queries that use outer joins. tables.SQL Server 2012. Write queries that use self-joins and Write queries with built-in scalar functions.Work with SQL Server Management Studio. cross joins. Use conversion functions.Describe the elements of T-SQL and their Filter data with predicates in the WHERE Use logical functions.role in writing queries clause. Use functions that work with NULL.Describe the use of sets in SQL Server Sort data using ORDER BY. Write queries which summarize data usingDescribe the use of predicate logic in SQL Filter data in the SELECT clause with built-in aggregate functions.Server TOP. Use the GROUP BY clause to arrangeDescribe the logical order of operations in Filter data with OFFSET and FETCH. rows into groups.SELECT statements Describe numeric data types, type Use the HAVING clause to filter out groupsWrite simple SELECT statements. precedence and type conversions. based on a search condition.Eliminate duplicates using the DISTINCT Write queries using character data types. Describe the uses of queries which areclause. Write queries using date and time data nested within other queries.Use column and table aliases. types. Write self-contained subqueries whichWrite simple CASE expressions. Insert new data into your tables. return scalar or multi-valued results.Describe how multiple tables may be Update and delete existing records in Write correlated subqueries which returnqueried in a SELECT statement using joins. your tables. scalar or multi-valued results.Write queries that use inner joins. Write queries with built-in scalar Use the EXISTS predicate to efficientlyWrite queries that use outer joins. functions. check for the existence of rows in aWrite queries that use self-joins and cross Use conversion functions. subquery.joins. Use logical functions. Write queries which use derived tables.Filter data with predicates in the WHERE Use functions that work with NULL. Write queries which use common tableclause. Write queries which summarize data expressions.Sort data using ORDER BY. using built-in aggregate functions. Create simple views and write queriesFilter data in the SELECT clause with TOP. Use the GROUP BY clause to arrange against them.Filter data with OFFSET and FETCH. rows into groups. Create simple inline table-valued functionsDescribe numeric data types, type Use the HAVING clause to filter out and write queries against them.precedence and type conversions. groups based on a search condition. Write queries which combine data usingWrite queries using character data types. Describe the uses of queries which are the UNION operatorWrite queries using date and time data nested within other queries. Write queries which compare sets usingtypes. Write self-contained subqueries which the INTERSECT and EXCEPT operatorsInsert new data into your tables. return scalar or multi-valued results. Write queries which manipulate rows in aUpdate and delete existing records in your Write correlated subqueries which return table by using APPLY with the results of atables. scalar or multi-valued results. derived table or functionWrite queries with built-in scalar functions. Use the EXISTS predicate to efficiently Describe the benefits to using windowUse conversion functions. check for the existence of rows in a functions.Use logical functions. subquery. Restrict window functions to rows definedUse functions that work with NULL. Write queries which use derived tables. in an OVER clause, including partitionsWrite queries which summarize data using Write queries which use common table and frames.built-in aggregate functions. expressions. Write queries which use window functionsUse the GROUP BY clause to arrange rows Create simple views and write queries to operate on a window of rows and returninto groups. against them. ranking, aggregation and offsetUse the HAVING clause to filter out groups Create simple inline table-valued comparison results.based on a search condition. functions and write queries against them. Write queries which pivot and unpivotDescribe the uses of queries which are Write queries which combine data using result sets.nested within other queries. the UNION operator Write queries which specify multipleWrite self-contained subqueries which return Write queries which compare sets using groupings with grouping sets.scalar or multi-valued results. the INTERSECT and EXCEPT operators Return results by executing storedWrite correlated subqueries which return Write queries which manipulate rows in a procedures.scalar or multi-valued results. table by using APPLY with the results of Pass parameters to procedures.Use the EXISTS predicate to efficiently a derived table or function Create simple stored procedures whichcheck for the existence of rows in a Describe the benefits to using window encapsulate a SELECT statement.subquery. functions. Construct and execute dynamic SQL withWrite queries which use derived tables. Restrict window functions to rows defined EXEC and sp_executesql.Write queries which use common table in an OVER clause, including partitions Describe the language elements of T-SQLexpressions. and frames. used for simple programming tasks.Create simple views and write queries Write queries which use window Describe batches and how they areagainst them. functions to operate on a window of rows handled by SQL Server.Create simple inline table-valued functions and return ranking, aggregation and Declare and assign variables andand write queries against them. offset comparison results. synonyms.Write queries which combine data using the Write queries which pivot and unpivot Use IF and WHILE blocks to control

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

UNION operator result sets. program flow.Write queries which compare sets using the Write queries which specify multiple Describe SQL Server's behavior whenINTERSECT and EXCEPT operators groupings with grouping sets. errors occur in T-SQL code.Write queries which manipulate rows in a Return results by executing stored Implement structured exception handling intable by using APPLY with the results of a procedures. T-SQL.derived table or function Pass parameters to procedures. Return information about errors fromDescribe the benefits to using window Create simple stored procedures which system objects.functions. encapsulate a SELECT statement. Raise user-defined errors and pass systemRestrict window functions to rows defined in Construct and execute dynamic SQL with errors in T-SQL code.an OVER clause, including partitions and EXEC and sp_executesql. Describe transactions and the differencesframes. Describe the language elements of between batches and transactions.Write queries which use window functions to T-SQL used for simple programming Describe batches and how they areoperate on a window of rows and return tasks. handled by SQL Server.ranking, aggregation and offset comparison Describe batches and how they are Create and manage transactions withresults. handled by SQL Server. transaction control language statements.Write queries which pivot and unpivot result Declare and assign variables and Use SET XACT_ABORT to define SQLsets. synonyms. Server's handling of transactions outsideWrite queries which specify multiple Use IF and WHILE blocks to control TRY / CATCH blocks.groupings with grouping sets. program flow. Describe the effects of isolation levels onReturn results by executing stored Describe SQL Server's behavior when transactions.procedures. errors occur in T-SQL code. Describe components of well-performingPass parameters to procedures. Implement structured exception handling queries.Create simple stored procedures which in T-SQL. Display and interpret basic queryencapsulate a SELECT statement. Return information about errors from performance dataConstruct and execute dynamic SQL with system objects. Write queries that retrieve systemEXEC and sp_executesql. Raise user-defined errors and pass metadata using system views andDescribe the language elements of T-SQL system errors in T-SQL code. functions.used for simple programming tasks. Describe transactions and the differences Execute system stored procedures toDescribe batches and how they are handled between batches and transactions. return system information.by SQL Server. Describe batches and how they are Write queries that retrieve systemDeclare and assign variables and synonyms. handled by SQL Server. metadata and state information usingUse IF and WHILE blocks to control Create and manage transactions with system dynamic management views andprogram flow. transaction control language statements. functions.Describe SQL Server's behavior when errors Use SET XACT_ABORT to define SQLoccur in T-SQL code. Server's handling of transactions outside Module 20: Appendix 2: Querying SQL ServerImplement structured exception handling in TRY / CATCH blocks. MetadataT-SQL. Describe the effects of isolation levels on lineReturn information about errors from system transactions.objects. Describe components of well-performing SQL Server provides access to structuredRaise user-defined errors and pass system queries. metadata by using a variety of mechanisms,errors in T-SQL code. Display and interpret basic query such as system catalog views, systemDescribe transactions and the differences performance data functions, dynamic management objects, andbetween batches and transactions. Write queries that retrieve system system stored procedures. In this module,Describe batches and how they are handled metadata using system views and you will learn how to write queries to returnby SQL Server. functions. system metadata using these mechanisms.Create and manage transactions with Execute system stored procedures to linetransaction control language statements. return system information.Use SET XACT_ABORT to define SQL Write queries that retrieve system LessonsServer's handling of transactions outside metadata and state information using lineTRY / CATCH blocks. system dynamic management views and The Basic Architecture of SQL ServerDescribe the effects of isolation levels on functions. SQL Server Editions and Versionstransactions. Getting Started with SQL ServerDescribe components of well-performing Module 13: Using Window Ranking, Offset, Management Studioqueries. and Aggregate Functions Introducing T-SQLDisplay and interpret basic query line Understanding Setsperformance data Understanding Predicate LogicWrite queries that retrieve system metadata This module introduces window functions Understanding the Logical Order ofusing system views and functions. including ranking, aggregate and offset Operations in SELECT statementsExecute system stored procedures to return functions. Much of this functionality is new to Writing Simple SELECT Statementssystem information. SQL Server 2012. It will cover the use of Eliminate Duplicates with DISTINCTWrite queries that retrieve system metadata T-SQL functions such as ROW_NUMBER, Using Column and Table Aliasesand state information using system dynamic RANK, DENSE_RANK, NTILE, LAG, LEAD, Write Simple CASE Expressionsmanagement views and functions. FIRST_VALUE and LAST_VALUE to perform Understanding Joins

calculations against a set, or window, of rows. Querying with Inner JoinsModule 7: Using DML to Modify Data line Querying with Outer Joinsline Querying with Cross Joins and Self Joins

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Lessons Sorting DataThis module describes the use of line Filtering Data with PredicatesTransact-SQL Data Manipulation Language to The Basic Architecture of SQL Server Filtering with the TOP andperform inserts, updates, and deletes to your SQL Server Editions and Versions OFFSET-FETCHdata. Getting Started with SQL Server Working with Unknown Valuesline Management Studio Introducing SQL Server 2014 Data Types

Introducing T-SQL Working with Character DataLessons Understanding Sets Working with Date and Time Dataline Understanding Predicate Logic Inserting Data

The Basic Architecture of SQL Server Understanding the Logical Order of Modifying and Deleting DataSQL Server Editions and Versions Operations in SELECT statements Writing Queries with Built-In FunctionsGetting Started with SQL Server Writing Simple SELECT Statements Using Conversion FunctionsManagement Studio Eliminate Duplicates with DISTINCT Using Logical FunctionsIntroducing T-SQL Using Column and Table Aliases Using Functions to Work with NULLUnderstanding Sets Write Simple CASE Expressions Using Aggregate FunctionsUnderstanding Predicate Logic Understanding Joins Using the GROUP BY ClauseUnderstanding the Logical Order of Querying with Inner Joins Filtering Groups with HAVINGOperations in SELECT statements Querying with Outer Joins Writing Self-Contained SubqueriesWriting Simple SELECT Statements Querying with Cross Joins and Self Joins Writing Correlated SubqueriesEliminate Duplicates with DISTINCT Sorting Data Using the EXISTS Predicate withUsing Column and Table Aliases Filtering Data with Predicates SubqueriesWrite Simple CASE Expressions Filtering with the TOP and Using ViewsUnderstanding Joins OFFSET-FETCH Using Inline Table-Valued FunctionsQuerying with Inner Joins Working with Unknown Values Using Derived TablesQuerying with Outer Joins Introducing SQL Server 2014 Data Types Using Common Table ExpressionsQuerying with Cross Joins and Self Joins Working with Character Data Writing Queries with the UNION OperatorSorting Data Working with Date and Time Data Using EXCEPT and INTERSECTFiltering Data with Predicates Inserting Data Using APPLYFiltering with the TOP and OFFSET-FETCH Modifying and Deleting Data Creating Windows with OVERWorking with Unknown Values Writing Queries with Built-In Functions Exploring Window FunctionsIntroducing SQL Server 2014 Data Types Using Conversion Functions Writing Queries with PIVOT and UNPIVOTWorking with Character Data Using Logical Functions Working with Grouping SetsWorking with Date and Time Data Using Functions to Work with NULL Writing Queries with PIVOT and UNPIVOTInserting Data Using Aggregate Functions Passing Parameters to Stored ProceduresModifying and Deleting Data Using the GROUP BY Clause Creating Simple Stored ProceduresWriting Queries with Built-In Functions Filtering Groups with HAVING Working with Dynamic SQLUsing Conversion Functions Writing Self-Contained Subqueries T-SQL Programming ElementsUsing Logical Functions Writing Correlated Subqueries Controlling Program FlowUsing Functions to Work with NULL Using the EXISTS Predicate with Using TRY / CATCH BlocksUsing Aggregate Functions Subqueries Working with Error InformationUsing the GROUP BY Clause Using Views Transactions and the Database EngineFiltering Groups with HAVING Using Inline Table-Valued Functions Controlling TransactionsWriting Self-Contained Subqueries Using Derived Tables Factors in Query PerformanceWriting Correlated Subqueries Using Common Table Expressions Displaying Query Performance DataUsing the EXISTS Predicate with Writing Queries with the UNION Operator Querying System Catalog Views andSubqueries Using EXCEPT and INTERSECT FunctionsUsing Views Using APPLY Executing System Stored ProceduresUsing Inline Table-Valued Functions Creating Windows with OVER Querying Dynamic Management ObjectsUsing Derived Tables Exploring Window FunctionsUsing Common Table Expressions Writing Queries with PIVOT and Lab : Querying SQL Server MetadataWriting Queries with the UNION Operator UNPIVOT lineUsing EXCEPT and INTERSECT Working with Grouping SetsUsing APPLY Writing Queries with PIVOT and After completing this module, you will be ableCreating Windows with OVER UNPIVOT to:Exploring Window Functions Passing Parameters to Stored lineWriting Queries with PIVOT and UNPIVOT Procedures Describe the architecture and editions ofWorking with Grouping Sets Creating Simple Stored Procedures SQL Server 2012.Writing Queries with PIVOT and UNPIVOT Working with Dynamic SQL Work with SQL Server ManagementPassing Parameters to Stored Procedures T-SQL Programming Elements Studio.Creating Simple Stored Procedures Controlling Program Flow Describe the elements of T-SQL and theirWorking with Dynamic SQL Using TRY / CATCH Blocks role in writing queriesT-SQL Programming Elements Working with Error Information Describe the use of sets in SQL ServerControlling Program Flow Transactions and the Database Engine Describe the use of predicate logic in SQLUsing TRY / CATCH Blocks Controlling Transactions ServerWorking with Error Information Factors in Query Performance Describe the logical order of operations inTransactions and the Database Engine Displaying Query Performance Data SELECT statements

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Controlling Transactions Querying System Catalog Views and Write simple SELECT statements.Factors in Query Performance Functions Eliminate duplicates using the DISTINCTDisplaying Query Performance Data Executing System Stored Procedures clause.Querying System Catalog Views and Querying Dynamic Management Objects Use column and table aliases.Functions Write simple CASE expressions.Executing System Stored Procedures Lab : Using Window Ranking, Offset and Describe how multiple tables may beQuerying Dynamic Management Objects Aggregate Functions queried in a SELECT statement using

line joins.Lab : Using DML to Modify Data Write queries that use inner joins.line After completing this module, you will be able Write queries that use outer joins.

to: Write queries that use self-joins and crossline joins.

Describe the architecture and editions of Filter data with predicates in the WHERESQL Server 2012. clause.Work with SQL Server Management Sort data using ORDER BY.Studio. Filter data in the SELECT clause withDescribe the elements of T-SQL and their TOP.role in writing queries Filter data with OFFSET and FETCH.Describe the use of sets in SQL Server Describe numeric data types, typeDescribe the use of predicate logic in precedence and type conversions.SQL Server Write queries using character data types.Describe the logical order of operations in Write queries using date and time dataSELECT statements types.Write simple SELECT statements. Insert new data into your tables.Eliminate duplicates using the DISTINCT Update and delete existing records in yourclause. tables.Use column and table aliases. Write queries with built-in scalar functions.Write simple CASE expressions. Use conversion functions.Describe how multiple tables may be Use logical functions.queried in a SELECT statement using Use functions that work with NULL.joins. Write queries which summarize data usingWrite queries that use inner joins. built-in aggregate functions.Write queries that use outer joins. Use the GROUP BY clause to arrangeWrite queries that use self-joins and rows into groups.cross joins. Use the HAVING clause to filter out groupsFilter data with predicates in the WHERE based on a search condition.clause. Describe the uses of queries which areSort data using ORDER BY. nested within other queries.Filter data in the SELECT clause with Write self-contained subqueries whichTOP. return scalar or multi-valued results.Filter data with OFFSET and FETCH. Write correlated subqueries which returnDescribe numeric data types, type scalar or multi-valued results.precedence and type conversions. Use the EXISTS predicate to efficientlyWrite queries using character data types. check for the existence of rows in aWrite queries using date and time data subquery.types. Write queries which use derived tables.Insert new data into your tables. Write queries which use common tableUpdate and delete existing records in expressions.your tables. Create simple views and write queriesWrite queries with built-in scalar against them.functions. Create simple inline table-valued functionsUse conversion functions. and write queries against them.Use logical functions. Write queries which combine data usingUse functions that work with NULL. the UNION operatorWrite queries which summarize data Write queries which compare sets usingusing built-in aggregate functions. the INTERSECT and EXCEPT operatorsUse the GROUP BY clause to arrange Write queries which manipulate rows in arows into groups. table by using APPLY with the results of aUse the HAVING clause to filter out derived table or functiongroups based on a search condition. Describe the benefits to using windowDescribe the uses of queries which are functions.nested within other queries. Restrict window functions to rows definedWrite self-contained subqueries which in an OVER clause, including partitionsreturn scalar or multi-valued results. and frames.Write correlated subqueries which return Write queries which use window functionsscalar or multi-valued results. to operate on a window of rows and return

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Use the EXISTS predicate to efficiently ranking, aggregation and offsetcheck for the existence of rows in a comparison results.subquery. Write queries which pivot and unpivotWrite queries which use derived tables. result sets.Write queries which use common table Write queries which specify multipleexpressions. groupings with grouping sets.Create simple views and write queries Return results by executing storedagainst them. procedures.Create simple inline table-valued Pass parameters to procedures.functions and write queries against them. Create simple stored procedures whichWrite queries which combine data using encapsulate a SELECT statement.the UNION operator Construct and execute dynamic SQL withWrite queries which compare sets using EXEC and sp_executesql.the INTERSECT and EXCEPT operators Describe the language elements of T-SQLWrite queries which manipulate rows in a used for simple programming tasks.table by using APPLY with the results of Describe batches and how they area derived table or function handled by SQL Server.Describe the benefits to using window Declare and assign variables andfunctions. synonyms.Restrict window functions to rows defined Use IF and WHILE blocks to controlin an OVER clause, including partitions program flow.and frames. Describe SQL Server's behavior whenWrite queries which use window errors occur in T-SQL code.functions to operate on a window of rows Implement structured exception handling inand return ranking, aggregation and T-SQL.offset comparison results. Return information about errors fromWrite queries which pivot and unpivot system objects.result sets. Raise user-defined errors and pass systemWrite queries which specify multiple errors in T-SQL code.groupings with grouping sets. Describe transactions and the differencesReturn results by executing stored between batches and transactions.procedures. Describe batches and how they arePass parameters to procedures. handled by SQL Server.Create simple stored procedures which Create and manage transactions withencapsulate a SELECT statement. transaction control language statements.Construct and execute dynamic SQL with Use SET XACT_ABORT to define SQLEXEC and sp_executesql. Server's handling of transactions outsideDescribe the language elements of TRY / CATCH blocks.T-SQL used for simple programming Describe the effects of isolation levels ontasks. transactions.Describe batches and how they are Describe components of well-performinghandled by SQL Server. queries.Declare and assign variables and Display and interpret basic querysynonyms. performance dataUse IF and WHILE blocks to control Write queries that retrieve systemprogram flow. metadata using system views andDescribe SQL Server's behavior when functions.errors occur in T-SQL code. Execute system stored procedures toImplement structured exception handling return system information.in T-SQL. Write queries that retrieve systemReturn information about errors from metadata and state information usingsystem objects. system dynamic management views andRaise user-defined errors and pass functions.system errors in T-SQL code.Describe transactions and the differencesbetween batches and transactions.Describe batches and how they arehandled by SQL Server.Create and manage transactions withtransaction control language statements.Use SET XACT_ABORT to define SQLServer's handling of transactions outsideTRY / CATCH blocks.Describe the effects of isolation levels ontransactions.Describe components of well-performing

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

queries.Display and interpret basic queryperformance dataWrite queries that retrieve systemmetadata using system views andfunctions.Execute system stored procedures toreturn system information.Write queries that retrieve systemmetadata and state information usingsystem dynamic management views andfunctions.

Module 14: Pivoting and Grouping Setsline

This module discusses techniques for pivotingdata in T-SQL as well to introduce thefundamentals of the GROUPING SETSclause. It will also cover the use of GROUPBY ROLLUP and GROUP BY CUBE syntax inSQL Server.line

Lessonsline

The Basic Architecture of SQL ServerSQL Server Editions and VersionsGetting Started with SQL ServerManagement StudioIntroducing T-SQLUnderstanding SetsUnderstanding Predicate LogicUnderstanding the Logical Order ofOperations in SELECT statementsWriting Simple SELECT StatementsEliminate Duplicates with DISTINCTUsing Column and Table AliasesWrite Simple CASE ExpressionsUnderstanding JoinsQuerying with Inner JoinsQuerying with Outer JoinsQuerying with Cross Joins and Self JoinsSorting DataFiltering Data with PredicatesFiltering with the TOP andOFFSET-FETCHWorking with Unknown ValuesIntroducing SQL Server 2014 Data TypesWorking with Character DataWorking with Date and Time DataInserting DataModifying and Deleting DataWriting Queries with Built-In FunctionsUsing Conversion FunctionsUsing Logical FunctionsUsing Functions to Work with NULLUsing Aggregate FunctionsUsing the GROUP BY ClauseFiltering Groups with HAVINGWriting Self-Contained SubqueriesWriting Correlated SubqueriesUsing the EXISTS Predicate withSubqueriesUsing ViewsUsing Inline Table-Valued Functions

M20461 C www.globalknowledge.com/es-es/ [email protected] (34) 91 425 06 60

Using Derived TablesUsing Common Table ExpressionsWriting Queries with the UNION OperatorUsing EXCEPT and INTERSECTUsing APPLYCreating Windows with OVERExploring Window FunctionsWriting Queries with PIVOT andUNPIVOTWorking with Grouping SetsWriting Queries with PIVOT andUNPIVOTPassing Parameters to StoredProceduresCreating Simple Stored ProceduresWorking with Dynamic SQLT-SQL Programming ElementsControlling Program FlowUsing TRY / CATCH BlocksWorking with Error InformationTransactions and the Database EngineControlling TransactionsFactors in Query PerformanceDisplaying Query Performance DataQuerying System Catalog Views andFunctionsExecuting System Stored ProceduresQuerying Dynamic Management Objects

Más información:

Para más información o para reservar tu plaza llámanos al (34) 91 425 06 60

[email protected]

www.globalknowledge.com/es-es/

Global Knowledge Network Spain, C/ Retama 7, 6ª planta, 28045 Madrid