Course Code: transsqlbas
Duration: 14 hours
Overview:

Delegates will gain an understanding of the basic principles of Structured Query Language as well as being able to do each of the following:

  • Construct queries to extract and filter data from an SQL Server database
  • Create summarised results
  • Change, derive and format data to suit the required output
  • Change data and maintain database components and definitions

This course is for anybody who needs information from a Microsoft SQL Server database. It is suitable for either system developers or people from other areas who need to use SQL to extract and analyse data.

Course Outline:

Basics

  • Selection of all columns/fields
  • Selection of certain columns/fields
  • Use of distinct/unique
  • Selection of certain rows/records
  • Selection of values in a range
  • Selection of values matching a pattern mask
  • Selection of values within a list
  • Treatment of null values
  • How to sort and order data
  • Selection of calculated and derived values
  • How to control column headings in query results
  • How to send query results to external files

Joining Tables

  • Principles of joining tables:
    • Use of cartesian join
    • Use of inner join
    • Use of non-equi join
    • Use of outer join

Joining Queries

  • Union operator
  • Intersect operator
  • Except operator

Simple Functions

  • Conversion functions
  • Date functions
  • Number functions
  • Text functions
  • Group/summary/aggregate functions

Sub-Queries

  • Principles of sub-queries
  • How to filter rows from main query
  • Use of nested sub-query
  • Use of multi-column sub-query
  • Use of correlated sub-query
  • Use of sub-query as an inline view and common table expression
  • Use of sub-query as a column in main query

Case Statements

  • Principles of case statements
  • Use of case statement to derive column values
  • Use of nested case statements
  • Use of case statements to produce pivot tables
  • Use of case statement with sub-queries

Data Manipulation

  • How to insert values into a table
  • How to copy values between tables
  • How to update values
  • How to delete records
  • How to change data via views
  • Use of transactions
  • How to lock rows and tables

Data Definition

  • Principles of a relational database and data normalisation
  • Use of primary key and foreign key relationships and constraints
  • How to create tables
  • How to alter tables
  • How to create views
  • Use of synonyms
  • How to remove tables and views
Sites Published:

United Arab Emirates - Transact SQL Basic

Qatar - Transact SQL Basic

Egypt - Transact SQL Basic

Saudi Arabia - Transact SQL Basic

South Africa - Transact SQL Basic

Brasil - Transact SQL Básico

Canada - Transact SQL Basic

中国 - Transact SQL Basic

香港 - Transact SQL Basic

澳門 - Transact SQL Basic

台灣 - Transact SQL Basic

USA - Transact SQL Basic

Österreich - Transact SQL Grundlagen

Schweiz - Transact SQL Grundlagen

Deutschland - Transact SQL Grundlagen

Czech Republic - Transact SQL Basic

Denmark - Transact SQL Basic

Estonia - Transact SQL Basic

Finland - Transact SQL Basic

Greece - Transact SQL Basic

Magyarország - Transact SQL Basic

Ireland - Transact SQL Basic

Luxembourg - Transact SQL Basic

Latvia - Transact SQL Basic

España - Transact SQL Básico

Italia - Transact SQL Basic

Lithuania - Transact SQL Basic

Nederland - Transact SQL Basic

Norway - Transact SQL Basic

Portugal - Transact SQL Básico

România - Transact SQL Basic

Sverige - Transact SQL Basic

Türkiye - Transact SQL Basic

Malta - Transact SQL Basic

Belgique - Transact SQL Basic

France - Transact SQL Basic

日本 - Transact SQL Basic

Australia - Transact SQL Basic

Malaysia - Transact SQL Basic

New Zealand - Transact SQL Basic

Philippines - Transact SQL Basic

Singapore - Transact SQL Basic

Thailand - Transact SQL Basic

Vietnam - Transact SQL Basic

India - Transact SQL Basic

Argentina - Transact SQL Básico

Chile - Transact SQL Básico

Costa Rica - Transact SQL Básico

Ecuador - Transact SQL Básico

Guatemala - Transact SQL Básico

Colombia - Transact SQL Básico

México - Transact SQL Básico

Panama - Transact SQL Básico

Peru - Transact SQL Básico

Uruguay - Transact SQL Básico

Venezuela - Transact SQL Básico

Polska - Transact SQL Basic

United Kingdom - Transact SQL Basic

South Korea - Transact SQL Basic

Pakistan - Transact SQL Basic

Sri Lanka - Transact SQL Basic

Bulgaria - Transact SQL Basic

Bolivia - Transact SQL Básico

Indonesia - Transact SQL Basic

Kazakhstan - Transact SQL Basic

Moldova - Transact SQL Basic

Morocco - Transact SQL Basic

Tunisia - Transact SQL Basic

Kuwait - Transact SQL Basic

Oman - Transact SQL Basic

Slovakia - Transact SQL Basic

Kenya - Transact SQL Basic

Nigeria - Transact SQL Basic

Botswana - Transact SQL Basic

Slovenia - Transact SQL Basic

Croatia - Transact SQL Basic

Serbia - Transact SQL Basic

Bhutan - Transact SQL Basic

Nepal - Transact SQL Basic

Uzbekistan - Transact SQL Basic