SlideShare a Scribd company logo
Ven Señor, sobre nuestros pensamientos, palabras y obras, a fin
de que nuestro dia se agradable ante tus ojos.
Querido Dios abre sus ojos para que se salven y dejen la
ignorancia y las ensenñanzas que han recibido.
Beshir Estefanos Kamel
El verdadero tesoro
La lámpara del cuerpo es el ojo; por eso, si tu ojo está sano, todo
tu cuerpo estará lleno de luz.
Pero si tu ojo está malo, todo tu cuerpo estará lleno de oscuridad.
Así que, si la luz que hay en ti es oscuridad, ¡cuán grande será la
oscuridad!
Mateo 6:22
Profesor de POO y Bases de Datos.
Carlos.Flores.Roman@gmail.com
Carlos.Flores@dae.una.edu.ni
Cronograma
• Todos los jueves
• 5:30 pm – 8:00 pm
Expectativas
• Audiencia
– Con conocimientos básico e intermedio en MS SQL Server
– Personas que estan considerando tomar el examen 70-461;
• Material Adicional
– Microsoft Official Course 20461
• Querying Microsoft SQL Server
• Charla preparatoria para la certificación de Microsoft: Examen 461
• Microsoft Virtual Academy
– Cursos en linea dirigidos por profesionales
– Actualmente se encuentran registrados mas de 3M de usuarios
– Información actualizada y con una variedad de productos MS
– Cursos relacionados
• Querying with Transact-SQL
• Database Fundamentals
Unete a la comunidad MVA
Otras fuentes 1/2
• Sitios que venden el servicio de entrenamiento
– Learn on line
– Pluralsight
– Lynda
• Edx, Coursera, Udacity,
• Future Learn, EducaLab,
• Miriadax, Canvas,
• European MOOCs
• Harvard; Stanford; MIT;
• U de Granada
• Books
– T-SQL Querying
Otras fuentes 2/2
Course Topics
1. Querying Microsoft SQL server 2012 with transact sql
01 | Foundations of Querying 07 | Querying and Managing XML Data
02 | Getting Started with the SELECT
Statement
08 | Creating Tables and Enforcing Data
Integrity
03 | Filtering and Sorting Data
09 | Designing and Creating Views, Inline
Functions, and Synonyms
04 | Combining Sets 10 | Inserting, Updating, and Deleting Data
05 | Grouping and Windowing 11 | Other Data Modification Aspects
06 | Querying Full-Text Data
12 | Implementing Transactions, Error
Handling, and Dynamic SQL
01 | Foundations of Querying
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
01 | Foundations of Querying
• Lesson 1: Understanding the Foundations of T-SQL
– Evolution of T-SQL
– Using T-SQL in a Relational Way
– Using Correct Terminology
• Lesson 2: Understanding Logical Query Processing
– T-SQL As a Declarative English-Like Language
– Logical Query Processing Phases
02 | Getting Started with the SELECT
Statement
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
02 | Getting Started with the SELECT Statement
• Lesson 1: Using the FROM and SELECT Clauses
– The FROM Clause
– The SELECT Clause
– Delimiting Identifiers
• Lesson 2: Working with Data Types and Built-in Functions
– Choosing the Appropriate Data Type
– Choosing a Data Type for Keys
– Date and Time Functions
– Character Functions
– CASE Expression and Related Functions
03 | Filtering and Sorting Data
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
03 | Filtering and Sorting Data
• Lesson 1: Filtering Data with Predicates
– Predicates, Three-Valued Logic, and Search Arguments
– Combining Predicates
– Filtering Character Data
– Filtering Date and Time Data
• Lesson 2: Sorting Data
– Understanding When Order Is Guaranteed
– Using the ORDER BY Clause to Sort Data
• Lesson 3: Filtering Data with TOP and OFFSET-FETCH
– Filtering Data with TOP
– Filtering Data with OFFSET-FETCH
04 | Combining Sets
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
04 | Combining Sets
• Lesson 1: Using Joins
– Cross Joins
– Inner Joins
– Outer Joins
– Multi-Join Queries
• Lesson 2: Using Subqueries, Table Expressions, and the APPLY
– Operator
– Subqueries
– Table Expressions
– APPLY
– Lesson 3: Using Set Operators
– UNION and UNION ALL
– INTERSECT
– EXCEPT
05 | Grouping and Windowing
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
05 | Grouping and Windowing
• Lesson 1: Writing Grouped Queries
– Working with a Single Grouping Set
– Working with Multiple Grouping Sets
• Lesson 2: Pivoting and Unpivoting Data
– Pivoting Data
– Unpivoting Data
• Lesson 3: Using Window Functions
– Window Aggregate Functions
– Window Ranking Functions
– Window Offset Functions
06 | Querying Full-Text Data
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
06 | Querying Full-Text Data
• Lesson 1: Creating Full-Text Catalogs and Indexes
– Full-Text Search Components
– Creating and Managing Full-Text Catalogs and Indexes
• Lesson 2: Using the CONTAINS and FREETEXT Predicates
– The CONTAINS Predicate
– The FREETEXT Predicate
• Lesson 3: Using the Full-Text and Semantic Search
– Table-Valued Functions
– Using the Full-Text Search Functions
– Using the Semantic Search Functions
07 | Querying and Managing XML Data
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
07 | Querying and Managing XML Data
• Lesson 1: Returning Results As XML with FOR XML
– Introduction to XML
– Producing XML from Relational Data
– Shredding XML to Tables
• Lesson 2: Querying XML Data with XQuery
– XQuery Basics
– Navigation
– FLWOR Expressions
• Lesson 3: Using the XML Data Type
– When to Use the XML Data Type
– XML Data Type Methods
– Using the XML Data Type for Dynamic Schema
08 | Creating Tables and Enforcing Data
Integrity
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
08 | Creating Tables and Enforcing Data Integrity
• Lesson 1: Creating and Altering Tables
– Introduction
– Creating a Table
– Altering a Table
– Choosing Table Indexes
• Lesson 2: Enforcing Data Integrity
– Using Constraints
– Primary Key Constraints
– Unique Constraints
– Foreign Key Constraints
– Check Constraints
– Default Constraints
09 | Designing and Creating Views, Inline
Functions, and Synonyms
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
09 | …Views, Inline Functions, and Synonyms
• Lesson 1: Designing and Implementing Views and Inline Functions
– Introduction
– Views
– Inline Functions
• Lesson 2: Using Synonyms
– Creating a Synonym
– Comparing Synonyms with Other Database Objects
10 | Inserting, Updating, and Deleting
Data
Carlos.Flores.Roman@gmail.com | Instructor
• Lesson 1: Inserting Data
– Sample Data
– INSERT VALUES
– INSERT SELECT
– INSERT EXEC
– SELECT INTO
• Lesson 2: Updating Data
– Sample Data
– UPDATE Statement
– UPDATE Based on Join
– Nondeterministic UPDATE
– UPDATE and Table Expressions
– UPDATE Based on a Variable
– UPDATE All-at-Once
• Lesson 3: Deleting Data
– Sample Data
– DELETE Statement
– TRUNCATE Statement
– DELETE Based on a Join
– DELETE Using Table Expressions
Module Overview
10 | Inserting, Updating, and Deleting Data
11 | Other Data Modification Aspects
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
11 | Other Data Modification Aspects
• Lesson 1: Using the Sequence Object and IDENTITY Column Property.
– Using the IDENTITY Column Property
– Using the Sequence Object
• Lesson 2: Merging Data
– Using the MERGE Statement
• Lesson 3: Using the OUTPUT Option
– Working with the OUTPUT Clause
– INSERT with OUTPUT
– DELETE with OUTPUT
– UPDATE with OUTPUT
– MERGE with OUTPUT
– Composable DML
12 | Implementing Transactions, Error
Handling, and Dynamic SQL
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
12 | …Transactions, Error Handling, and Dynamic SQL
• Lesson 1: Managing Transactions and Concurrency
– Understanding Transactions
– Types of Transactions
– Basic Locking
– Transaction Isolation Levels
• Lesson 2: Implementing Error Handling
– Detecting and Raising Errors
– Handling Errors After Detection
– Lesson 3: Using Dynamic SQL
– Dynamic SQL Overview
– SQL Injection
– Using sp_executesql
13 | Designing and Implementing T-SQL
Routines
Carlos.Flores.Roman@gmail.com | Instructor
• Lesson 1: Designing and Implementing
Stored Procedures
– Understanding Stored Procedures
– Executing Stored Procedures
– Branching Logic
– Developing Stored Procedures
• Lesson 2: Implementing Triggers
– DML Triggers
– AFTER Triggers
– INSTEAD OF Triggers
– DML Trigger Functions
• Lesson 3: Implementing User-Defined
Functions
– Understanding User-Defined Functions
– Scalar UDFs
– Table-Valued UDFs
– Limitations on UDFs
– UDF Options
– UDF Performance Considerations
Module Overview
13 | Designing and Implementing T-SQL Routines
14 | Using Tools to Analyze Query
Performance
Carlos.Flores.Roman@gmail.com | Instructor
17 | Implementing Indexes and Statistics
Carlos.Flores.Roman@gmail.com | Instructor
16 | Understanding Cursors, Sets, and
Temporary Tables
Carlos.Flores.Roman@gmail.com | Instructor
Module Overview
16 | … Cursors, Sets, and Temporary Tables
• Lesson 1: Evaluating the Use of Cursor/Iterative Solutions vs. Set-Based Solutions
– The Meaning of "Set-Based"
– Iterations for Operations That Must Be Done Per Row
– Cursor vs. Set-Based Solutions for Data Manipulation Tasks
• Lesson 2: Using Temporary Tables vs. Table Variables
– Scope
– DDL and Indexes
– Physical Representation in tempdb
– Transactions
– Statistics
©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the
U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft
must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after
the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
CRUD
CRUD SQL
Create Insert
Read Select
Update Update
Delete Delete

