Skip to content
Advertisement

Tag: oracle12c

Oracle 12c updating multiple rows with the same data

I’m trying to write a script that pulls out all of the distinct ‘words’ in a string and saves them in another field. I’ve gotten the process to work in Oracle 19c (though any advice is welcome) but when I run the script in 12c the first record is correct but all the following records have the same data and

Compare dates between two dates at specific positions

Given the following sample records within the table: MY_DATES, using Oracle SQL and/or PL/SQL, I need to always take the first DATE_REGISTERED in this table, i.e. 26/10/2019 and then advance to the third DATE_REGISTERED record/value, i.e. 2/02/2020 and check if the difference is greater than 13 weeks, between them, i.e. The end result for this exercise is to return distinct

Correlated Subquery working differently for Oracle 12c and 11g

We have a generic table that holds multiple records (DDL and DML below): Below are the records: The query below works in 12c, but Errors out in 11g: It errors out with ORA-00904: “AR_TRX”.”TRX_ID”: invalid identifier. I believe this is caused by the correlated subquery AR_TRX linked to the SELECT statement (see comments “– ERROR HERE” above). I need this

List of values as table

I’m looking for a smarter way to have a list of values as a table in Oracle. What I do nowadays is select ‘value1’ as val from dual union select ‘value2’ from dual What I’m hoping for is some …

Advertisement