HoustonGuy
Programmer
I'm mentally stuck!
I have two tables.
TableOne has simple data like this:
Row_Id, StartRow, StopRow
TableTwo has data like this:
Row_id, String_of_Data
I need to select String_of_Data rows in TableTwo that fall between the StartRow and StopRow from TableOne in one resultset, so that the end result is a single column with all of TableTwo's String_of_Data values.
Sample Data:
TableOne
1 12 18
2 29 34
3 62 75
etc.
TableTwo
1 Stringofdata
2 Stringofdata
3 Stringofdata
etc
I think I'm gonna need to loop through TableOne and insert each iteration of TableTwo's String_of_Data into a final table. Each iteration will append the final table with the data to create one long column.
My description above probably sucks. :-( I can clarify if needed.
Thanks in advance for looking.
I have two tables.
TableOne has simple data like this:
Row_Id, StartRow, StopRow
TableTwo has data like this:
Row_id, String_of_Data
I need to select String_of_Data rows in TableTwo that fall between the StartRow and StopRow from TableOne in one resultset, so that the end result is a single column with all of TableTwo's String_of_Data values.
Sample Data:
TableOne
1 12 18
2 29 34
3 62 75
etc.
TableTwo
1 Stringofdata
2 Stringofdata
3 Stringofdata
etc
I think I'm gonna need to loop through TableOne and insert each iteration of TableTwo's String_of_Data into a final table. Each iteration will append the final table with the data to create one long column.
My description above probably sucks. :-( I can clarify if needed.
Thanks in advance for looking.