Get in Touch

Course Outline

Selecting Data from the Database

  • Syntax rules
  • Selecting all columns
  • Projection
  • Arithmetic operations in SQL
  • Column aliases
  • Literals
  • Concatenation

Filtering Results

  • WHERE clause
  • Comparison operators
  • LIKE condition
  • BETWEEN...AND condition
  • IS NULL condition
  • IN condition
  • AND, OR, NOT operators
  • Multiple conditions in WHERE clause
  • Operator order
  • DISTINCT clause

Sorting Results

  • ORDER BY clause
  • Sorting by multiple columns or expressions

SQL Functions

  • Single-row vs. multi-row functions
  • Character, numeric, and DateTime functions
  • Explicit and implicit type conversion
  • Conversion functions
  • Nested functions
  • Dual table (Oracle vs. other databases)
  • Getting the current date and time using different functions

Aggregating Data with Aggregate Functions

  • Aggregate functions
  • Handling NULL values in aggregate functions
  • GROUP BY clause
  • Grouping by different columns
  • Filtering aggregated data with the HAVING clause
  • Multi-dimensional grouping using ROLLUP and CUBE
  • Identifying summaries with GROUPING
  • GROUPING SETS operator

Retrieving Data from Multiple Tables

  • Types of joins
  • NATURAL JOIN
  • Table aliases
  • Oracle syntax – join conditions in the WHERE clause
  • SQL99 syntax – INNER JOIN
  • SQL99 syntax – LEFT, RIGHT, and FULL OUTER JOINs
  • Cartesian product in Oracle and SQL99 syntax

Subqueries

  • When and where to use subqueries
  • Single-row vs. multi-row subqueries
  • Single-row subquery operators
  • Using aggregate functions in subqueries
  • Multi-row subquery operators: IN, ALL, ANY

Set Operators

  • UNION
  • UNION ALL
  • INTERSECT
  • MINUS/EXCEPT

Transactions

  • COMMIT, ROLLBACK, and SAVEPOINT statements

Other Schema Objects

  • Sequences
  • Synonyms
  • Views

Hierarchical Queries and Examples

  • Building trees using CONNECT BY PRIOR and START WITH
  • SYS_CONNECT_BY_PATH function

Conditional Expressions

  • CASE expression
  • DECODE expression

Managing Data Across Time Zones

  • Time zones
  • TIMESTAMP data types
  • Differences between DATE and TIMESTAMP
  • Conversion operations

Analytic Functions

  • Overview of use
  • Partitions
  • Windows
  • Rank functions
  • Reporting functions
  • LAG/LEAD functions
  • FIRST/LAST functions
  • Reverse percentile functions
  • Hypothetical rank functions
  • WIDTH_BUCKET function
  • Statistical functions

Requirements

There are no specific requirements to attend this course.

 21 Hours

Testimonials (7)

Related Categories