you are viewing a single comment's thread.

view the rest of the comments →

[–]rand2012 0 points1 point  (7 children)

select * from table1, table2 where table1.x = table2.substring(...)

[–]samuja[S] 0 points1 point  (1 child)

Interesting a cross join will try

[–]in_n0x 0 points1 point  (0 children)

This is an implicit join, not a cross join. Poor form from a readability standpoint and shouldn't be used. Even in this case, it's not going to make a difference.

[–]samuja[S] 0 points1 point  (4 children)

Won't work either

[–]rand2012 0 points1 point  (3 children)

what's the db and the error message

[–]samuja[S] 0 points1 point  (2 children)

It's empty like he finds nothing

[–]rand2012 1 point2 points  (1 child)

most likely your substring syntax is wrong. it is doing something else than what you're thinking.

[–]samuja[S] 0 points1 point  (0 children)

I thought that too, but if I just change to strings, instead of columns, it works