Course : SQL databases and language for non-IT people

SQL databases and language for non-IT people






INTER
IN-HOUSE
CUSTOM

Practical course in person or remote class

Ref. SIF
  3d - 21h00
Price : Contact us






Teaching objectives
At the end of the training, the participant will be able to:
Understand the principle and contents of a relational database
Create queries to extract data based on different criteria
Produce queries with joins in order to get information from multiple tables
Use simple calculations and data aggregation
Combine results from multiple queries

Practical details
Hands-on work
Alternating presentations of example queries, demonstrations and hands-on exercises.
Teaching methods
Many sequential exercises for extracting data from an example database. Education common to all relational databases (Oracle, SQL Server, DB2, PostGreSQL, MySQL, Access, SQL Lite, etc.)

Course schedule

1
Introduction to databases

  • What are a database and a database server?
  • Reading a relational model.
  • Creating a table. Notions of columns and types
  • Primary key and uniqueness.
  • Notion of referential integrity.
  • Tool for querying a database.
Exercise
Investigating the database by searching for tables, columns, and keys.

2
Extracting data from a table

  • What is an extraction query?
  • List the values to be returned.
  • The WHERE clause for filtering data.
  • The absence of a value (NULL marker).
  • Returning unduplicated rows (DISTINCT).
  • Restriction operators (BETWEEN, IN, LIKE, etc.).
Exercise
Querying multiple tables on different criteria.

3
Querying data from multiple tables

  • Concept of joins: Returning information from multiple tables.
  • Inner join and outer join.
  • The “natural” join... and its difficulties.
  • Assembly operators (UNION, INTERSECT...).
  • Introduction to views: principle and benefits
Exercise
Creating queries with joins and assembly operators.

4
Ranking and statistics

  • Finding aggregate values (MIN, MAX, AVG, SUM, etc.).
  • Calculating relative aggregates with GROUP BY.
  • Filtering aggregate values with HAVING.
  • Mixing aggregates and details with OVER.
  • Ranking results with RANK, ROW_NUMBER.
Exercise
Creating queries using simple and aggregate calculations. Subtotals and numbering.

5
Presenting and sorting data

  • Presenting data from columns with aliases
  • Converting from one type to another.
  • Making choices using the CASE operator.
  • Sorting data with ORDER BY.
  • Operations on character strings and dates.
Exercise
Using functions to improve the presentation of the query result.

6
Using subqueries

  • What is a subquery?
  • Different types of results.
  • Subqueries of lists and IN, ANY/SOME and ALL operators.
  • Correlated subqueries.
Exercise
Writing queries that include subqueries of different forms.


Customer reviews
4,6 / 5
Customer reviews are based on end-of-course evaluations. The score is calculated from all evaluations within the past year. Only reviews with a textual comment are displayed.


Dates and locations
Select your location or opt for the remote class then choose your date.
Remote class