M
mscertified
I need the SQL to do the following, so far it escapes me.
I have 2 tables related in one to many relationship. The many sided table
has a text column.
I need to find all records in the one-sided table that contain a given
character string in any of the matching many-sided text columns.
I need an efficient way to do this. I'd prefer it to be a sub-select since
this search is going to be performed in conjunction with many other possible
searches.
E.g.
TableOne:
KeyID
TableMany:
KeyID
MyText
Find all KeyID in TableOne where MyText like '*abc*'
I have 2 tables related in one to many relationship. The many sided table
has a text column.
I need to find all records in the one-sided table that contain a given
character string in any of the matching many-sided text columns.
I need an efficient way to do this. I'd prefer it to be a sub-select since
this search is going to be performed in conjunction with many other possible
searches.
E.g.
TableOne:
KeyID
TableMany:
KeyID
MyText
Find all KeyID in TableOne where MyText like '*abc*'