SQL Basics
Dates & Duration
See available dates for this course!
If there is no date and time available for a certain training you are interested in, please contact us.
The training takes 4 days.
Audience
This training has been designed for people who want to get familiar with SQL. You will learn how SQL works and how to write proper SQL statements using practical examples that will be useful for your daily work.
Agenda
Day 1
- History of SQL and PostgreSQL
- Connecting to the server with ”psql, pgAdmin and other clients
- How to use psql
- SQL syntax elements: keywords, identifiers, constants
Data types
- numbers
- strings
- date/time
- binary data
The NULL value
Basic CREATE TABLE
- NOT NULL
- DEFAULT
Schemas
Day 2
Basic INSERT
Basic DELETE
Temporary tables
Constraints:
- CHECK
- PRIMARY KEY
- UNIQUE
- FOREIGN KEY constraints
- Cascading delete
ALTER TABLE
Sequences, serial, identity columns
Day 3
Basic SELECT: the SELECT list
- Aliases
- Aggregates, FILTER
- DISTINCT
- CASE
- COALESCE
SELECT: the FROM clause
- Table functions
- JOIN
- CROSS JOIN
- INNER JOIN
- OUTER JOIN
SELECT: the WHERE clause
- BETWEEN
- IN (with lists and subqueries)
- EXISTS / NOT EXISTS
SELECT: the GROUP BY clause, HAVING
SELECT: the ORDER BY clause
SELECT: LIMIT and OFFSET
UNION, EXCEPT, INTERSECT
UPDATE, UPDATE … FROM
DELETE … USING
INSERT … SELECT
INSERT … ON CONFLICT
Views
Day 4
COPY
Database Design und Normalization
Transactions
- Deferred Constraints
SQL Injection and Security
Advanced SELECT
- LATERAL Joins
- Grouping Sets
- Window Functions
- Common Table Expressions (CTE)
Andra intressanta kurser
Vi erbjuder följande tjänster
Optimering och säkerhet för PostgreSQL
Fungerar inte din databas smidigt eller kämpar du med säkerhetsproblem? Våra experter kommer att analysera problem och optimeringspotential inom ramen för en hälsokontroll eller säkerhetsrevision.
Infrastruktur för PostgreSQL
Installation av PostgreSQL, automatisering med Kubernetes och databasarkitektur: Vi hittar den optimala installationen och ser till att din PostgreSQL-infrastruktur uppfyller dina behov och förväntningar.
Installation av PostgreSQL
Kom igång med PostgreSQL genom att använda vår installations- och installationstjänst. Vi fokuserar helt på dina personliga behov och din infrastruktur. Förutom själva konfigurationen drar du också nytta av kunskapen hos våra experter inom databasdesign.