AcctSolver
Technical User
I need to join on table to various others, but need to create the field to do so.
Table P contains fields: RunNo, sequence, weight. I need to build the field RunNum, and use it for joins.
There is always a sequence 1 for each RunNo, but there can be a sequence 2 or 3 as well.
If there is a sequence 2 or 3, then the sequence is converted to a letter; 1=A, 2=B, 3=C. In that case, RunNo + converted sequence = RunNum.
Else, if there is no sequence besides 1, RunNo = RunNum.
What syntax would I need to use to build that RunNum field? All the other tables already have RunNum in the other format, but I need the data from table P for my report.
Table P contains fields: RunNo, sequence, weight. I need to build the field RunNum, and use it for joins.
There is always a sequence 1 for each RunNo, but there can be a sequence 2 or 3 as well.
If there is a sequence 2 or 3, then the sequence is converted to a letter; 1=A, 2=B, 3=C. In that case, RunNo + converted sequence = RunNum.
Else, if there is no sequence besides 1, RunNo = RunNum.
What syntax would I need to use to build that RunNum field? All the other tables already have RunNum in the other format, but I need the data from table P for my report.