I have a table with data where in a situation one rows' id becomes another rows reference id. The table is as below.
I tried to retrieve data as below,
select * from table1 t where t.id = t.reference_id
but it returns empty table.
I have a table with data where in a situation one rows' id becomes another rows reference id. The table is as below.
I tried to retrieve data as below,
select * from table1 t where t.id = t.reference_id
but it returns empty table.