O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

MCSA Querying Microsoft SQL Server 2012 (Exam 70-461): Required Knowledge for SQL Server 2012 and 2014

Video Description

Lesson Files: http://www.informit.com/content/images/9780789753984/downloads/Code_70-461.zip

More than 12 hours of video instruction on Querying Microsoft SQL Server 2012 to help you pass the MCSA Querying Microsoft SQL Server 2012 (70-461) exam

Learn the ins and outs of SQL Server in this practical video tutorial. MCSA/MCSE Exam 70-461 Querying Microsoft SQL Server 2012 LiveLessons is a unique video product that provides a solid understanding of querying SQL Server 2012, a necessity for database administrators and developers and required knowledge for certifications on Microsoft SQL Server 2012 and 2014. Transact-SQL (T-SQL) is the main language used to manage data on Microsoft SQL Server. Understanding T-SQL is foremost in writing performance-based queries. The product takes the student from the basics of the language to the structures that will create optimal results. The student learns, step-by-step, creating database objects, working with data, modifying data, and troubleshooting and optimizing queries for a comprehensive study of querying. This video course contains an initial overview video and 4 modules with 17 videos lessons, subdivided into 155 sub lessons, for a total of 12 hours of instruction. The videos consist of audio instruction, animations, and video screen casts. Each video lab presents detailed objectives, lab diagrams, and video captures. Audio instruction throughout offers detailed explanations, tips, and configuration verifications.

Skill Level
Beginning

Who Should Take This Course
Primary Audience: The target audience for this course are administrators, developers, and power-users in the database world who want to expand their knowledge of Transact-SQL querying, as well as candidates considering taking the Microsoft SQL Server 2012 Administrator and Developer Certifications.

Course Requirements
Users should have a working knowledge of Microsoft SQL Server 2012, experience using SQL Server Management Studio (SSMS), as well as some experience writing Transact-SQL code. Access to a SQL Server 2012 instance including a sample database is also highly recommended.

Learn How To:

Create database objects, including:
o Creating and Altering Tables Using T-SQL Syntax
o Designing, Creating, and Altering Views
o Creating and Modifying Constraints
o Creating and Altering DML Triggers


Working With Data
o Querying Data by Using SELECT Statements
o Implementing Sub-Queries
o Implementing Data Types
o Implementing Aggregate Queries
o Querying and Managing XML Data


Modifying Data
o Modifying Data by using INSERT, UPDATE, and DELETE Statements
o Combining Datasets
o Creating and Altering Stored Procedures
o Working with Functions


Troubleshooting and Optimizing
o Optimizing Queries
o Managing Transactions
o Evaluating the Use of Row-based Operations versu Set-Based Operations
o Implementing Error Handling

Table of Contents

Module 1: Create Database Objects (24%)
Lesson 1: Create and Alter Tables Using T-SQL Syntax
Lesson 2: Design, Create, and Alter Views
Lesson 3: Create and Modify Constraints
Lesson 4: Create and Alter DML Triggers

Module 2: Work With Data (27%)
Lesson 5: Query Data by Using SELECT Statements
Lesson 6: Implement Sub-Queries
Lesson 7: Implement Data Types
Lesson 8: Implement Aggregate Queries
Lesson 9: Query and Manage XML Data

Module 3: Modify Data (24%)
Lesson 10: Modify Data by using INSERT, UPDATE, and DELETE Statements
Lesson 11: Combine Datasets
Lesson 12: Create and Alter Stored Procedures
Lesson 13: Work with Functions

Module 4: Troubleshoot and Optimize (25%)
Lesson 14: Optimize Queries
Lesson 15: Manage Transactions
Lesson 16: Evaluate the Use of Row-based Operations vs. Set-Based Operations
Lesson 17: Implement Error Handling

About LiveLessons Video Training

LiveLessons Video Training series publishes hundreds of hands-on, expert-led video tutorials covering a wide selection of technology topics designed to teach you the skills you need to succeed. This professional and personal technology video series features world-leading author instructors published by your trusted technology brands: Addison-Wesley, Cisco Press, IBM Press, Pearson IT Certification, Prentice Hall, Sams, and Que. Topics include: IT Certification, Programming, Web Development, Mobile Development, Home and Office Technologies, Business and Management, and more. View all LiveLessons on InformIT at:  http://www.informit.com/livelessons

