Microsoft Transact-SQL Programming
Details
This class is intended for analysts, developers, designers, administrators, and managers new to the SQL programming language. Upon completion, participants will understand SQL functions, join techniques, database objects and constraints, and will be able to write useful stored procedures and views as well as complex queries and updates. Comprehensive hands on exercises are integrated throughout to reinforce learning and develop real competency.
Prerequisites: General computer knowledge.
Outline
- Overview of Relational Database Concepts
- Relational Databases and Relational Database Management Systems
- Data Normalization
- DDL Syntax
- Displaying Table Structures
- Retrieving Column Data From a Table or View
- Selecting Unique Values
- Filtering Rows Using the WHERE Clause
- Sorting Results Using ORDER BY
- Joining Multiple Tables
- Using Column and Table Aliases
- Database Development Methodology Overview
- Building a Logical Data Model
- Identifying Entities and Attributes
- Isolating Keys
- Relationships Between Entities
- Creating Entity-Relationship Diagrams
- Transforming to Physical Design
- Migrating Entities to Tables
- Selecting Primary Keys
- Defining Columns
- Enforcing Relationships with Foreign Keys
- Constructing the Database Using DDL
- Creating Tables, Indexes, Constraints and Views
- Dropping Tables, Indexes, Constraints and Views
- Modifying Tables, Indexes, Constraints and Views
- Using Row Functions
- Character
- Numeric
- Date and Time
- Data Conversion (CAST and CONVERT)
- Using the CASE Function
- Handling Null Values
- Inner Joins
- Outer Joins (Left, Right, Full)
- Performing Self-Joins
- Subqueries
- Simple
- Correlated
- Using the EXISTS Operator
- Tips for Developing Complex SQL Queries
- Using Aggregate Functions
- AVG
- COUNT
- SUM
- MIN
- MAX
- Performing Set Operations
- UNION
- INTERSECT
- EXCEPT/MINUS
- Aggregating Results Using GROUP BY
- Restricting Groups with the HAVING Clause
- Creating Temporary Tables
- Inserting Data into Tables
- Updating Existing Data
- Deleting Records
- Truncating Tables
- Performing Bulk Inserts
- Using the OUTPUT Clause
- Merging Data
- Working with Identity Columns and Sequences
- Definition and Benefits of Use
- CREATE FUNCTION
- Syntax
- RETURN Clause and the RETURNS Statement
- Scalar vs. Table Functions
- Comparison with Stored Procedures
- Returning Scalar Values and Tables
- ALTER and DROP FUNCTION
- Definition and Benefits of Use
- CREATE PROCEDURE
- Syntax
- Defining Input Parameters
- Defining Output Parameters
- Defining Optional Parameters
- ALTER and DROP PROCEDURE
- Implementation Differences
- Definition and Benefits of Use
- Alternatives (e.g., Constraints)
- CREATE TRIGGER
- Syntax
- Trigger Types
- "Inserted" (or "NEW") and "Deleted" (or "OLD") Tables
- Event Handling and Trigger Execution
- ALTER and DROP TRIGGER
- Using Wildcard Characters with Like
- Allowing Users to Build SQL Queries Dynamically
- Pivoting Data
- Summarizing Data with ROLLUP and CUBE
- Using Partitioned Aggregates
- Exploiting the Programming Features of T-SQL
- Conditional Constructs
- Looping Constructs
- Building Multi-Batch Scripts
- Invoking System Functions
- Using Variables in Scripts
- Using Temporary Tables in Scripts
- Handling Errors
- Using TRY...CATCH Blocks
- Using System Variables and Functions
- Effective Use of Data Types in SQL
- String
- Numeric
- Time/Date
- Other
- Substitution of Non-null Values with the COALESCE and ISNULL Functions
- Analyzing Data Points Using Ranking Functions
- Overview of Cursors
- Declaring a Cursor
- Using OPEN CURSOR, CLOSE CURSOR, DEALLOCATE CURSOR Statements
- FETCHing Results
- Testing @@FETCH_STATUS and @@CURSOR_ROWS
- Updating Records with Cursors
- Overview of Table Expressions
- Working with Views
- Using Derived Tables
- Common Table Expressions
- Table-Valued Functions
Software Skills Training, Inc. (SST) is a leading provider of task-oriented training courses for IT professionals. Our task-based training philosophy is focused on saving you time and assuring that you are able to work more productively and with higher quality results after training. Founded in 2000, SST has delivered high-powered training to tens of thousands of IT professionals.
Choose from a variety of delivery options:
- Face-to-face in the classroom in over 100 cities
- Live remote attendance
- On-demand streaming
- Group training at your facility
We guarantee the overall quality of our courses with a 100% money-back guarantee. If any student is not totally satisfied for any reason, they can withdraw before the second day of class. Notify the instructor and return all course materials and receive a 100% refund.
Why Choose SST?- 50% hands on labs
- Small class sizes typically under 14 students
- Expert instructors that average over 10 years of teaching experience
- Students can retake any portion of a class that has been completed, within 12 months at no extra cost
- No registration fees or cancellation fees