0

会社名と住所を含む 2 つのテーブルがあります。一部のビジネス名と住所は、異なる形式で記述されています。

               Table 1                                    Table 3 
ID  Name                    Address            ID Name                     Address
1   The three brothers      12 main st         1  three brothers           main street
2   central the great       12-13 x str        2  main purpose             milli street
3   main purpose shop       4 milli street     3  the great central        12 x-13 x str

次のように、両方のテーブルに存在する会社を一致させる必要があります。

tbl1ID  tbl2ID
  1       1
  2       3
  3       2

どうすればこれを行うことができますか?

4

1 に答える 1

-1

これを試してください

両方のテーブルに同じ名前を持つ名前を表示できます

Select *from table1,table2 where table1.name = table2.name;
于 2013-05-01T11:27:27.753 に答える