the unions performs much better than the joins, and the execution time is constant with a growing number of records.
Attach a file by drag & drop or click to upload