필터 지우기
필터 지우기

identify key variable for joining tables

조회 수: 1 (최근 30일)
Johnny Birch
Johnny Birch 2019년 5월 23일
댓글: Geoff Hayes 2019년 5월 23일
I have two large tables (562000*2500) imported from a sql database with non-identical headers. I know these tables have 1 or 2 idetical column values which I want to use for joining the two tables. How is it possible to identify the potential key column for joining them?
  댓글 수: 11
Guillaume
Guillaume 2019년 5월 23일
With no a priori knowledge and no way to narrow it down, this sounds like a monumental task, if not impossible. In theory, you'd have to do up to 562000 ^ 3123750 comparisons to find the two columns with the most collisions.
If the two tables come from the same database, is there something in the database schema that could tell you the common column, i.e is there foreign keys?
Geoff Hayes
Geoff Hayes 2019년 5월 23일
Johnny - how do you even know that there are common columns between the two tables? What has led you to believe that?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by