More Related Content

Viewers also liked

e computer notes - Subqueries
e computer notes - Subqueriese computer notes - Subqueries
e computer notes - Subqueriesecomputernotes
 
Sub-queries,Groupby and having in SQL
Sub-queries,Groupby and having in SQLSub-queries,Groupby and having in SQL
Sub-queries,Groupby and having in SQL
Vikash Sharma
 
Triggers-Sequences-SQL
Triggers-Sequences-SQLTriggers-Sequences-SQL
Triggers-Sequences-SQLPatrick Seery
 
"Using Indexes in SQL Server 2008" by Alexander Korotkiy, part 1
"Using Indexes in SQL Server 2008" by Alexander Korotkiy, part 1 "Using Indexes in SQL Server 2008" by Alexander Korotkiy, part 1
"Using Indexes in SQL Server 2008" by Alexander Korotkiy, part 1
Andriy Krayniy
 
Lecture 4. MS SQL. DML Triggers
Lecture 4. MS SQL. DML TriggersLecture 4. MS SQL. DML Triggers
Lecture 4. MS SQL. DML Triggers
Alexey Furmanov
 
Sql query analyzer & maintenance
Sql query analyzer & maintenanceSql query analyzer & maintenance
Sql query analyzer & maintenance
nspyrenet
 
