Get in Touch

Course Outline

Retrieving data from the database

  • Syntax guidelines
  • Selecting all columns
  • Projection techniques
  • Arithmetic operations in SQL
  • Column aliases
  • Literal values
  • String concatenation

Filtering result sets

  • The WHERE clause
  • Comparison operators
  • The LIKE condition
  • The BETWEEN...AND condition
  • The IS NULL condition
  • The IN condition
  • Logical operators: AND, OR, NOT
  • Implementing multiple conditions in the WHERE clause
  • Operator precedence
  • The DISTINCT clause

Sorting result sets

  • The ORDER BY clause
  • Sorting by multiple columns or expressions

SQL Functions

  • Differences between single-row and multi-row functions
  • Character, numeric, and DateTime functions
  • Explicit and implicit data conversion
  • Data conversion functions
  • Nested functions
  • The Dual table (Oracle vs. other databases)
  • Retrieving the current date and time using various functions

Aggregating data with aggregate functions

  • Overview of aggregate functions
  • Handling NULL values in aggregate functions
  • The GROUP BY clause
  • Grouping by different columns
  • Filtering aggregated results using the HAVING clause
  • Multi-dimensional data grouping using ROLLUP and CUBE operators
  • Identifying summary rows with GROUPING
  • The GROUPING SETS operator

Retrieving data from multiple tables

  • Various 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 products in Oracle and SQL99 syntax

Subqueries

  • When and where to use subqueries
  • Single-row and multi-row subqueries
  • Operators for single-row subqueries
  • Using aggregate functions within subqueries
  • Operators for multi-row subqueries: 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

  • Constructing trees using CONNECT BY PRIOR and START WITH clauses
  • The SYS_CONNECT_BY_PATH function

Conditional expressions

  • CASE expression
  • DECODE expression

Managing data across time zones

  • Understanding time zones
  • TIMESTAMP data types
  • Differences between DATE and TIMESTAMP
  • Conversion operations

Analytic functions

  • Overview and usage
  • Partitions
  • Windows
  • Rank functions
  • Reporting functions
  • LAG/LEAD functions
  • FIRST/LAST functions
  • Inverse percentile functions
  • Hypothetical rank functions
  • WIDTH_BUCKET functions
  • Statistical functions

Requirements

There are no specific prerequisites for attending this course.

 21 Hours

Testimonials (7)

Related Categories