Skip to content

Tag Archives: plsql

Process the whole world, or just one item

05-Nov-09

One of my favorite PL/SQL techniques used in batch job development is to add an extra parameter, default it to NULL, so that I can test a single account at a time. example CREATE PROCEDURE bill_employers(in_employer_id DEFAULT NULL) IS BEGIN FOR employer in SELECT emp.employer_id , emp.account_number , emp.bill_amt FROM employer emp WHERE emp.employer_id = [...]

Manager: How big is my table? Me: What do you mean?

03-Nov-09

Recently, a data warehouse manager sent me a list of 49 tables; he wants the approximate size of each. For an end-user, this is no easy task. Sure, GUI interfaces such as Toad or OEM will give this information, but not all managers (or developers for that matter) know how to get this information. Furthermore, [...]