|
Re: validation [message #268036 is a reply to message #267772] |
Mon, 17 September 2007 05:07 |
scorpio_biker
Messages: 154 Registered: November 2005 Location: Kent, England
|
Senior Member |
|
|
I'm not quite sure I follow you?
Do you mean something along the lines of
if customer class code = a then
insert into table (site_use_code, primary_site_use_flag)
values (bill_to, bill_to);
elsif customer class code = b then
insert into table (site_use_code, primary_site_use_flag)
values (ship_to, ship_to);
end if;
And how does orig_system_address_ref fit into it?
Perhaps you could show us what you've already tried?
|
|
|
Re: validation [message #268059 is a reply to message #267772] |
Mon, 17 September 2007 07:00 |
Aalap
Messages: 4 Registered: September 2007 Location: India
|
Junior Member |
|
|
Another way of doing the same thing:
insert into table
(site_use_code, primary_site_use_flag)
values
(decode(customer_class_code ,'a',bill_to,'b',ship_to),
decode(customer_class_code ,'a',bill_to,'b',ship_to)
);
Cheers
|
|
|