FireDAC Components for Azure Resource Management

Build 21.0.7930

JOIN Queries

The CData FireDAC Components for Azure Resource Management 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 RateCards.MeterId,RateCards.MeterRateKey,RateCards.MeterRateValue,ConsumptionData.Quantity FROM ConsumptionData,RateCards where ConsumptionData.MeterId=RateCards.MeterId AND StartTime='2014-05-15' AND EndTime='2018-02-15'

Left Join

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

SELECT RateCards.MeterId,RateCards.MeterRateKey,RateCards.MeterRateValue,ConsumptionData.Quantity FROM ConsumptionData LEFT JOIN RateCards ON RateCards.MeterId=ConsumptionData.MeterId WHERE StartTime='2014-05-15' AND EndTime='2018-02-15'

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930