由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Help - Data Cleansing - Any Suggestion
相关主题
好奇大家的数据库都是啥样的老印给我的一个Challenge
salesforce用的什么数据库产品呀?random error for CAST( MONEY AS VARCHAR)
生物实验员进数据界做BIJob Openings: Data Warehouse Architect/ETL/Business Objects (转载)
请教如何将teradata的数据导入oracle?请大家给我推荐一下SSIS的书
how to extract large number of rows from sql server?Job Opening - SQL Developer
要面试SQL Server工作,请教高手15万收入怎么样
Job opportunity in Baltimore Area做DW的,如何估计/衡量一项任务的工作量?
sybase 问题请教Kimball's training on modeling
相关话题的讨论汇总
话题: email话题: telephone话题: suggestion话题: any话题: cleansing
进入Database版参与讨论
1 (共1页)
i****i
发帖数: 18
1
Sorry to type in English at office.
I need to import several thousand records into Salesforce, and create a new
list of unique accounts, which is the first step in import.
I was wondering how to eliminate the duplicates, and at the same time, to
preserve all valuable information. (For example, I need to keep as much
information, such as Email, Telephone for the account)
AccountName Email Telephone
Alcee Duplessis Household (985) 703-0
i****a
发帖数: 36252
2
SQL 2008?
use MERGE
example:
MERGE INTO dbo.Customers AS TGT
USING dbo.CustomersStage AS SRC
ON TGT.custid = SRC.custid
WHEN MATCHED AND TGT.companyname <> SRC.companyname THEN
UPDATE SET
TGT.companyname = SRC.companyname,
TGT.phone = SRC.phone,
TGT.address = SRC.address
WHEN NOT MATCHED THEN
INSERT (custid, companyname, phone, address)
VALUES (SRC.custid, SRC.companyname, SRC.phone, SRC.address)
WHEN NOT MATCHED BY SOURCE THEN
DELETE
OUTPUT
$action, deleted.custid AS de

【在 i****i 的大作中提到】
: Sorry to type in English at office.
: I need to import several thousand records into Salesforce, and create a new
: list of unique accounts, which is the first step in import.
: I was wondering how to eliminate the duplicates, and at the same time, to
: preserve all valuable information. (For example, I need to keep as much
: information, such as Email, Telephone for the account)
: AccountName Email Telephone
: Alcee Duplessis Household (985) 703-0

i****i
发帖数: 18
3
Thank you so much.... We did not use the MS SQL... that is a problem.
i****a
发帖数: 36252
4
don't know salesforce. if you are doing this inside salesforce then have to
look at their documents.
or maybe a big cow here knows salesforce...
y****w
发帖数: 3747
5
what happens if your account has two different phone #?

new
(985) 703-0013
0013

【在 i****i 的大作中提到】
: Sorry to type in English at office.
: I need to import several thousand records into Salesforce, and create a new
: list of unique accounts, which is the first step in import.
: I was wondering how to eliminate the duplicates, and at the same time, to
: preserve all valuable information. (For example, I need to keep as much
: information, such as Email, Telephone for the account)
: AccountName Email Telephone
: Alcee Duplessis Household (985) 703-0

s******s
发帖数: 508
6
Try ETL tools like SSIS.

new
(985) 703-0013
0013

【在 i****i 的大作中提到】
: Sorry to type in English at office.
: I need to import several thousand records into Salesforce, and create a new
: list of unique accounts, which is the first step in import.
: I was wondering how to eliminate the duplicates, and at the same time, to
: preserve all valuable information. (For example, I need to keep as much
: information, such as Email, Telephone for the account)
: AccountName Email Telephone
: Alcee Duplessis Household (985) 703-0

1 (共1页)
进入Database版参与讨论
相关主题
Kimball's training on modelinghow to extract large number of rows from sql server?
【CINASSUG】【CINAOUG】SQL Server 讲座第二课- BI技术交流要面试SQL Server工作,请教高手
新手弱弱的问:做Data warehouse 都是需要有经验的?没有IT背景可以往这个方向转吗?Job opportunity in Baltimore Area
版上做ETL developer的多吗?sybase 问题请教
好奇大家的数据库都是啥样的老印给我的一个Challenge
salesforce用的什么数据库产品呀?random error for CAST( MONEY AS VARCHAR)
生物实验员进数据界做BIJob Openings: Data Warehouse Architect/ETL/Business Objects (转载)
请教如何将teradata的数据导入oracle?请大家给我推荐一下SSIS的书
相关话题的讨论汇总
话题: email话题: telephone话题: suggestion话题: any话题: cleansing