Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Merge two big datasets


Merge two big datasets

Author
Message
HaraPriya
HaraPriya
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 12
I have two datasets one of 15000+ records and other with 5000+ records.I need to merge these two sets based on Name which may not be in the same format for EX (VISTA HEALTH, FT. SMITH) and   (VISTA HEALTH SERVICES, FORT SMITH) and finally create a file which should have both matching and non-matching records from both datasets.
Is there any better way do this merge.Please suggest

Thank you.
Eric M Russell
Eric M Russell
SSCarpal Tunnel
SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)

Group: General Forum Members
Points: 4564 Visits: 9485
HaraPriya (3/19/2014)
I have two datasets one of 15000+ records and other with 5000+ records.I need to merge these two sets based on Name which may not be in the same format for EX (VISTA HEALTH, FT. SMITH) and   (VISTA HEALTH SERVICES, FORT SMITH) and finally create a file which should have both matching and non-matching records from both datasets.
Is there any better way do this merge.Please suggest

Thank you.

What do you mean by "Merge": is that MERGE update, JOIN, UNION, INTERSECT ?

In any event, that [Name] column is a poor excuse for a key. Perhaps what you need is a many-to-one bridge table that maps one or more names to an ID.
http://jsimonbi.wordpress.com/2011/01/25/populating-a-many-to-many-bridge-table/


"The universe is complicated and for the most part beyond your control, but your life is only as complicated as you choose it to be."
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search