I have two tables that look like the following:
PKey Description Group
1AF2 Item 1 101
2B2E4 Item 2 102
3G54A1 Item 3 101
4TR7 Item 4 103
And like this:
PKey Rate 1 Rate 2
1AF1/1AF2/1AF3 .075 .0089
2B2E1/2B3E3/2B1E4/2B7E5 .068 .049
3G54A1/3H52A4/3G14B2 .025 .0099
4TR3/4TR7/4TR8 .045 .0012
I need to return the Rate 1 and Rate 2 for each item PKey, but whoever made table 2 didn't know enough about how SQL databases work to actually make the table useful (trying to save time or something).
Is there any easy way to return the info? It will always be divided by slashes from other PKey's in its row, but it can fall at the beginning, arbitrarily at some point in the middle, or the end of the row. In addition, some items might not appear in a row at all.