JDBC Driver for Zoho Creator

Build 23.0.8839

JOIN クエリ

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

内部結合

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

SELECT My_Leaves.Employee_display_value, My_Leaves.Leave_Type_display_value,My_Team_Leaves.Employee_display_value,My_Team_Leaves.Leave_Type_display_value FROM My_Leaves  INNER JOIN My_Team_Leaves ON My_Leaves.ID = My_Team_Leaves.ID

左結合

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

SELECT My_Leaves.Employee_display_value, My_Leaves.Leave_Type_display_value,My_Team_Leaves.Employee_display_value,My_Team_Leaves.Leave_Type_display_value FROM My_Leaves  LEFT JOIN My_Team_Leaves ON My_Leaves.ID = My_Team_Leaves.ID 

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839