0845 450 6120

SQL Server Database Querying

This course provides an overview of relational database design principals, but it does not cover the teaching of formal database design processes and database/table creation.

It 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.

This course is suited to Database Administrators, Developers, Report Writers and Data Analysts - anyone who needs to extract information from data stored in a relational database.

This course, along with the "Creating Databases in SQL Server" and "Advanced SQL Server Database Querying Courses", helps to prepare delegates for the Microsoft 70-461 exam: Querying Microsoft SQL Server 2012. This exam credits towards MCSA and MCSE certifications. It should be noted, however, that all course attendances should be complemented by reference to the skills measured by the exam, a period of self-study and test exams before sitting the actual exam.

We don't currently have any courses listed for SQL Server Database Querying, would you like to view all courses for Microsoft SQL Server?

Learning Objectives

This course is aimed at those who need to extract information from a relational database system.

Pre-Requisites

Delegates would benefit from a basic understanding of what a relational database is a familiarity with the terms tables, columns, and relationships, these concepts will be overviewed at the start of the course.

Course Content

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 Join

  • 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
One Month
Two Months
Three Months
More than Three Months
PRINCE2 Foundation & Practitioner
MSP Foundation & Practitioner
APMP Certificate
ITIL Foundation
Scrum in One Day
Certified ScrumMaster
ISTQB Software Test Foundation
Microsoft Project
BCS Business Analysis Practice
Other - Please Specify Below

Our Customers Include