graviz
Registered User.
- Local time
- Today, 16:41
- Joined
- Aug 4, 2009
- Messages
- 167
I’m not sure where to start so I’ll just describe the scenario.
The Master table contains all the information I need however there’s a field “SCRs” that need to be converted by using a key in another table. I basically need to join the “SCRs” field to the “TS_ID” field but the “SCRs” field contain multiple IDs separated by commas.
Table Name: Master
Field: “SCRs”
Table Name: SCR_Lookup
Field: “TS_ID”, “Name”
Record in the Master table
“SCRs” = ,59090,59092,59094, (It. could be any amount of numbers. It’s not always going to be 3 which is the tricky part.)
3 Records in the SCR_Lookup table
“TS_ID” = 59090 with “Name” = API_0504
“TS_ID” = 59092 with “Name” = DP_0588
“TS_ID” = 59094 with “Name” = CSG_7777
Desired Result: API_0504, DP_0588, CSG_7777
I hope this makes sense but am unsure how to do this easily and systematically.
Any ideas?
The Master table contains all the information I need however there’s a field “SCRs” that need to be converted by using a key in another table. I basically need to join the “SCRs” field to the “TS_ID” field but the “SCRs” field contain multiple IDs separated by commas.
Table Name: Master
Field: “SCRs”
Table Name: SCR_Lookup
Field: “TS_ID”, “Name”
Record in the Master table
“SCRs” = ,59090,59092,59094, (It. could be any amount of numbers. It’s not always going to be 3 which is the tricky part.)
3 Records in the SCR_Lookup table
“TS_ID” = 59090 with “Name” = API_0504
“TS_ID” = 59092 with “Name” = DP_0588
“TS_ID” = 59094 with “Name” = CSG_7777
Desired Result: API_0504, DP_0588, CSG_7777
I hope this makes sense but am unsure how to do this easily and systematically.
Any ideas?