T-SQL Training: T-SQL for SQL Server for Developers

T-SQL Training: T-SQL for SQL Server for Developers

<p>T-SQL Training: T-SQL for SQL Server for Developers</p><p>Duration: 3 days </p><p>T-SQL Training Overview T-SQL for SQL Server for Developers training teaches developers all the Transact-SQL skills they need to develop queries and views, and manipulate data in a SQL Server database. This course is for those working with Microsoft SQL Server who need to extract and update data using Transact SQL (T-SQL) up to the level of working with joins (inner and outer), grouping and summarizing results, working with subqueries, creating and using views, and performing action queries with INSERT, UPDATE and DELETE. In order to master the syntax of the language, the course is highly practical in nature and the focus throughout is on coding Transact SQL (T-SQL) by hand.</p><p>Suggested Prerequisites No prior SQL training or relational database experience is assumed.</p><p>Hands-on/Lecture Ratio This class is 70% hands-on, 30% lecture. T-SQL Training Objectives  Working with SQL Server Management Studio  Relational database table creation  Writing T-SQL queries  Manipulate database data  Using complex query techniques</p><p>T-SQL Training Outline A Tour of SQL Server  SQL Server Editions, Components, and Tools  Using SQL Server Management Studio (SSMS)  Working with Tables, Queries, and Views  Business Intelligence Services Working with SQL Server Management Studio  Getting Started with Management Studio  Exploring the Object Explorer  Working with the Query Editor  Using SQL Server Books Online Transact-SQL Programming  Overview of Transact-SQL  Using Built-In Functions  Controlling Flow  Ranking Results </p><p>Page 1 of 5 T-SQL Training: T-SQL for SQL Server for Developers</p><p>Relational Databases and SQL: An Overview  SQL: Its Role and Purpose  SQL and Transact SQL (T-SQL) in Context  Relational Database Design Principles  Database Server, Databases, Tables and Schemas  Primary Keys and Foreign Keys Explained  Some Common Character, Numeric and Date Data Types  Client/Server Interaction  SQL: Its Role and Purpose  SQL and Transact SQL (T-SQL) in Context</p><p>T-SQL Statements and Queries: Their Structure  Keywords, Identifiers and Operators  Whitespace and Case: The Rules  Expressions and Conditions Explained  Conventions and Good Practice  Working with Clauses  A Note on Semi-Colons and GO</p><p>Retrieving Data with T-SQL: First Steps  How to Create, Edit and Execute T-SQL Scripts  Ways of Specifying the Database, Schemas and Table  Working with the Default Schema  Outputting Text with PRINT  Using SELECT to Extract Data  Retrieving Entire Tables  Retrieving Specific Columns  Working with the Result Table  Outputting Results to CSV  Using TOP to Limiting the Number of Rows  Using ORDER BY to Sort the Output  Working with Calculations  Using Column Aliases to Rename Columns  Using Numeric and String Operators to Create Derived Output  Ways of Working: Some Tips</p><p>Using WHERE to Filter Results</p><p>Page 2 of 5 T-SQL Training: T-SQL for SQL Server for Developers  Working with Comparison Operators (=, >= etc)  Numeric and String Based Filtering  Filtering Based on Calculations  Eliminating Duplicate Results with DISTINCT  Working with Execution Order  Column Aliases: Where You Can and Cannot Use Them  Extending Filters with AND and OR  Solving AND/OR Difficulties with Brackets  Excluding Results with NOT: Some Tips  Range Filtering using BETWEEN and IN  NULL and its Implications Explained  Catering for NULL  Matching Patterns with LIKE</p><p>Getting Results From Multiple Tables  Qualifying Column Names  Joins Explained  The Different Types of Joins  Creating an Inner Join: WHERE Syntax  Creating an Inner Join: INNER JOIN Syntax  Table Aliases: The Need  Working with Self Joins  Outer Joins: An Example  How to Simplify Joins: An Approach</p><p>Using Standard T-SQL Functions  How to Use Standard T-SQL Functions to Modify Results  How to Find the Right Function  Mathematical, String and Conversion Functions  Functions for Modifying and Calculating Dates  Formatting Numbers to Two Decimal Places  Replacing NULL with a Specific Value  Using Standard Functions in WHERE  Using CASE to Specify Output Conditions  Using Date functions</p><p>Grouping, Summarizing and Ranking Results  The difference Between Tabular and Scalar Results  Using Aggregate Functions (MAX(), SUM(), AVG(), COUNT() etc)  The Way Aggregate Functions Work  Where to Use and Where Not to Use Aggregate Functions  Using GROUP BY to Group Results  The Need for HAVING: Filtering the Result Table Page 3 of 5 T-SQL Training: T-SQL for SQL Server for Developers  Using COMPUTE to Summarize Data  Seeing both Detail and Summary Data with ROLLUP  Ways of Ranking Results</p><p>Working with Subqueries  Subqueries Explained  Where you can Use Subqueries  How to Successfully Construct Subqueries  Subqueries for Filtering  Subqueries to Create Derived Columns</p><p>Working with Views  Views Explained  Advantages of Views  How to use Views to Simplify your Work  Creating Views  Dropping Views</p><p>Inserting, Updating and Deleting Data  Inserting Single Rows  Inserting Multiple Rows  Inserting Rows by Column Position  Inserting Rows by Column Name  Dealing with Auto-Incrementing Values  Dealing with Nulls when Inserting  Inserting Data from one Table into Another  Updating Data  Deleting Data  Importing Data from CSV Files  Truncating Tables  Modifying Data through a View</p><p>Inserting, Updating and Deleting in a Transaction Environment  Transactions Explained  Why Use Transactions?  Protecting Yourself with Transactions  How to Setup a Transaction Environment  Checking Your Work  Undoing your Changes with ROLLBACK  Committing the Transaction</p><p>Query Techniques  Full-Text Search  Advanced T-SQL Techniques </p><p>Page 4 of 5 T-SQL Training: T-SQL for SQL Server for Developers  Executing Dynamic SQL </p><p>Complex Techniques  Complex Data and Structures  Writing More Efficient Queries  Working with Complex Queries  Maintaining Query Files </p><p>Page 5 of 5</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    5 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us