SQL Server - Using Tools to Analyze Query Performance
SQL Server - Using Tools to Analyze Query PerformanceSQL Server - Using Tools to Analyze Query Performance
SQL Server - Using Tools to Analyze Query Performance
Marek Maśko
 
View, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - ThaiptView, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - ThaiptFramgia Vietnam
 
SQL subquery
SQL subquerySQL subquery
SQL subquery
Vikas Gupta
 
Database Transactions and SQL Server Concurrency
Database Transactions and SQL Server ConcurrencyDatabase Transactions and SQL Server Concurrency
Database Transactions and SQL Server Concurrency
Boris Hristov
 
Data Compression In SQL
Data Compression In SQLData Compression In SQL
Data Compression In SQLBoosh Booshan
 
Procedures and triggers in SQL
Procedures and triggers in SQLProcedures and triggers in SQL
Procedures and triggers in SQL
Vikash Sharma
 
SQL: Query optimization in practice
SQL: Query optimization in practiceSQL: Query optimization in practice
SQL: Query optimization in practice
Jano Suchal
 
SQL Transactions - What they are good for and how they work
SQL Transactions - What they are good for and how they workSQL Transactions - What they are good for and how they work
SQL Transactions - What they are good for and how they work
Markus Winand
 
Trigger and cursor program using sql
Trigger and cursor program using sqlTrigger and cursor program using sql
Trigger and cursor program using sqlSushil Mishra
 

Viewers also liked (18)

e computer notes - Subqueries
e computer notes - Subqueriese computer notes - Subqueries
e computer notes - Subqueries
 
Sub-queries,Groupby and having in SQL
Sub-queries,Groupby and having in SQLSub-queries,Groupby and having in SQL
Sub-queries,Groupby and having in SQL
 
Locking in SQL Server
Locking in SQL ServerLocking in SQL Server
Locking in SQL Server
 
Review of SQL
Review of SQLReview of SQL
Review of SQL
 
Triggers-Sequences-SQL
Triggers-Sequences-SQLTriggers-Sequences-SQL
Triggers-Sequences-SQL
 
"Using Indexes in SQL Server 2008" by Alexander Korotkiy, part 1
"Using Indexes in SQL Server 2008" by Alexander Korotkiy, part 1 "Using Indexes in SQL Server 2008" by Alexander Korotkiy, part 1
"Using Indexes in SQL Server 2008" by Alexander Korotkiy, part 1
 
Lecture 4. MS SQL. DML Triggers
Lecture 4. MS SQL. DML TriggersLecture 4. MS SQL. DML Triggers
Lecture 4. MS SQL. DML Triggers
 
Locking And Concurrency
Locking And ConcurrencyLocking And Concurrency
Locking And Concurrency
 
Sql query analyzer & maintenance
Sql query analyzer & maintenanceSql query analyzer & maintenance
Sql query analyzer & maintenance
 
SQL Server - Using Tools to Analyze Query Performance
SQL Server - Using Tools to Analyze Query PerformanceSQL Server - Using Tools to Analyze Query Performance
SQL Server - Using Tools to Analyze Query Performance
 
View, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - ThaiptView, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - Thaipt
 
SQL subquery
SQL subquerySQL subquery
SQL subquery
 
Database Transactions and SQL Server Concurrency
Database Transactions and SQL Server ConcurrencyDatabase Transactions and SQL Server Concurrency
Database Transactions and SQL Server Concurrency
 
Data Compression In SQL
Data Compression In SQLData Compression In SQL
Data Compression In SQL
 
Procedures and triggers in SQL
Procedures and triggers in SQLProcedures and triggers in SQL
Procedures and triggers in SQL
 
SQL: Query optimization in practice
SQL: Query optimization in practiceSQL: Query optimization in practice
SQL: Query optimization in practice
 
SQL Transactions - What they are good for and how they work
SQL Transactions - What they are good for and how they workSQL Transactions - What they are good for and how they work
SQL Transactions - What they are good for and how they work
 
Trigger and cursor program using sql
Trigger and cursor program using sqlTrigger and cursor program using sql
Trigger and cursor program using sql
 

Similar to Consultas en MS SQL Server 2012

Discovering the New SuccessFactors LMS Admin Features
Discovering the New SuccessFactors LMS Admin FeaturesDiscovering the New SuccessFactors LMS Admin Features
Discovering the New SuccessFactors LMS Admin Features
Ashton Plusquellec
 
Intro sharepoint
Intro sharepointIntro sharepoint
Intro sharepoint
Rico Milton
 
