Code24Lab
Databases & SQL Beginner

Oracle SQL Foundations: Queries, Functions & Single-Row Logic

Work through real Oracle SQL on a fictional HR table: SELECT and DUAL, NULL handling with NVL, NVL2 and COALESCE, text, number and date functions, TO_CHAR and TO_DATE, CASE and DECODE, ROWNUM and FETCH FIRST and sequences, with every answer checked as you go.

23 lessons 23 labs Certificate

  • One-time payment
  • Instant access right after payment
  • Secure checkout with Stripe

About this course

Oracle SQL Foundations teaches you to read and predict real Oracle queries. You work with the fictional HR table of a logistics company and in every lab you work out exactly what a query returns: calculated columns and DUAL, how NULL behaves in filters, sorting and arithmetic, and how NVL, NVL2, COALESCE and NULLIF fix it. You use character functions like SUBSTR, INSTR and LPAD, round and truncate numbers, calculate with dates, format results with TO_CHAR, convert text with TO_DATE, write CASE and DECODE logic, build top-N queries with FETCH FIRST, avoid the ROWNUM traps and trace a sequence. A final report project ties it all together. Every answer is checked instantly, and the first lesson is free.

Lessons

  1. SELECT, Arithmetic and Column AliasesLabFree
  2. DUAL, Bind Variables and Operator PrecedenceLab Locked
  3. Column Aliases, Quotes and DISTINCTLab Locked
  4. WHERE: Comparisons, BETWEEN, IN and LIKELab Locked
  5. ORDER BY and Where the NULLs GoLab Locked
  6. NULL: Unknown Values in Filters and ArithmeticLab Locked
  7. NVL: Replacing NULL Before It Breaks Your TotalsLab Locked
  8. NVL2: Different Results for NULL and Not NULLLab Locked
  9. COALESCE and NULLIFLab Locked
  10. Concatenation with || and CONCATLab Locked
  11. Character Functions: SUBSTR, INSTR, LENGTH and CaseLab Locked
  12. LPAD, RPAD, TRIM and REPLACELab Locked
  13. Number Functions: ROUND, TRUNC, CEIL, FLOOR, MODLab Locked
  14. SYSDATE and Date ArithmeticLab Locked
  15. MONTHS_BETWEEN, ADD_MONTHS, LAST_DAY and NEXT_DAYLab Locked
  16. TRUNC, ROUND and EXTRACT on DatesLab Locked
  17. TO_CHAR with Dates: Format ModelsLab Locked
  18. TO_CHAR with Numbers: Formats, FM and ####Lab Locked
  19. TO_DATE, Date Literals and Implicit ConversionLab Locked
  20. CASE and DECODE: If-Then Logic in a QueryLab Locked
  21. Top-N Queries: FETCH FIRST, OFFSET and ROWNUMLab Locked
  22. Sequences: NEXTVAL, CURRVAL and GapsLab Locked
  23. Final Project: An HR Report QueryLab Locked