Hi,
Delivery code and segment code are two different attributes and they are populated in Adobe mart at two different levels. Delivery code is an attribute of Delivery (NMSDelivery) vs. Segment Code is an attribute of the universe targeted in a delivery and the proper location for segment code attribute is BroadLogRcp table.
The segmentation of the campaign universe is not always dependent on # of deliveries. It is possible to have more segments (via split activity node) but a single delivery (behavior analysis).
I recommend to re-evaluate the use of these codes in your system.
Thanks.