Hi,
I have data in a tblTemp imported from Excel, and I will need to merge them base on 2 field. If they match, then merge some other field together.
Right now, I am adding the first record from tblTemp to tblData, then compare the 2nd record from tblTemp to tblData, then if the 2 field are same, then update that record in tblData, otherwise, add that as new record to tblData. Then it will loop the next data in tblTemp.
That way works, but its taking a while becuz it compares every single record from tblTemp to tblData. I have about 10k record which takes about 5mins.
I Wonder if there is any other easier way? I guess concatenate?
Thanks
I have data in a tblTemp imported from Excel, and I will need to merge them base on 2 field. If they match, then merge some other field together.
Right now, I am adding the first record from tblTemp to tblData, then compare the 2nd record from tblTemp to tblData, then if the 2 field are same, then update that record in tblData, otherwise, add that as new record to tblData. Then it will loop the next data in tblTemp.
That way works, but its taking a while becuz it compares every single record from tblTemp to tblData. I have about 10k record which takes about 5mins.
I Wonder if there is any other easier way? I guess concatenate?
Thanks