Ease the Burden of Overloading
March 29, 2016 Ted Holt
|
A while back I said that function overloading is marvelous. I haven’t changed my mind. The same is true of overloaded stored procedures. The only negatives to overloading are a couple of annoyances that the system requires to maintain order. Fortunately, those annoyances are easily circumvented. Here’s what and how. Assume a table of items. Each item is identified by a five-digit ID code for internal use only. Customers use an alternate catalog ID to refer to items.
create table Items
( ID dec (5,0),
Catalog_ID char(6),
MaterialThisLevel dec (5,2),
LaborThisLevel dec (5,2),
OverheadThisLevel dec (5,2),
MaterialLowerLevels dec (5,2),
LaborLowerLevels |


