Microsoft SQL Server Introduction To Querying

DURATION

2 Days

LOCATION

Exeter – Devon, Central London, Bristol or onsite at your premises.

OVERVIEW

This 2 day course is intended for students who are completely new to querying with Microsoft SQL Server products and who need a gentle but concise introduction to the subject. It would also prove beneficial to delegates wanting to refresh their existing querying skills. You will find that this is a comprehensive course for this level, with plenty of illustrated examples and augmented with practical hands-on exercises.

PRE-REQUISTES

Students should ideally be familiar with basic programming concepts, and understand the fundamental design of relational databases and data normalization.

COURSE OBJECTIVES

Upon successful completion of this course, students will be able to:

  • Use SQL Server Management Studio for Querying Purposes
  • Understand the Basic Structure of SQL Server Databases
  • Understand the Components of Transact-SQL (T-SQL)Retrieve Data from Tables Using the SELECT Statement
  • Filter Data Using the WHERE Clause
  • Sort Data Using the ORDER BY Clause
  • Query Data from Multiple Tables by Using Joins
  • Summarize and Group Data Using Aggregate Functions
  • Combine and Limit Result Sets
  • Work with Simple Nested Subqueries
  • Work with Correlated Subqueries
  • Add Records to a Table Using the INSERT Statement
  • Remove Records from a Table Using the DELETE Statement
  • Modify Existing Records Using the UPDATE Statement

COURSE OUTLINE

1. Introduction to SQL Server Databases

  • Objects in a SQL Server Database
  • Database Diagrams
  • Components of a SQL Server Database Table

2. Introduction to SQL and Transact-SQL

  • ANSI-SQL and Transact-SQL (T-SQL)Categories of SQL Statements
  • T-SQL Scripts
  • Adding Comments to T-SQL Code

3. Using the SELECT Statement to Retrieve Data

  • Examine the Basic Syntax of the SELECT Statement
  • Using String Literals and Expressions
  • Retrieving Columns of Data from a Table
  • Using Aliases for Column Names

4. Retrieving Specific Rows of Data Using the WHERE Clause

  • How to Use the WHERE Clause
  • Overview of Operators
  • Filter Data by Using Comparison Operators
  • Filter Data by Using String Comparisons
  • Filter Data by Using Logical Operators
  • Filter Data Using a Range of Values
  • Filter Data Using a List of Values
  • Working with NULL Values
  • Introducing Native SQL Server Functions
  • Functions Relating to NULL Values

5. Formatting and Sorting Result Sets

  • Sorting Data Using the ORDER BY Clause
  • Eliminating Duplicate Rows with DISTINCT
  • Using the CASE Expression

6. Querying Data from Multiple Tables by Using Joins

  • Introduction to Joins
  • Using Inner Joins
  • Using Outer Joins
  • Using Cross Joins
  • Using Aliases for Table Names
  • Joining More than Two Tables
  • Joining a Table to Itself (Self Join)

7. Summarizing Data Using Aggregate Functions

  • Using Aggregate Functions Native to SQL Server
  • Using Aggregate Functions with NULL Values
  • Grouping Summarized Data with GROUP BY
  • Filtering Grouped Data Using the HAVING Clause

8. Combining and Limiting Result Sets

  • Combining Result Sets Using the UNION Operator
  • Limiting Result Sets Using the TOP Operator

9. Working with Subqueries

  • Introduction to Subqueries
  • Using Subqueries as Expressions and Derived Tables
  • Scalar versus Tabular Subqueries
  • Using Correlated Subqueries
  • Using EXISTS with Correlated Subqueries

10. Inserting Data into Tables

  • Inserting a Single Row into a Table
  • Inserting Multiple Rows into a Table
  • Differentiating Various INSERT Statements

11. Deleting Data from Tables

  • Deleting Rows from a Table
  • Truncating a Table
  • Deleting Rows Based on Data in Other Tables

12. Updating Data in Tables

  • Updating Rows in a Table
  • Updating Rows Based on Data in Other Tables

Appendix 1. Ranking Grouped Data

  • Ranking Data Using Ranking Functions
  • Using ROW_NUMBER
  • Using RANKUsing DENSE_RANK
  • Using NTILE
  • Summary of Ranking Functions Based on Their Functionality

Appendix 2. Working with SQL Server Data Types

  • Native SQL Server Data Types
  • Data Type Precedence
  • Implicit Data Type Conversions
  • Explicit Data Type Conversion Functions
  • Querying and Modifying Date and Time Data
  • Native SQL Server Date and Time

TO BOOK

For more information or to book onto our Microsoft SQL Server Introduction To Querying training course please contact us on 01392 824 022 or email training@amesolutions.co.uk.

If there is a Microsoft SQL Server course that is not listed on our site, that you are interested in attending then please let us know and we can arrange one to one training onsite with our Trainer.

Still not convinced?
We can help you!

Fill out the form below and one of our IT specialists will contact you.



Testimonials

 

 

 

PhoneEmailTwitterAME Support ToolApple Mac Support tool