由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Question 3: merging data, getting rid of dup?
相关主题
Bulk merge? (转载)问一个excel data merge的问题
Question 2: distributed database question?Deadlock on merge (oracle)
sql面试题1求问一个对我来说很难的问题
用SSIS EXPORT 到 EXCEL 2010 有2000个COLUMN,可能吗如何判断一行是否存在的问题。
问一个query问个Oracle Merge 的问题
merge 同步复制How to merge tables in SQL Server 2000?
SQL server & Peer-to-peer networkHow to get other columns after UNION?
Table Merge (SQL Server)Which replication to use?
相关话题的讨论汇总
话题: peer话题: table话题: question话题: name话题: dup
进入Database版参与讨论
1 (共1页)
c*****t
发帖数: 1879
1
I obtain table from peer 1 and table from peer 2.
Both peers may have identical rows and both may have different rows.
What is the sql command to merge the two table?
For ex
Peer1:
Name
abc
def
deg
Now add Peer 2 table:
Name
aaa
dddd
def
Can someone show me? Thanks
F***a
发帖数: 525
2
you can do it using full outer join

【在 c*****t 的大作中提到】
: I obtain table from peer 1 and table from peer 2.
: Both peers may have identical rows and both may have different rows.
: What is the sql command to merge the two table?
: For ex
: Peer1:
: Name
: abc
: def
: deg
: Now add Peer 2 table:

F***a
发帖数: 525
3
select * from peer1 full outer join peer2 on peer1.name = peer2.name

【在 F***a 的大作中提到】
: you can do it using full outer join
b***s
发帖数: 14
4
This is a data integration problem. Is there any "value correspondence"
between attributes with different names in the two tables?
Google "clio IBM Toronto" for the schema translation project done at
IBM and Toronto.

【在 c*****t 的大作中提到】
: I obtain table from peer 1 and table from peer 2.
: Both peers may have identical rows and both may have different rows.
: What is the sql command to merge the two table?
: For ex
: Peer1:
: Name
: abc
: def
: deg
: Now add Peer 2 table:

1 (共1页)
进入Database版参与讨论
相关主题
Which replication to use?问一个query
Merge table with one single query?merge 同步复制
同事被FIRE掉了SQL server & Peer-to-peer network
招人SQL SERVER DBATable Merge (SQL Server)
Bulk merge? (转载)问一个excel data merge的问题
Question 2: distributed database question?Deadlock on merge (oracle)
sql面试题1求问一个对我来说很难的问题
用SSIS EXPORT 到 EXCEL 2010 有2000个COLUMN,可能吗如何判断一行是否存在的问题。
相关话题的讨论汇总
话题: peer话题: table话题: question话题: name话题: dup