ODBC Driver for Workday

Build 22.0.8479

JOIN クエリ

CData ODBC Driver for Workday は次の例のような標準SQL の結合をサポートします。

内部結合

内部結合は、結合条件に合う行のみを両テーブルから選択します。

SELECT Human_Resources.Workers.Worker_Reference_WID, Human_Resources.Workers.Legal_Name_Last_Name, Human_Resources.Workers_Address_Data.Municipality FROM Human_Resources.Workers INNER JOIN Human_Resources.Workers_Address_Data ON Human_Resources.Workers.Worker_Reference_WID = Human_Resources.Workers_Address_Data.Workers_Worker_Reference_WID

左結合

左結合は、FROM テーブルのすべての行とJOIN テーブルの条件に合う行のみを選択します。

 SELECT Human_Resources.Workers.Worker_Reference_WID, Human_Resources.Workers.Legal_Name_Last_Name, Human_Resources.Workers_Address_Data.Municipality FROM Human_Resources.Workers LEFT JOIN Human_Resources.Workers_Address_Data ON Human_Resources.Workers.Worker_Reference_WID = Human_Resources.Workers_Address_Data.Workers_Worker_Reference_WID

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479