We have a table the contains staff assignments to a client. There can be multiple staff assignments to a client by programs(which are distinct programs).
clientid_c staffmasterid_c program_c
------------------ ------------------ ---------
00A009 0406 900
00A027 0406 900
00A027 0320 500
00A055 0326 500
00A055 0406 900
00A055 0352 100
There is an order of program assignments as to which staff is responsible for directing the clients case. I'm trying to create a view to run a Crystal report from as to which staff controls the case. The program assignment order is 500 - 100 - 900. I'm having problems creating a view that would have 1 record for each client with the staff that should control the case, like below.
clientid_c staffmasterid_c program_c
------------------ ------------------ ---------
00A009 0406 900
00A027 0320 500
00A055 0326 500
Any suggestions? Thanks, Paul
clientid_c staffmasterid_c program_c
------------------ ------------------ ---------
00A009 0406 900
00A027 0406 900
00A027 0320 500
00A055 0326 500
00A055 0406 900
00A055 0352 100
There is an order of program assignments as to which staff is responsible for directing the clients case. I'm trying to create a view to run a Crystal report from as to which staff controls the case. The program assignment order is 500 - 100 - 900. I'm having problems creating a view that would have 1 record for each client with the staff that should control the case, like below.
clientid_c staffmasterid_c program_c
------------------ ------------------ ---------
00A009 0406 900
00A027 0320 500
00A055 0326 500
Any suggestions? Thanks, Paul