I'm having a problem trying to update a customer master table with the latest broker to be invoiced.
my table structure is:
customer master (cm_mstr)
cm_nbr cm_name cm_cur_brk
AFFAMA0 some customer <blank>
invoice table
inv_nbr cm_nbr brk_nbr inv_date
1 AFFAMA0 PRO5 10/20/2006
2 AFFAMA0 BGS5 10/01/2006
3 AFFAMA0 ZZZZ 10/31/2006
so basically I want to update my customer master with broker ZZZZ because it was the last broker to be invoiced.
this should be easy, but I'm having a brain failure right now ... thanks for any insight.
my table structure is:
customer master (cm_mstr)
cm_nbr cm_name cm_cur_brk
AFFAMA0 some customer <blank>
invoice table
inv_nbr cm_nbr brk_nbr inv_date
1 AFFAMA0 PRO5 10/20/2006
2 AFFAMA0 BGS5 10/01/2006
3 AFFAMA0 ZZZZ 10/31/2006
so basically I want to update my customer master with broker ZZZZ because it was the last broker to be invoiced.
this should be easy, but I'm having a brain failure right now ... thanks for any insight.