I have two tables
Table1: ColumnA (varchar)
Table2: ColumnB (varchar)
I need to get all rows from T2 where ColumnB is "like" any of the rows from 'ColumnA%'. For example, rows in T1 might be:
- Summer09
- Fall09
while rows in T2 might be
- Spring09 Com101 Sec1
- Summer09 Stat400 Sec2
- Fall09 CS200 Sec3
In that scenario it would retun the Stat400 and CS200 rows. Is there a way to do this in a single SQL statement?