Cmdlets for Smaregi

Build 24.0.9062

JOIN クエリ

CData Cmdlets PowerShell Module for Smaregi は次の例のような標準SQL の結合をサポートします。

内部結合

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

SELECT ReceivingDetails.Status, Receivings.ReceivingDate FROM ReceivingDetails INNER JOIN Receivings ON ReceivingDetails.ReceivingId = Receivings.ReceivingId

左結合

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

 SELECT ReceivingDetails.Status, Receivings.ReceivingDate FROM ReceivingDetails LEFT JOIN Receivings ON ReceivingDetails.ReceivingId = Receivings.ReceivingId

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