lets say I’ve a list of 10 strings (lets just call it “str1”, “str2”, … “str10” etc). I want to be able to generate all pairs from this
(“str1”, “str2”)
(“str1”, “str3”)
.
.
.
etc upto (“str9”, “str10”). That is easy, with two loops. How to do the same thing with a million strings? Is there anyway to put it in a table, and run a query?
lets say I’ve a list of 10 strings (lets just call it str1, str2,
Share
Put them in a table, and use this join:
Now, if you run a Million strings in some sort of Query Analyzer / GUI, you’re setting yourself up for some hurt – that’s a huge load of data returned.