In my report I want to join two tables Contracts and Turnover. When I use Database Expert and join the fields, the generated sql produces an INNER JOIN instead of the LEFT JOIN I wanted.
Two tables are joined on region, contract, period and year.
The generated SQL is
SELECT Crt.year, Crt.period, Crt.region, Crt.CrtNo, Cqt.Turnover
FROM Contracts Crt, Turnover Cqt
INNER JOIN Cqt ON
(((Crt.region=Cqt.region)
AND
(Crt.CrtNo=Cqt.CrtNo))
AND
(Crt.year=Cqt.year))
AND
(Crt.period=Cqt.period)
WHERE
Crt.year=2006 AND Crt.period=3 AND Crt.region LIKE '%'
ORDER BY Crt.region, Crt.CrtNo
Instead of the INNER JOIN I would like to replace it with a LEFT JOIN.
Can this be done in the Database Expert??
Two tables are joined on region, contract, period and year.
The generated SQL is
SELECT Crt.year, Crt.period, Crt.region, Crt.CrtNo, Cqt.Turnover
FROM Contracts Crt, Turnover Cqt
INNER JOIN Cqt ON
(((Crt.region=Cqt.region)
AND
(Crt.CrtNo=Cqt.CrtNo))
AND
(Crt.year=Cqt.year))
AND
(Crt.period=Cqt.period)
WHERE
Crt.year=2006 AND Crt.period=3 AND Crt.region LIKE '%'
ORDER BY Crt.region, Crt.CrtNo
Instead of the INNER JOIN I would like to replace it with a LEFT JOIN.
Can this be done in the Database Expert??