Re: [SQL] non-equi self-join optimization

2006-01-24 Thread Bruno Wolff III
On Tue, Jan 17, 2006 at 12:57:30 -0800, George Pavlov <[EMAIL PROTECTED]> wrote: > I have a table of names with two subsets of entities. I want to find > those names from set 1 that are substrings of names from set 2 from the > same table. Basically the pared down query I want is something like >

[SQL] non-equi self-join optimization

2006-01-17 Thread George Pavlov
I have a table of names with two subsets of entities. I want to find those names from set 1 that are substrings of names from set 2 from the same table. Basically the pared down query I want is something like this: select t1.myname, t2.myname from mytable t1 inner join mytable t2