JDBC Driver for Workday

Build 23.0.8839

JOIN Queries

The CData JDBC Driver for Workday supports standard SQL joins like the following examples.

Inner Join

An inner join selects only rows from both tables that match the join condition:

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

Left Join

A left join selects all rows in the FROM table and only matching rows in the JOIN table:

 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) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839