SQL Server Database Querying Course


Course Facts

  • 3 day course
  • Our Trainers are Authorised Professionals
  • Live Online or Classroom-based
  • Certificate of completion
  • Maximum class size of 6 for scheduled courses
  • Unlimited support after your course
  • Courses at all levels: Introduction, Intermediate, Advanced and Masterclasses

Course Outline

  • Relational Database Overview
  • The SELECT statement
  • Comparison Conditions
  • Multiple Conditions
  • The Top Option
FULL OUTLINE

Private One-to-One Training

One-to-one tuition tailored to your exact requirements. Your choice of duration, dates and content.

Enquire Now

Team Training for Companies

Group bookings provide you with the most cost-effective way to train your team.

Enquire Now

Team Training and Bespoke Sessions

Booking a private training session allows you to focus on your exact needs on dates that work best for you or your team.

  • Sessions can be run online or in person, on your site or at our London training centre.
  • We manage training for many of the UK’s largest companies, taking care of all the admin, working with you to ensure the perfect course.
  • Our expert trainers will first understand your requirements and then tailor each session to your exact specification.
  • We offer a free consultation service to work out every detail of your course.

Prices for bespoke sessions with our expert trainers start at £525 + VAT.

Overview

This course is aimed at those who need to extract information from a relational database system. Although it provides an overview of relational database design principals it does not cover the teaching of formal database design processes and database/table creation. The course assumes no previous knowledge of SQL and SELECT statements, and takes delegates from simple queries, through to complex queries involving multiple tables, introducing the vast collection of built-in functions along the way. Covers SQL Server 2005, SQL Server 2008, SQL Server 2012 and SQL Server 2014
Read More...

Course Outline

Relational Database Overview

  • Basic Relational Database Terminology
  • Relational Database
  • Tables and Columns
  • Rows and Records
  • Connecting Tables
  • Primary Keys
  • Foreign Keys
  • Relationship Types

The SELECT statement

  • SELECT list
  • Columns
  • ALL or DISTINCT
  • String Expressions
  • Arithmetic Expressions
  • Column Aliases

Comparison Conditions

  • Relational Operators
  • BETWEEN AND
  • IS NULL Example
  • IN Example
  • LIKE Examples
  • Working With Dates
  • NOT

Multiple Conditions

  • Mixing AND with OR

The Top Option

  • WITH TIES
  • TOP n PERCENT

UNION

  • UNION ALL
  • INTERSECT
  • EXCEPT

Functions

  • Functions in SELECT Lists
  • Functions in WHERE Clauses
  • Functions in ORDER BY Clauses

Aggregate Functions

  • COUNT
  • SUM
  • MAX
  • MIN
  • AVG
  • NULL Values and Aggregates
  • Aggregate Expressions

Mathematical Functions

  • SQUARE
  • POWER
  • SQRT
  • RADIANS, SIN, COS, TAN
  • ABS
  • ROUND
  • CEILING & FLOOR

Conversion Functions

  • CAST and CONVERT
  • Converting Dates To Strings
  • Converting Money Values To Strings
  • ISNULL Function

String Functions

  • UPPER & LOWER
  • STR
  • LEFT & RIGHT
  • CHARINDEX
  • SUBSTRING
  • REVERSE, REPLACE and SPACE
  • RTRIM & LTRIM
  • REPLICATE
  • Using REPLICATE To Pad Strings
  • ASCII & CHAR

Date Functions

  • GETDATE
  • YEAR, MONTH & DAY
  • DATEPART & DATENAME
  • Date Arithmetic
  • DATEADD & DATEDIFF

Substitution Functions

  • COALESCE
  • NULLIF

Cross Joins

Inner Joins

  • Legacy Style Joins
  • ANSI Style Joins
  • Simple Joins
  • Two Tables
  • Three Tables
  • Four Tables
  • INNER JOIN Theory

Outer Joins

  • LEFT JOIN
  • RIGHT JOIN
  • FULL OUTER Join

Table Aliases

Self Join

Advanced Joins

  • Multiple INNER JOINS
  • Multiple OUTER Joins

Working with Aggregate Data

  • The GROUP BY Clause
  • Identifying The Group
  • Including Columns In The SELECT List
  • The HAVING Clause
  • When is a HAVING a WHERE?

Sub Queries

  • Simple Sub Queries
  • Using Aggregate Functions in Sub queries
  • Sub Queries Returning Multiple Records
  • Correlated Sub-Queries
  • Derived Table Sub-Queries

Our Clients

Our Recent Success Stories

InDesign

Sumble's Story

Graphic Designer at Houses of Parliament

InDesign

Cassie's Story

Designer at Dixon Interiors

InDesign

Amy's Story

Graphic Designer at Bedfont Scientific

30 years working with Microsoft
  600+ Reviews

Latest Help Station Articles