Course Information

Overview

This 2 day course is intended for students who are new to querying data in Microsoft SQL Server 2014 databases, and need a 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.

Objectives

  • Use SQL Server Management Studio for Querying Purposes
  • Understand the Basic Structure of SQL 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

Prerequisites

Students should ideally be familiar with basic programming concepts. They should also understand the fundamental design of relational databases including, but not restricted to, the purpose of primary and foreign keys, entity relationships, and data normalization.

Outline

  • Objects in a SQL Server Database
  • Database Diagrams
  • Components of a SQL Server Database Table
  • ANSI-SQL and Transact-SQL (T-SQL)
  • Categories of SQL Statements
  • T-SQL Scripts
  • Adding Comments to T-SQL Code
  • 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
  • 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
  • Sorting Data Using the ORDER BY Clause
  • Eliminating Duplicate Rows with DISTINCT
  • Introducing Native SQL Server Functions
  • Functions Relating to NULL Values
  • Using the CASE Expression
  • Introduction to Joins
  • Using Inner Joins
  • Using Outer Joins
  • Using Cross Joins
  • Using Aliases for Table Names
  • Joining More than Two Tables
  • 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
  • Combining Result Sets Using the UNION Operator
  • Limiting Result Sets Using the TOP Operator
  • Introduction to Subqueries
  • Using Subqueries as Expressions and Derived Tables
  • Using Correlated Subqueries
  • Introducing Temporary Tables
  • Inserting a Single Row into a Table
  • Inserting Multiple Rows into a Table
  • Differentiating Various INSERT Statements
  • Deleting Rows from a Table
  • Truncating a Table
  • Deleting Rows Based on Data in Other Tables
  • Updating Rows in a Table
  • Updating Rows Based on Data in Other Tables
  • Ranking Data Using Ranking Functions
  • Using ROW_NUMBER
  • Using RANK
  • Using DENSE_RANK
  • Using NTILE
  • 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 Functions
Dates and Prices

There are currently no public dates for this course. This course can be run as a private course either at one of our training centers or at your offices. To get pricing for this use our quote wizard to generate a customised quote or call us on 0118 324 3000 to discuss your requirements.

image
2 Days

Testimonials

  • Noel was an excellent tutor. He did check all of the group was able to keep up and if there were any problems or questions of the attendants, he was always willing to help.

    Marianne Seager-Wincanton
  • This was a really good training, nicely paced, very useful and well presented. Thank you, Stuart!

    Joris Latinne-Oracle