Quantcast
Channel: Questions in topic: "sql-server-2005"
Viewing all articles
Browse latest Browse all 415

fastest way to build table using join

$
0
0
I have to join table1 with 2.7 million records to a table with 75,000 records matching on a link1 or link2 using a left join to get all occurrences of matches. I need to place this data in a new table for tracking. Some of the derived fields use a case statement to build it. The first time I ran it, it ran for 13 hours. I was wondering if there is a faster way to do this. I have the attachment for the code. Thanks![link text][1] [1]: /storage/temp/925-samplecode.txt

Viewing all articles
Browse latest Browse all 415

Trending Articles