Introduction
Dive deep into SQL Server
()
What you should know
()
Getting the most from the exercise files
()
1.1 Create Views of the Data
Program databases with SQL Server
()
Save a query as a view object
()
Explore existing views
()
SCHEMABINDING a view
()
Leverage view objects with indexes
()
1.2 Create User-Defined Functions
Deterministic vs. nondeterministic functions
()
Scalar-valued user-defined functions
()
IF ELSE and CASE statements
()
Table-valued user-defined functions
()
Challenge: Create a function
()
Solution: Create a function
()
1.3 Work with Stored Procedures
Write and execute a stored procedure
()
Stored procedure input parameters
()
Stored procedure output parameters
()
Create a database trigger
()
Challenge: Use function in a stored procedure
()
Solution: Use function in a stored procedure
()
1.4 Create Transactions
Ensure data consistency with transactions
()
Create a transaction
()
Transaction savepoints
()
Automatically roll back transactions
()
Challenge: Create a transaction
()
Solution: Create a transaction
()
1.5 Implement Error Handling
What is error handling?
()
Capture errors with TRY and CATCH
()
Generate errors with THROW
()
Manage transaction control
()
Challenge: Add error handling to a stored procedure
()
Solution: Add error handling to a stored procedure
()
1.6 Data Type Conversions and NULLs
Implicit data type conversions
()
Understand NULL values
()
The ISNULL function
()
Merge rows with COALESCE
()
2.1 Trigger Fundamentals
Automate SQL Server with triggers
()
What are SQL Server triggers?
()
Two triggers types: INSTEAD OF and AFTER
()
Create a trigger to print a message
()
Timestamp a table modification
()
Firing INSTEAD OF triggers
()
Challenge: Create a trigger
()
Solution: Create a trigger
()
2.2 Work with Modified Data
Read values modified by a trigger
()
Using the inserted logical table
()
Using the deleted logical table
()
2.3 Database- and Server-Level Triggers
Triggers on CREATE, ALTER, or DROP
()
Rollback database modifications
()
Reading the EVENTDATA() XML
()
Writing data from the EVENTDATA() function
()
Challenge: Create a DDL trigger
()
Solution: Create a DDL trigger
()
2.4 Trigger Management
View all triggers in a database
()
Enable and disable triggers
()
Disable nested triggers
()
Recursive triggers
()
Reorder trigger execution
()
2.5 Project: Managing Inventory
Creating triggers to maintain inventory
()
Counting shipments received
()
Subtract items sold
()
Reorder items when low
()
3.1 SQL Server Ledger Core Concepts
Protect your data with SQL Server Ledger
()
What is SQL Server Ledger?
()
Ledger tables and ledger databases
()
Capture the database state in the digest
()
3.2 Add Ledger Features to Existing Databases
Create updatable ledger tables
()
Create append-only ledger tables
()
Move existing data into a ledger table
()
3.3 Create a New Ledger Database
Use T-SQL to create a ledger database
()
Enable ledger in Azure SQL Database
()
3.4 Auditing a Database Protected by Ledger
Manage the ledger digest
()
Verify ledger integrity
()
Detect unauthorized data modifications
()
Recover a compromised database
()
4.1 Get Started with Machine Learning Services
Analyze SQL Server data with Python
()
What is machine learning services?
()
Install ML services for Python
()
Enable script execution in SQL Server
()
Use variables in Python
()
Create a Python while loop
()
4.2 Write Python Scripts for SQL Server
Import a dataset from SQL Server
()
Manipulate a DataFrame
()
Output a result set to SQL Server
()
Python syntax pitfalls
()
Challenge: Import a DataFrame
()
Solution: Import a DataFrame
()
4.3 Python Package Modules and Libraries
The Anaconda open-source packages
()
Functions in the revoscalepy package
()
Model, train, and score with microsoftml
()
Produce graphics with Matplotlib
()
Get descriptive statistics with pandas
()
Challenge: Sample a DataFrame
()
Solution: Sample a DataFrame
()
4.4 Processing Tabular Data
Return values with indexes and series
()
Convert a series to a DataFrame
()
Add multiple series to a DataFrame
()
Include the index in a DataFrame
()
Slice a DataFrame to series
()
Challenge: Import and process data
()
Solution: Import and process data
()
4.5 Create a SQL Stored Procedure
Create a Python stored procedure
()
Parameterize the procedure
()
Challenge: Write a stored procedure
()
Solution: Write a stored procedure
()
4.6 Create an External Data Science Client
Install MLS on a standalone server
()
Add development tools to the client
()
Work with Jupyter Notebooks
()
5.1 Final Project
GameScore database final project setup
()
Create a trigger to add points to player records
()
Calculate global score with custom function
()
Write a stored procedure: Part 1
()
Write a stored procedure: Part 2
()
Add error handling and test the system: Part 1
()
Add error handling and test the system: Part 2
()