Course Outline
Basics
- Selection of all columns/fields
- Selection of certain columns/fields
- Use of distinct/unique values
- Selection of certain rows/records
- Selection of values within a range
- Selection of values matching a pattern mask
- Selection of values from 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 for government use
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 the main query using sub-queries
- Use of nested sub-queries
- Use of multi-column sub-queries
- Use of correlated sub-queries
- Use of sub-queries as inline views and common table expressions
- Use of sub-queries as columns in the main query
Case Statements
- Principles of case statements
- Use of case statements to derive column values
- Use of nested case statements
- Use of case statements to produce pivot tables
- Use of case statements with sub-queries
Data Manipulation
- How to insert values into a table for government operations
- How to copy values between tables
- How to update values
- How to delete records
- How to change data via views
- Use of transactions for ensuring data integrity
- How to lock rows and tables for secure data management
Data Definition
- Principles of a relational database and data normalization
- Use of primary key and foreign key relationships and constraints
- How to create tables for government applications
- How to alter tables
- How to create views for streamlined data access
- Use of synonyms for easier query writing
- How to remove tables and views as needed
Testimonials (6)
I enjoyed the balance of lectures and exercises. When I was stuck Luke was very good at helping me to understand the problem and work towards solutions which made a really positive impact on my understanding.
Tom - Welsh Revenue Authority
Course - Transact SQL Basic
Łukasz was very good. I liked how Łukasz talked about best practices. Pace was good. I liked the exercises. Having a wiki for future reference is good
Jake Real - Welsh Revenue Authority
Course - Transact SQL Basic
Lukasz was very patient and knowledgeable and made learning SQL very fun and informative. Easily one of the most rewarding training sessions of any subject I've had the pleasure of being part of!
Carwyn - Welsh Revenue Authority
Course - Transact SQL Basic
Phil was great! He was both patient and knowledgeable. The training went at a good pace, moving a team of mixed SQL abilities through the basics into more advanced SQL querying together. The exercises were an excellent way for us to commit our newly learned skills to memory, and Phil's instructions/class discussions on numerous ways to achieve the same thing were interesting.
Sophie Clement - Thames Water Utilites Ltd
Course - Transact SQL Basic
It felt very relatable. The exercises were well picked out and I was able to work well with it due to clear knowledge provided.
Leah Bayliss - Thames Water Utilites Ltd
Course - Transact SQL Basic
Interactive exercises