afternoon all,
any suggestions would be greatly appreciated! i'm not sure this is possible and a search of the forum and faqs has not given me a what i think is a solution.
given the following:
table1
text1
text2
text3
double1
table2
text1
text2
text3
double1
tables are related by text1 and text2.
text3 is a field where there may be an array of values colon delimited, in table1. the array, if there, is dynamic. text3 in table2 could be a single instance of a value in table1 text3.
what i would like to do with an update statement is to multiply table2.double1 by table1.double1 if table2.text1 = table1.text1 and table2.text2 = table2.text2 and if the value in table2.text3 = any of the array values in table1.text3.
is there anyway to do this in a single update statemnt? or do i need to read the recordset of table1, split text3 into a variable and then loop though table2?
thanks in advance.
regards,
longhair
any suggestions would be greatly appreciated! i'm not sure this is possible and a search of the forum and faqs has not given me a what i think is a solution.
given the following:
table1
text1
text2
text3
double1
table2
text1
text2
text3
double1
tables are related by text1 and text2.
text3 is a field where there may be an array of values colon delimited, in table1. the array, if there, is dynamic. text3 in table2 could be a single instance of a value in table1 text3.
what i would like to do with an update statement is to multiply table2.double1 by table1.double1 if table2.text1 = table1.text1 and table2.text2 = table2.text2 and if the value in table2.text3 = any of the array values in table1.text3.
is there anyway to do this in a single update statemnt? or do i need to read the recordset of table1, split text3 into a variable and then loop though table2?
thanks in advance.
regards,
longhair