Carlosdl
29845 pts. | Dec 4 2008 2:41PM GMT
Are Table1’s fields going to be created/added at runtime ? If not, I don’t really understand how that ‘join’ would work since you have in Table1 all three fields, and you know exactly their names, so you could compare Table2.tag_name directly against those field names (as strings). At the other hand, all rows in Table1 will have the same fields, so if one record in Table2 has ‘Public_Education’ in Tag_name, that record will match the complete Table1 table, since all records on that table has the same fields.
I might have misunderstood your question. If so, please <a href="phttp://itknowledgeexchange.techtarget.com/itanswers/sql-table-join-when-the-name-of-a-column-in-table1-equals-the-value-of-a-column-in-table2#rovide" title="phttp://itknowledgeexchange.techtarget.com/itanswers/sql-table-join-when-the-name-of-a-column-in-table1-equals-the-value-of-a-column-in-table2#rovide" target="_blank">phttp://itknowledgeexchange.techtarget.c…</a> more information, and some example data including how the resulting join table would look like.






