bug fix ...

This commit is contained in:
Steve Nyemba 2021-04-28 18:16:55 -05:00
parent 94798fd9a2
commit 089c1d1d76
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ class Components :
SQL = [
"SELECT :fields FROM ",
"(SELECT ROW_NUMBER() OVER() AS row_number,* FROM :target.:table) x","INNER JOIN",
"(SELECT ROW_NUMBER() OVER() AS row_number, :unique_field FROM :source.:table) y",
"(SELECT ROW_NUMBER() OVER() AS row_number, :unique_field FROM :source.:table ORDER BY RAND()) y",
"ON y.row_number = x.row_number"
]
SQL = " ".join(SQL).replace(":fields",",".join(fields)).replace(":table",table).replace(":source",source).replace(":target",target)