有关Oracle 12c上缺少数据的问题.
我看了一下代码,发现了一个适用于mysql,mssql,oracle 11g的查询,但在oracle 12c中有不同的行为.
我已经概括了表结构和查询,并重现了这个问题.
create table thing (thing_id number, display_name varchar2(500));
create table thing_related (related_id number, thing_id number, thing_type varchar2(500));
create table type_a_status (related_id number, status varchar2(500));
create table type_b_status (related_id number, status varchar2(500));
insert into thing values (1, 'first');
insert into thing values (2, 'second');
insert into thing values (3, 'third');
insert into thing values (4, 'fourth');
insert into thing values (5, 'fifth');
insert into thing_related values (101, 1, 'TypeA');
insert into thing_related values (102, 2, 'TypeB'); …Run Code Online (Sandbox Code Playgroud)