Table of Contents

  1. Introduction
    1. MCSA Querying Microsoft SQL Server 2012 (Exam 70-461) LiveLessons: Introduction 00:08:50
  2. Module 1: Create Database Objects
    1. Create Database Objects 00:00:36
  3. Lesson 1: Create and Alter Tables Using T-SQL Syntax
    1. Learning Objectives 00:00:26
    2. 1.1 Creating Tables Using the CREATE Statement 00:05:23
    3. 1.2 Specifying Schema in Database, Table, and Column Names 00:04:13
    4. 1.3 Choosing Column Data Types 00:12:26
    5. 1.4 Altering Tables and Columns 00:04:40
    6. 1.5 Dropping Tables 00:02:21
    7. 1.6 Demo – Examining the Syntax of the CREATE TABLE Statement and Comparing with a Sample 00:11:57
    8. 1.7 Demo – Best Practices in Naming Tables and Columns 00:02:55
    9. 1.8 Demo – Guideline Samples for Selecting Column Types 00:05:15
    10. 1.9 Demo – Using ALTER TABLE to Add and Modify Columns 00:03:11
    11. 1.10 Demo – Using DROP TABLE and Noting Consequences 00:01:13
  4. Lesson 2: Design, Create, and Alter Views
    1. Learning Objectives 00:00:26
    2. 2.1 Analyzing the CREATE VIEW Statement and Options 00:06:08
    3. 2.2 Demo – Comparing the CREATE VIEW Syntax with a Sample VIEW Statement and Options 00:03:13
    4. 2.3 Creating and Implementing Indexed Views 00:04:41
    5. 2.4 Using ALTER VIEW and DROP VIEW 00:02:53
    6. 2.5 Using a View to Modify Data 00:02:27
    7. 2.6 Demo – Altering a View Using ORDER BY 00:04:23
    8. 2.7 Demo – Updating a Table Using a View 00:04:05
  5. Lesson 3: Create and Modify Constraints
    1. Learning Objective 00:00:30
    2. 3.1 Creating a Primary Key Constraint 00:06:13
    3. 3.2 Demo – Defining a Primary Key Constraint Using CREATE TABLE and ALTER TABLE 00:01:43
    4. 3.3 Defining and Creating Unique Constraints 00:03:05
    5. 3.4 Defining and Creating Foreign Key Constraints 00:05:58
    6. 3.5 Defining and Creating Check Constraints 00:03:14
    7. 3.6 Defining and Creating Default Constraints 00:04:04
    8. 3.7 Demo – Working with Constraints to Enforce Data Integrity 00:04:14
  6. Lesson 4: Create and Alter DML Triggers
    1. Learning Objectives 00:00:26
    2. 4.1 Using DML Triggers 00:06:28
    3. 4.2 Creating and Using AFTER Triggers 00:05:02
    4. 4.3 Demo - Using AFTER Trigger 00:04:27
    5. 4.4 Defining Nested AFTER Triggers 00:01:57
    6. 4.5 Creating and Using INSTEAD OF triggers 00:03:37
    7. 4.6 Using Trigger Update Functions 00:01:53
    8. 4.7 Handling Multiple Rows in a Session 00:02:25
    9. 4.8 Understanding the Performance Implications of Triggers 00:02:37
    10. 4.9 Demo - Understanding Inserted and Deleted Tables When Using an AFTER Trigger 00:04:33
  7. Module 2: Work With Data
    1. Work With Data 00:00:38
  8. Lesson 5: Query Data by Using SELECT Statements
    1. Learning Objectives 00:00:36
    2. 5.1 Creating Queries That Filter Data Using Predicates 00:04:03
    3. 5.2 Creating Queries to Correctly Handle NULLs 00:01:41
    4. 5.3 Writing Queries That Combine Predicates 00:03:58
    5. 5.4 Demo - Reviewing Non-Efficient and Efficient Sample Queries 00:05:57
    6. 5.5 Controlling the Order of the Query Result Using Best Practices 00:02:30
    7. 5.6 Demo - Using ORDER BY, DISTINCT, and Aliases 00:05:10
    8. 5.7 Creating Deterministic Query Results 00:02:14
    9. 5.8 Ranking Query Results Using TOP(x) and OFFSET – FETCH 00:02:29
    10. 5.9 Demo - Using TOP(x) and OFFSET – FETCH to Filter Data 00:03:59
    11. 5.10 Using Joins to Query Data over Multiple Tables 00:07:37
    12. 5.11 Writing Complex Queries – Joins versus Derived Tables 00:04:33
    13. 5.12 Demo - Using Joins to Access Data 00:07:42
    14. 5.13 Accessing Data Using CASE, COALESCE, and ISNULL 00:04:36
    15. 5.14 Using Statements That Load a Table – INSERT VALUES, INSERT SELECT, INSERT EXEC, and SELECT INTO 00:05:30
    16. 5.15 Demo - Using Statements That Load or Create Tables 00:07:22
  9. Lesson 6: Implement Subqueries
    1. Learning Objectives 00:00:33
    2. 6.1 Using Self-Contained and Correlated Subqueries 00:05:02
    3. 6.2 Using Table Expressions – Derived Tables and Common Table Expressions (CTEs) 00:05:00
    4. 6.3 Using the APPLY Operator 00:03:37
    5. 6.4 Demo – Using Subqueries and Table Expressions in Queries 00:03:46
    6. 6.5 Pivoting and Unpivoting Data 00:06:20
    7. 6.6 Demo – Using PIVOT and UNPIVOT Operators in Queries 00:04:33
  10. Lesson 7:Implement Data Types
    1. Learning Objectives 00:00:31
    2. 7.1 Understanding the Uses and Limitations of Each Data Type 00:08:07
    3. 7.2 Using Data Types for Columns and Keys 00:04:51
    4. 7.3 Using Numeric Data Types 00:04:51
    5. 7.4 Using Date and Time Functions 00:10:39
    6. 7.5 Demo - Using Data Types for Columns, Keys, and Dates 00:10:42
    7. 7.6 Using Binary String Data Types 00:05:02
    8. 7.7 Working with Other Data Types such as Uniqueidentifier and XML 00:01:08
    9. 7.8 Demo - Using Binary String and Other Data Types 00:10:06
  11. Lesson 8: Implement Aggregate Queries
    1. Learning Objectives 00:00:30
    2. 8.1 Using a Single Grouping Set 00:03:06
    3. 8.2 Using Group Functions 00:02:35
    4. 8.3 Defining Multiple Grouping Sets 00:10:37
    5. 8.4 Demo - Grouping Data in Queries 00:14:23
    6. 8.5 Using Window Aggregate Functions 00:06:44
    7. 8.6 Applying Ranking and Offset Functions 00:04:18
    8. 8.7 Demo - Using Window Functions in Queries 00:11:48
  12. Lesson 9: Query and Manage XML Data
    1. Learning Objectives 00:00:29
    2. 9.1 Returning Results as XML 00:02:55
    3. 9.2 Demo - Using FOR XML RAW, FOR XML AUTO, and FOR XML PATH 00:11:11
    4. 9.3 Querying XML Data Using XQUERY 00:06:22
    5. 9.4 Demo - Using XQUERY to Extract Data 00:06:55
    6. 9.5 Applying Best Practices to Use the XML Data Type 00:04:50
    7. 9.6 Creating XML Indexes 00:03:49
    8. 9.7 Demo - Using XML Data Type Methods 00:04:06
  13. Module 3: Modify Data
    1. Modify Data 00:00:33
  14. Lesson 10: Modify Data by Using INSERT, UPDATE, and DELETE Statements
    1. Learning Objectives 00:00:24
    2. 10.1 Understanding Methods Used to Insert Data 00:04:21
    3. 10.2 Demo - Using the INSERT SELECT and SELECT INTO Statements 00:03:05
    4. 10.3 Understanding Methods Used to Update Data 00:05:04
    5. 10.4 Demo - Using the UPDATE Statement with Constraints 00:07:31
    6. 10.5 Understanding Methods Used to Delete Data 00:05:07
    7. 10.6 Demo - Using the DELETE and TRUNCATE Statements 00:06:19
  15. Lesson 11: Combine Datasets
    1. Learning Objectives 00:00:23
    2. 11.1 Using the CASE Expression versus ISNULL versus COALESCE 00:11:24
    3. 11.2 Understanding the Difference Between UNION and UNION ALL Set Operators 00:06:22
    4. 11.3 Demo - Using UNION and UNION ALL to Combine Datasets 00:04:42
    5. 11.4 Understanding the MERGE Statement 00:03:46
    6. 11.5 Demo - Using the MERGE Statement to Merge Source Data to a Target 00:05:01
  16. Lesson 12: Create and Alter Stored Procedures
    1. Learning Objectives 00:00:28
    2. 12.1 Creating a Stored Procedure 00:07:04
    3. 12.2 Writing a Stored Procedure to Meet a Given Set of Requirements 00:08:22
    4. 12.3 Demo – Creating and Executing Stored Procedures with Input and Output Parameters 00:03:53
    5. 12.4 Using Branching Logic in a Stored Procedure 00:05:50
    6. 12.5 Demo – Using IF/ELSE, WHILE, WAITFOR, GOTO, and RETURN Statements to Control the Procedure Flow 00:09:26
    7. 12.6 Implementing a Stored Procedure Used for Data Access Layer 00:04:45
  17. Lesson 13: Work with Functions
    1. Learning Objectives 00:00:32
    2. 13.1 Understanding Deterministic and Non-Deterministic Functions 00:05:12
    3. 13.2 Applying Built-In Scalar Functions 00:07:40
    4. 13.3 Creating and Altering User-Defined Functions (UDFs) 00:08:24
    5. 13.4 Demo - Creating and Altering User-Defined Functions 00:06:14
    6. 13.5 Demo - Implementing Scalar and Table-Valued UDFs 00:05:03
  18. Module 4: Troubleshoot and Optimize
    1. Troubleshoot and Optimize 00:00:39
  19. Lesson 14: Optimize Queries
    1. Learning Objectives 00:00:25
    2. 14.1 Understanding Query Optimizer 00:06:02
    3. 14.2 Reading and Analyzing Query Plans 00:08:40
    4. 14.3 Understanding Statistics 00:06:08
    5. 14.4 Using SET Options 00:03:23
    6. 14.5 Demo - Analyzing Queries Using SET Options 00:08:33
    7. 14.6 Using Dynamic Management Objects (DMOs) for Query Tuning 00:03:04
    8. 14.7 Demo - Using Dynamic Management Objects 00:08:34
    9. 14.8 Using Optimizer Hints and Plan Guides 00:06:05
    10. 14.9 Describing Joins and Their Applications 00:09:27
    11. 14.10 Demo - Applying Optimizer Hints 00:05:53
  20. Lesson 15: Manage Transactions
    1. Learning Objectives 00:00:29
    2. 15.1 Applying Transaction Commands and Syntax Including Implicit and Explicit Transactions 00:08:49
    3. 15.2 Using WITH MARK Statement 00:02:33
    4. 15.3 Demo - Controlling Transactions Using BEGIN TRANSACTION, COMMIT TRANSACTION, ROLLBACK TRANSACTION, and @@TRANCOUNT 00:06:09
    5. 15.4 Understanding Locking Protocols Including Shared Locks and Exclusive Locks 00:02:56
    6. 15.5 Understanding the Isolation Levels in SQL Server 2012 to Control Locking and Row Versioning Behavior 00:06:22
    7. 15.6 Demo - Working with Locking Protocols and Transaction Isolation Levels 00:03:21
  21. Lesson 16: Evaluate the Use of Row-based Operations vs. Set-Based Operations
    1. Learning Objectives 00:00:30
    2. 16.1 Implementing Row-Based Cursor Commands - DECLARE, OPEN, FETCH, DECLARE, and DEALLOCATE 00:05:29
    3. 16.2 Demo - Using Cursors to Perform Row Operations 00:03:03
    4. 16.3 Built-In Cursor Functions 00:02:31
    5. 16.4 Impact of Cursors in Scalar User-Defined Functions 00:01:28
    6. 16.5 Implementing Row-Based Operations Without Cursors 00:02:30
    7. 16.6 Demo - Computing an Aggregate Using a Cursor and Compute an Aggregate Using a Set-Based Solution 00:03:45
  22. Lesson 17: Implement Error Handling
    1. Learning Objectives 00:00:28
    2. 17.1 Implementing Try and Catch Blocks to Redirect Errors 00:06:37
    3. 17.2 Demo - Using Try and Catch Blocks 00:02:42
    4. 17.3 Using the Error Object Function to Return Detailed Error Information 00:02:58
    5. 17.4 Implementing THROW 00:02:08
    6. 17.5 Demo - Using THROW to Raise an Exception 00:02:15
    7. 17.6 Implementing XACT_ABORT 00:03:03
    8. 17.7 Demo - Using XACT_ABORT 00:06:53
    9. 17.8 Evaluating Set-Based Solutions versus Row-Based Cursor Solutions 00:03:57
    10. 17.9 Demo - Using a Set-Based Solution 00:04:53
  23. Summary
    1. MCSA Querying Microsoft SQL Server 2012 (Exam 70-461) LiveLessons: Summary 00:03:21