JSON_TABLE NOT RETURNING CORRECT DATA WHEN USED IN A SUBQUERY (Doc ID 2274934.1)

Last updated on AUGUST 22, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

Running below case on the latest JSON BUNDLE PATCH 3 on 12.1.0.2 (Patch 24448103 - Database Proactive Patch 12.1.0.2.161018 (Oct2016)) is causing an incorrect result:

The last two queries should return the same result i.e 'X' since in both cases the select is checking for the same rows.

However, the version that uses the subquery does not return any value even though a row should exist for employee_id "0072" and email type "UNIV".

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms