A
allie357
I have data that pulls information from multiple tables, but the db is
not fully normalized. i cannot change the structure of the db as it is
not mine.
I need to write an iff statement or a join that will match
transactions by invoice number if the Buyer is null and assign the
Buyer name that is associated to the same invoice number where the
names are not null. I also need to assign the PO Number to the
transactions the same way
Here is an example. The first line is missing PO Num and Buyer name
but it should have the same PO Num and Buyer as the second line.
Amount Inv Number Date PO Num Buyer Name
$33.00 SIMCR 575477 02-
Oct-08
$160.00 SIMCR 575477 02-Oct-08 796332 Ford, Rose Marie
not fully normalized. i cannot change the structure of the db as it is
not mine.
I need to write an iff statement or a join that will match
transactions by invoice number if the Buyer is null and assign the
Buyer name that is associated to the same invoice number where the
names are not null. I also need to assign the PO Number to the
transactions the same way
Here is an example. The first line is missing PO Num and Buyer name
but it should have the same PO Num and Buyer as the second line.
Amount Inv Number Date PO Num Buyer Name
$33.00 SIMCR 575477 02-
Oct-08
$160.00 SIMCR 575477 02-Oct-08 796332 Ford, Rose Marie