D
Dave
Hope somebody can help here.
I have a table and I need to reference a field using the
value of another.
For example I have 3 fields named "sp_1", "sp_2" and
"num_periods".
If the value in "num_periods" is "2" I want to retrive the
value in "sp_2".
So in psuedo sql:-
select * from sp_"num_periods"
any help would be appreciated.
Dave
I have a table and I need to reference a field using the
value of another.
For example I have 3 fields named "sp_1", "sp_2" and
"num_periods".
If the value in "num_periods" is "2" I want to retrive the
value in "sp_2".
So in psuedo sql:-
select * from sp_"num_periods"
any help would be appreciated.
Dave