我想加入到表,並得到下面的輸出連接表(無條款)
表1
TestId1
----------
one
two
three
four
five
six
seven
eight
表2
TestId2
----------
fiftythree
fiftyfour
fiftytwo
fiftyfive
fiftyone
我想表3爲我的輸出來自table1的所有行和來自table2的第一行,直到沒有剩下的行,然後它們應該開始重複。
作爲替代答案,它們也可以隨機分配。
TestId1 TestId2
---------- ----------
one fiftythree
two fiftyfour
three fiftytwo
four fiftyfive
five fiftyone
six fiftythree
seven fiftyfour
eight fiftytwo
您必須完成它只有一個選擇或存儲過程被允許? – 2009-10-01 16:26:24