Blue Prism Training Agenda
Blue Prism Training AgendaBlue Prism Training Agenda
Blue Prism Training Agenda
Saranya Vempalli
 
Anshu Joshi_2371050_DBMS.pptxData base management system
Anshu Joshi_2371050_DBMS.pptxData base management systemAnshu Joshi_2371050_DBMS.pptxData base management system
Anshu Joshi_2371050_DBMS.pptxData base management system
anshjoshi7417
 
Large Data Volume Salesforce experiences
Large Data Volume Salesforce experiencesLarge Data Volume Salesforce experiences
Large Data Volume Salesforce experiences
Cidar Mendizabal
 
Programming in C++ and Data Strucutres
Programming in C++ and Data StrucutresProgramming in C++ and Data Strucutres
Programming in C++ and Data Strucutres
Dr. C.V. Suresh Babu
 
Moodle user group 27 02-14
Moodle user group 27 02-14Moodle user group 27 02-14
Moodle user group 27 02-14
Jisc RSC East Midlands
 
Introduction to Database Systems(CLO.pdf
Introduction to Database Systems(CLO.pdfIntroduction to Database Systems(CLO.pdf
Introduction to Database Systems(CLO.pdf
SawairaKazmi
 
50429 a sharepoint 2010 business intelligence
50429 a   sharepoint 2010 business intelligence50429 a   sharepoint 2010 business intelligence
50429 a sharepoint 2010 business intelligencebestip
 
09 commercial distance learning software systems
09 commercial distance learning software systems09 commercial distance learning software systems
09 commercial distance learning software systems宥均 林
 
Data Structure Syllabus.pdf
Data Structure Syllabus.pdfData Structure Syllabus.pdf
Data Structure Syllabus.pdf
Marvin158667
 
How to select and deploy your Learning Management System (LMS)
How to select and deploy your Learning Management System (LMS)How to select and deploy your Learning Management System (LMS)
How to select and deploy your Learning Management System (LMS)
Kumar Kaneswaran
 
IFI7184.DT lesson1- Programming languages
IFI7184.DT lesson1- Programming languagesIFI7184.DT lesson1- Programming languages
IFI7184.DT lesson1- Programming languages
Sónia
 
Lucene/Solr Revolution 2015: Where Search Meets Machine Learning
Lucene/Solr Revolution 2015: Where Search Meets Machine LearningLucene/Solr Revolution 2015: Where Search Meets Machine Learning
Lucene/Solr Revolution 2015: Where Search Meets Machine Learning
Joaquin Delgado PhD.
 
Lucene/Solr Revolution 2015: Where Search Meets Machine Learning
Lucene/Solr Revolution 2015: Where Search Meets Machine LearningLucene/Solr Revolution 2015: Where Search Meets Machine Learning
Lucene/Solr Revolution 2015: Where Search Meets Machine Learning
S. Diana Hu
 
Where Search Meets Machine Learning: Presented by Diana Hu & Joaquin Delgado,...
Where Search Meets Machine Learning: Presented by Diana Hu & Joaquin Delgado,...Where Search Meets Machine Learning: Presented by Diana Hu & Joaquin Delgado,...
Where Search Meets Machine Learning: Presented by Diana Hu & Joaquin Delgado,...
Lucidworks
 
Real World – Rapid prototyping with Logic Apps
Real World – Rapid prototyping with Logic AppsReal World – Rapid prototyping with Logic Apps
Real World – Rapid prototyping with Logic Apps
BizTalk360
 
6232 implementing a microsoft sql server 2008 database
6232 implementing a microsoft sql server 2008 database6232 implementing a microsoft sql server 2008 database
6232 implementing a microsoft sql server 2008 databasebestip
 
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
Perficient
 

Similar to Consultas en MS SQL Server 2012 (20)

Discovering the New SuccessFactors LMS Admin Features
Discovering the New SuccessFactors LMS Admin FeaturesDiscovering the New SuccessFactors LMS Admin Features
Discovering the New SuccessFactors LMS Admin Features
 
Intro sharepoint
Intro sharepointIntro sharepoint
Intro sharepoint
 
Blue Prism Training Agenda
Blue Prism Training AgendaBlue Prism Training Agenda
Blue Prism Training Agenda
 
Anshu Joshi_2371050_DBMS.pptxData base management system
Anshu Joshi_2371050_DBMS.pptxData base management systemAnshu Joshi_2371050_DBMS.pptxData base management system
Anshu Joshi_2371050_DBMS.pptxData base management system
 
Large Data Volume Salesforce experiences
Large Data Volume Salesforce experiencesLarge Data Volume Salesforce experiences
Large Data Volume Salesforce experiences
 
Programming in C++ and Data Strucutres
Programming in C++ and Data StrucutresProgramming in C++ and Data Strucutres
Programming in C++ and Data Strucutres
 
Mba 758 database management system
Mba 758 database management systemMba 758 database management system
Mba 758 database management system
 
Moodle user group 27 02-14
Moodle user group 27 02-14Moodle user group 27 02-14
Moodle user group 27 02-14
 
Introduction to Database Systems(CLO.pdf
Introduction to Database Systems(CLO.pdfIntroduction to Database Systems(CLO.pdf
Introduction to Database Systems(CLO.pdf
 
50429 a sharepoint 2010 business intelligence
50429 a   sharepoint 2010 business intelligence50429 a   sharepoint 2010 business intelligence
50429 a sharepoint 2010 business intelligence
 
09 commercial distance learning software systems
09 commercial distance learning software systems09 commercial distance learning software systems
09 commercial distance learning software systems
 
Data Structure Syllabus.pdf
Data Structure Syllabus.pdfData Structure Syllabus.pdf
Data Structure Syllabus.pdf
 
How to select and deploy your Learning Management System (LMS)
How to select and deploy your Learning Management System (LMS)How to select and deploy your Learning Management System (LMS)
How to select and deploy your Learning Management System (LMS)
 
IFI7184.DT lesson1- Programming languages
IFI7184.DT lesson1- Programming languagesIFI7184.DT lesson1- Programming languages
IFI7184.DT lesson1- Programming languages
 
Lucene/Solr Revolution 2015: Where Search Meets Machine Learning
Lucene/Solr Revolution 2015: Where Search Meets Machine LearningLucene/Solr Revolution 2015: Where Search Meets Machine Learning
Lucene/Solr Revolution 2015: Where Search Meets Machine Learning
 
Lucene/Solr Revolution 2015: Where Search Meets Machine Learning
Lucene/Solr Revolution 2015: Where Search Meets Machine LearningLucene/Solr Revolution 2015: Where Search Meets Machine Learning
Lucene/Solr Revolution 2015: Where Search Meets Machine Learning
 
Where Search Meets Machine Learning: Presented by Diana Hu & Joaquin Delgado,...
Where Search Meets Machine Learning: Presented by Diana Hu & Joaquin Delgado,...Where Search Meets Machine Learning: Presented by Diana Hu & Joaquin Delgado,...
Where Search Meets Machine Learning: Presented by Diana Hu & Joaquin Delgado,...
 
Real World – Rapid prototyping with Logic Apps
Real World – Rapid prototyping with Logic AppsReal World – Rapid prototyping with Logic Apps
Real World – Rapid prototyping with Logic Apps
 
6232 implementing a microsoft sql server 2008 database
6232 implementing a microsoft sql server 2008 database6232 implementing a microsoft sql server 2008 database
6232 implementing a microsoft sql server 2008 database
 
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 

Consultas en MS SQL Server 2012

  • 1.
  • 2.
  • 3. Ven Señor, sobre nuestros pensamientos, palabras y obras, a fin de que nuestro dia se agradable ante tus ojos. Querido Dios abre sus ojos para que se salven y dejen la ignorancia y las ensenñanzas que han recibido. Beshir Estefanos Kamel
  • 4. El verdadero tesoro La lámpara del cuerpo es el ojo; por eso, si tu ojo está sano, todo tu cuerpo estará lleno de luz. Pero si tu ojo está malo, todo tu cuerpo estará lleno de oscuridad. Así que, si la luz que hay en ti es oscuridad, ¡cuán grande será la oscuridad! Mateo 6:22
  • 5. Profesor de POO y Bases de Datos. Carlos.Flores.Roman@gmail.com Carlos.Flores@dae.una.edu.ni
  • 6. Cronograma • Todos los jueves • 5:30 pm – 8:00 pm
  • 7. Expectativas • Audiencia – Con conocimientos básico e intermedio en MS SQL Server – Personas que estan considerando tomar el examen 70-461; • Material Adicional – Microsoft Official Course 20461 • Querying Microsoft SQL Server • Charla preparatoria para la certificación de Microsoft: Examen 461
  • 8. • Microsoft Virtual Academy – Cursos en linea dirigidos por profesionales – Actualmente se encuentran registrados mas de 3M de usuarios – Información actualizada y con una variedad de productos MS – Cursos relacionados • Querying with Transact-SQL • Database Fundamentals Unete a la comunidad MVA
  • 9. Otras fuentes 1/2 • Sitios que venden el servicio de entrenamiento – Learn on line – Pluralsight – Lynda
  • 10. • Edx, Coursera, Udacity, • Future Learn, EducaLab, • Miriadax, Canvas, • European MOOCs • Harvard; Stanford; MIT; • U de Granada • Books – T-SQL Querying Otras fuentes 2/2
  • 11. Course Topics 1. Querying Microsoft SQL server 2012 with transact sql 01 | Foundations of Querying 07 | Querying and Managing XML Data 02 | Getting Started with the SELECT Statement 08 | Creating Tables and Enforcing Data Integrity 03 | Filtering and Sorting Data 09 | Designing and Creating Views, Inline Functions, and Synonyms 04 | Combining Sets 10 | Inserting, Updating, and Deleting Data 05 | Grouping and Windowing 11 | Other Data Modification Aspects 06 | Querying Full-Text Data 12 | Implementing Transactions, Error Handling, and Dynamic SQL
  • 12. 01 | Foundations of Querying Carlos.Flores.Roman@gmail.com | Instructor
  • 13. Module Overview 01 | Foundations of Querying • Lesson 1: Understanding the Foundations of T-SQL – Evolution of T-SQL – Using T-SQL in a Relational Way – Using Correct Terminology • Lesson 2: Understanding Logical Query Processing – T-SQL As a Declarative English-Like Language – Logical Query Processing Phases
  • 14. 02 | Getting Started with the SELECT Statement Carlos.Flores.Roman@gmail.com | Instructor
  • 15. Module Overview 02 | Getting Started with the SELECT Statement • Lesson 1: Using the FROM and SELECT Clauses – The FROM Clause – The SELECT Clause – Delimiting Identifiers • Lesson 2: Working with Data Types and Built-in Functions – Choosing the Appropriate Data Type – Choosing a Data Type for Keys – Date and Time Functions – Character Functions – CASE Expression and Related Functions
  • 16. 03 | Filtering and Sorting Data Carlos.Flores.Roman@gmail.com | Instructor
  • 17. Module Overview 03 | Filtering and Sorting Data • Lesson 1: Filtering Data with Predicates – Predicates, Three-Valued Logic, and Search Arguments – Combining Predicates – Filtering Character Data – Filtering Date and Time Data • Lesson 2: Sorting Data – Understanding When Order Is Guaranteed – Using the ORDER BY Clause to Sort Data • Lesson 3: Filtering Data with TOP and OFFSET-FETCH – Filtering Data with TOP – Filtering Data with OFFSET-FETCH
  • 18. 04 | Combining Sets Carlos.Flores.Roman@gmail.com | Instructor
  • 19. Module Overview 04 | Combining Sets • Lesson 1: Using Joins – Cross Joins – Inner Joins – Outer Joins – Multi-Join Queries • Lesson 2: Using Subqueries, Table Expressions, and the APPLY – Operator – Subqueries – Table Expressions – APPLY – Lesson 3: Using Set Operators – UNION and UNION ALL – INTERSECT – EXCEPT
  • 20. 05 | Grouping and Windowing Carlos.Flores.Roman@gmail.com | Instructor
  • 21. Module Overview 05 | Grouping and Windowing • Lesson 1: Writing Grouped Queries – Working with a Single Grouping Set – Working with Multiple Grouping Sets • Lesson 2: Pivoting and Unpivoting Data – Pivoting Data – Unpivoting Data • Lesson 3: Using Window Functions – Window Aggregate Functions – Window Ranking Functions – Window Offset Functions
  • 22. 06 | Querying Full-Text Data Carlos.Flores.Roman@gmail.com | Instructor
  • 23. Module Overview 06 | Querying Full-Text Data • Lesson 1: Creating Full-Text Catalogs and Indexes – Full-Text Search Components – Creating and Managing Full-Text Catalogs and Indexes • Lesson 2: Using the CONTAINS and FREETEXT Predicates – The CONTAINS Predicate – The FREETEXT Predicate • Lesson 3: Using the Full-Text and Semantic Search – Table-Valued Functions – Using the Full-Text Search Functions – Using the Semantic Search Functions
  • 24. 07 | Querying and Managing XML Data Carlos.Flores.Roman@gmail.com | Instructor
  • 25. Module Overview 07 | Querying and Managing XML Data • Lesson 1: Returning Results As XML with FOR XML – Introduction to XML – Producing XML from Relational Data – Shredding XML to Tables • Lesson 2: Querying XML Data with XQuery – XQuery Basics – Navigation – FLWOR Expressions • Lesson 3: Using the XML Data Type – When to Use the XML Data Type – XML Data Type Methods – Using the XML Data Type for Dynamic Schema
  • 26. 08 | Creating Tables and Enforcing Data Integrity Carlos.Flores.Roman@gmail.com | Instructor
  • 27. Module Overview 08 | Creating Tables and Enforcing Data Integrity • Lesson 1: Creating and Altering Tables – Introduction – Creating a Table – Altering a Table – Choosing Table Indexes • Lesson 2: Enforcing Data Integrity – Using Constraints – Primary Key Constraints – Unique Constraints – Foreign Key Constraints – Check Constraints – Default Constraints
  • 28. 09 | Designing and Creating Views, Inline Functions, and Synonyms Carlos.Flores.Roman@gmail.com | Instructor
  • 29. Module Overview 09 | …Views, Inline Functions, and Synonyms • Lesson 1: Designing and Implementing Views and Inline Functions – Introduction – Views – Inline Functions • Lesson 2: Using Synonyms – Creating a Synonym – Comparing Synonyms with Other Database Objects
  • 30. 10 | Inserting, Updating, and Deleting Data Carlos.Flores.Roman@gmail.com | Instructor
  • 31. • Lesson 1: Inserting Data – Sample Data – INSERT VALUES – INSERT SELECT – INSERT EXEC – SELECT INTO • Lesson 2: Updating Data – Sample Data – UPDATE Statement – UPDATE Based on Join – Nondeterministic UPDATE – UPDATE and Table Expressions – UPDATE Based on a Variable – UPDATE All-at-Once • Lesson 3: Deleting Data – Sample Data – DELETE Statement – TRUNCATE Statement – DELETE Based on a Join – DELETE Using Table Expressions Module Overview 10 | Inserting, Updating, and Deleting Data
  • 32. 11 | Other Data Modification Aspects Carlos.Flores.Roman@gmail.com | Instructor
  • 33. Module Overview 11 | Other Data Modification Aspects • Lesson 1: Using the Sequence Object and IDENTITY Column Property. – Using the IDENTITY Column Property – Using the Sequence Object • Lesson 2: Merging Data – Using the MERGE Statement • Lesson 3: Using the OUTPUT Option – Working with the OUTPUT Clause – INSERT with OUTPUT – DELETE with OUTPUT – UPDATE with OUTPUT – MERGE with OUTPUT – Composable DML
  • 34. 12 | Implementing Transactions, Error Handling, and Dynamic SQL Carlos.Flores.Roman@gmail.com | Instructor
  • 35. Module Overview 12 | …Transactions, Error Handling, and Dynamic SQL • Lesson 1: Managing Transactions and Concurrency – Understanding Transactions – Types of Transactions – Basic Locking – Transaction Isolation Levels • Lesson 2: Implementing Error Handling – Detecting and Raising Errors – Handling Errors After Detection – Lesson 3: Using Dynamic SQL – Dynamic SQL Overview – SQL Injection – Using sp_executesql
  • 36. 13 | Designing and Implementing T-SQL Routines Carlos.Flores.Roman@gmail.com | Instructor
  • 37. • Lesson 1: Designing and Implementing Stored Procedures – Understanding Stored Procedures – Executing Stored Procedures – Branching Logic – Developing Stored Procedures • Lesson 2: Implementing Triggers – DML Triggers – AFTER Triggers – INSTEAD OF Triggers – DML Trigger Functions • Lesson 3: Implementing User-Defined Functions – Understanding User-Defined Functions – Scalar UDFs – Table-Valued UDFs – Limitations on UDFs – UDF Options – UDF Performance Considerations Module Overview 13 | Designing and Implementing T-SQL Routines
  • 38. 14 | Using Tools to Analyze Query Performance Carlos.Flores.Roman@gmail.com | Instructor
  • 39. 17 | Implementing Indexes and Statistics Carlos.Flores.Roman@gmail.com | Instructor
  • 40. 16 | Understanding Cursors, Sets, and Temporary Tables Carlos.Flores.Roman@gmail.com | Instructor
  • 41. Module Overview 16 | … Cursors, Sets, and Temporary Tables • Lesson 1: Evaluating the Use of Cursor/Iterative Solutions vs. Set-Based Solutions – The Meaning of "Set-Based" – Iterations for Operations That Must Be Done Per Row – Cursor vs. Set-Based Solutions for Data Manipulation Tasks • Lesson 2: Using Temporary Tables vs. Table Variables – Scope – DDL and Indexes – Physical Representation in tempdb – Transactions – Statistics
  • 42. ©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
  • 43. CRUD CRUD SQL Create Insert Read Select Update Update Delete Delete

Editor's Notes

  1. 1
  2. https://www.microsoft.com/learning/es-mx/exam-70-461.aspx https://www.microsoft.com/learning/en-us/exam-70-461.aspx Course 20461C: Querying Microsoft SQL Server https://www.microsoft.com/learning/en-us/course.aspx?id=20461c
  3. 01 | Foundations of Querying 02 | Getting Started with the SELECT Statement 03 | Filtering and Sorting Data 04 | Combining Sets 05 | Grouping and Windowing 06 | Querying Full-Text Data 07 | Querying and Managing XML Data 08 | Creating Tables and Enforcing Data Integrity 09 | Designing and Creating Views, Inline Functions, and Synonyms 10 | Inserting, Updating, and Deleting Data 11 | Other Data Modification Aspects 12 | Implementing Transactions, Error Handling, and Dynamic SQL 13 | Designing and Implementing T-SQL Routines 14 | Using Tools to Analyze Query Performance 15 | Implementing Indexes and Statistics 16 | Understanding Cursors, Sets, and Temporary Tables 17 | Understanding Further Optimization Aspects Chapter 1 Foundations of Querying Lesson 1: Understanding the Foundations of T-SQL Evolution of T-SQL Using T-SQL in a Relational Way Using Correct Terminology Lesson 2: Understanding Logical Query Processing T-SQL As a Declarative English-Like Language Logical Query Processing Phases   Chapter 2 Getting Started with the SELECT Statement Lesson 1: Using the FROM and SELECT Clauses The FROM Clause The SELECT Clause Delimiting Identifiers Lesson 2: Working with Data Types and Built-in Functions Choosing the Appropriate Data Type Choosing a Data Type for Keys Date and Time Functions Character Functions CASE Expression and Related Functions   Chapter 3 Filtering and Sorting Data Lesson 1: Filtering Data with Predicates Predicates, Three-Valued Logic, and Search Arguments Combining Predicates Filtering Character Data Filtering Date and Time Data Lesson 2: Sorting Data Understanding When Order Is Guaranteed Using the ORDER BY Clause to Sort Data Lesson 3: Filtering Data with TOP and OFFSET-FETCH Filtering Data with TOP Filtering Data with OFFSET-FETCH   Chapter 4 Combining Sets Lesson 1: Using Joins Cross Joins Inner Joins Outer Joins Multi-Join Queries Lesson 2: Using Subqueries, Table Expressions, and the APPLY Operator Subqueries Table Expressions APPLY Lesson 3: Using Set Operator UNION and UNION ALL INTERSECT EXCEPT   Chapter 5 Grouping and Windowing Lesson 1: Writing Grouped Queries Working with a Single Grouping Set Working with Multiple Grouping Sets Lesson 2: Pivoting and Unpivoting Data Pivoting Data Unpivoting Data Lesson 3: Using Window Functions Window Aggregate Functions Window Ranking Functions Window Offset Functions   Chapter 6 Querying Full-Text Data Lesson 1: Creating Full-Text Catalogs and Indexes Full-Text Search Components Creating and Managing Full-Text Catalogs and Indexes Lesson 2: Using the CONTAINS and FREETEXT Predicate The CONTAINS Predicate The FREETEXT Predicate Lesson 3: Using the Full-Text and Semantic Search Table-Valued Function Using the Full-Text Search Functions Using the Semantic Search Functions   Chapter 7 Querying and Managing XML Data Lesson 1: Returning Results As XML with FOR XML Introduction to XML Producing XML from Relational Data Shredding XML to Tables Lesson 2: Querying XML Data with XQuery XQuery Basics Navigation FLWOR Expressions Lesson 3: Using the XML Data Type When to Use the XML Data Type XML Data Type Methods Using the XML Data Type for Dynamic Schema   Chapter 8 Creating Tables and Enforcing Data Integrity Lesson 1: Creating and Altering Tables Introduction Creating a Table Altering a Table Choosing Table Indexes Lesson 2: Enforcing Data Integrity Using Constraints Primary Key Constraints Unique Constraints Foreign Key Constraints Check Constraints Default Constraints   Chapter 9 Designing and Creating Views, Inline Functions, and Synonyms Lesson 1: Designing and Implementing Views and Inline Functions Introduction Views Inline Functions Lesson 2: Using Synonyms Creating a Synonym Comparing Synonyms with Other Database Objects   Chapter 10 Inserting, Updating, and Deleting Data Lesson 1: Inserting Data Sample Data INSERT VALUES INSERT SELECT INSERT EXEC SELECT INTO Lesson 2: Updating Data Sample Data UPDATE Statement UPDATE Based on Join Nondeterministic UPDATE UPDATE and Table Expressions UPDATE Based on a Variable UPDATE All-at-Once Lesson 3: Deleting Data Sample Data DELETE Statement TRUNCATE Statement DELETE Based on a Join DELETE Using Table Expressions   Chapter 11 Other Data Modification Aspects Lesson 1: Using the Sequence Object and IDENTITY Column Property. Using the IDENTITY Column Property Using the Sequence Object Lesson 2: Merging Data Using the MERGE Statement Lesson 3: Using the OUTPUT Option Working with the OUTPUT Clause INSERT with OUTPUT DELETE with OUTPUT UPDATE with OUTPUT MERGE with OUTPUT Composable DML   Chapter 12 Implementing Transactions, Error Handling, and Dynamic SQL Lesson 1: Managing Transactions and Concurrency Understanding Transactions Types of Transactions Basic Locking Transaction Isolation Levels Lesson 2: Implementing Error Handling Detecting and Raising Errors Handling Errors After Detection Lesson 3: Using Dynamic SQL Dynamic SQL Overview SQL Injection Using sp_executesql   Chapter 13 Designing and Implementing T-SQL Routines Lesson 1: Designing and Implementing Stored Procedures Understanding Stored Procedures Executing Stored Procedures Branching Logic Developing Stored Procedures Lesson 2: Implementing Triggers DML Triggers AFTER Triggers INSTEAD OF Triggers DML Trigger Functions Lesson 3: Implementing User-Defined Functions Understanding User-Defined Functions Scalar UDFs Table-Valued UDFs Limitations on UDFs UDF Options UDF Performance Considerations   Chapter 14 Using Tools to Analyze Query Performance Lesson 1: Getting Started with Query Optimization Query Optimization Problems and the Query Optimizer SQL Server Extended Events, SQL Trace, and SQL Server Profiler   Lesson 2: Using SET Session Options and Analyzing Query Plans SET Session Options Execution Plans Lesson 3: Using Dynamic Management Objects Introduction to Dynamic Management Objects The Most Important DMOs for Query Tuning   Chapter 15 Implementing Indexes and Statistics Lesson 1: Implementing Indexes Heaps and Balanced Trees Implementing Nonclustered Indexes Implementing Indexed Views Lesson 2: Using Search Arguments Supporting Queries with Indexes Search Arguments Lesson 3: Understanding Statistics Auto-Created Statistics Manually Maintaining Statistics   Chapter 16 Understanding Cursors, Sets, and Temporary Tables Lesson 1: Evaluating the Use of Cursor/Iterative Solutions vs. Set-Based Solutions The Meaning of “Set-Based” Iterations for Operations That Must Be Done Per Row Cursor vs. Set-Based Solutions for Data Manipulation Tasks Lesson 2: Using Temporary Tables vs. Table Variables Scope DDL and Indexes Physical Representation in tempdb Transactions Statistics   Chapter 17 Understanding Further Optimization Aspects Lesson 1: Understanding Plan Iterator Access Methods Join Algorithms Other Plan Iterators Lesson 2: Using Parameterized Queries and Batch Operations Parameterized Queries Batch Processing Lesson 3: Using Optimizer Hints and Plan Guides Optimizer Hints Plan Guides
  4. 12
  5. 14
  6. 16
  7. 18
  8. 20
  9. 22
  10. 24
  11. 26
  12. 28
  13. 30
  14. 32
  15. 34
  16. 36
  17. 38
  18. 39
  19. 40