Oracle SQL and JSON

Video description

Introduced as part of Oracle 12, Oracle JSON SQL makes it possible to convert the JSON data world of keys and values into the relational data world of columns and rows. At its core, this course teaches you how to use Oracle JSON SQL.

You'll learn the key JSON SQL functions that tell you: If the JSON data is valid, if a particular element and/or value exists in the JSON data, how to extract a specific scalar value from JSON data, and how to translate JSON keys and values into relational rows and columns. But this is more than a how-to-use JSON SQL course, it's a refresher course for those who need a solid understanding of the distinctions between the relational data world and the JSON data world, and how SQL can act as a bridge between the two.

  • Explore the SQL methods that work for relational databases and JSON databases
  • Learn about dot notation and how it's used to navigate through JSON elements
  • Master the key JSON SQL functions: IS_JSON, JSON_EXISTS, JSON_VALUE, JSON_QUERY, and JSON_TABLE
  • See how JSON_Table translates JSON keys and elements into relational rows and columns
  • Learn about JSON indexes in comparison to relational indexes
  • Understand how Oracle handles bad JSON data with the ERROR clause
  • Watch how the Oracle optimizer translates JSON SQL into an effective query plan
Darryl Hurley is a senior level database engineer with Change Healthcare who specializes in Oracle database administration and PL/SQL programming. He has used SQL with Oracle since Oracle version 5, and speaks at Oracle User Group conferences. Darryl blogs at implestrat.com, and is the author of the O'Reilly title "Learning Oracle PL/SQL".

Table of contents

  1. Introduction
    1. Welcome To The Course 00:04:08
    2. About The Author 00:01:06
  2. JSON And Relational Data And SQL
    1. Introducing Relational Data 00:02:35
    2. Introducing JSON Data 00:03:04
    3. Course Example Data 00:02:23
    4. Introducing Relational SQL 00:04:28
    5. Introducing JSON SQL 00:03:25
  3. JSON Dot Notation
    1. Introduction To Dot Notation 00:03:05
    2. Query With Dot Notation 00:06:33
    3. Explain Plan For Dot Notation Queries 00:03:01
    4. Comparison To Relational Queries 00:02:54
  4. JSON Conditions
    1. Strict JSON 00:02:52
    2. Unique JSON 00:02:26
    3. Is_JSON Constraint 00:05:42
    4. Comparison To Relational Data 00:02:27
  5. JSON_Exists Function
    1. Introduction To JSON_Exists 00:02:04
    2. SQL Where Clause 00:01:10
    3. Error Clauses 00:02:22
    4. Explain Plan 00:01:09
    5. Comparison To Relational 00:01:42
    6. JSON_Exists Values 00:01:47
    7. JSON_Exists Passing Clause 00:01:54
  6. JSON_Value Function
    1. Introduction To JSON_Value 00:02:01
    2. Error Clauses 00:02:27
    3. Returning Clause 00:02:11
    4. On Empty Clause 00:02:26
    5. Explain Plan 00:01:01
    6. Comparison To Relational 00:02:02
  7. JSON SQL Deep Dive
    1. Deep Dive Introduction 00:02:06
    2. Columns Clause 00:03:04
    3. Return Value 00:02:36
    4. Return JSON 00:02:50
    5. Error Clause 00:05:41
    6. Columns In Where Clause 00:03:04
    7. Wrappers 00:03:32
    8. Nested Rows 00:03:17
    9. Array Values 00:03:16
    10. Explain Plan 00:04:37
  8. JSON_Query Function
    1. Introducing JSON_Query 00:02:49
    2. Returning Clause 00:02:02
    3. Wrappers 00:03:22
    4. Error Clauses 00:01:48
    5. Explain Plan 00:01:33
    6. Comparison To Relational 00:02:21
  9. JSON_Table Function
    1. Introduction To JSON_Table 00:03:41
    2. Columns Clause 00:04:16
    3. Error Clause 00:03:32
    4. JSON Format 00:01:22
    5. Wrappers 00:01:40
    6. Nested Values 00:03:04
    7. Mix And Match Data 00:01:53
    8. Explain Plan 00:03:50
    9. Comparison To Relational 00:01:54
  10. JSON Indexes
    1. Introduction To Indexes 00:02:11
    2. Relational Indexes 00:01:47
    3. JSON Indexes 00:06:00
    4. Explain Plan 00:04:09
  11. Errors Clause
    1. Introduction To Errors Clause 00:02:27
    2. Available Error Clauses 00:02:36
    3. Interaction With SQL Errors 00:02:08
    4. Advice For Error Clauses 00:02:57
  12. Combining JSON And Relational Data
    1. Queries With Both JSON And Relational Data 00:04:48
    2. Oracle Views 00:04:21
  13. Conclusion
    1. Wrap Up And Thank You 00:00:46

Product information

  • Title: Oracle SQL and JSON
  • Author(s): Darryl Hurley
  • Release date: March 2017
  • Publisher(s): Infinite Skills
  • ISBN: 9781491979044