Skip to content

Remove duplicate of collection in oracle

I have this type in my package: TYPE LIST_A_TYPE TABLE OF TABLE_A%ROWTYPE; Then I have this procedure where I populate this collection looping a table: procedure load_me as l_list_a LIST_A_TYPE …

Why is my query failing with SQLCODE = -420?

Can I get some help with this? I’ll copy the code as well as the error. I looked up the error code (DB2 SQL Error: SQLCODE=-420, SQLSTATE=22018, SQLERRMC=BOOLEAN) but I’m not understanding what doesn’t meet the requirements of the function? I’m just trying to pull these tables, rename …

Can’t figure out issue with my trigger logic?

I have two tables, listsalesorders and listinvoices. listsalesorders is the parent table, and each sales order may have many invoices, but each invoice is only attached to a single sales order. In …

Counting the Sum of Unique Accounts

I’ve gone snow blind, I’m trying to work out the total sum of unique accounts within a table but just not getting there. The table contains an ACCOUNT_ID and each account may have a single or …