tektipsMem
MIS
Hi guys,
I am using Crystal Repoort XI. I have two tables joint by left outer joint, enforced from and joint type "=".
Here's what shows in SQL
SELECT `UN2005`.`Date / Time`, `Meters`.`Site`, `Meters`.`Unit`, `Meters`.`Date returned`, `UN2005`.`Meter Serial`, `UN2005`.`Result`, `Meters`.`Serial number`
FROM `Meters` `Meters` LEFT OUTER JOIN `UN2005` `UN2005` ON `Meters`.`Serial number`=`UN2005`.`Meter Serial`
WHERE `Meters`.`Date returned` IS NULL AND (`UNKA2005`.`Date / Time`>=#2005-08-01 00:00:00# AND `UNKA2005`.`Date / Time`<#2005-08-31 00:00:01#)
ORDER BY `Meters`.`Site`, `Meters`.`Unit`, `UNKA2005`.`Date / Time` DESC
I want the report to show :
Meter table serial number
UN2005 table meter serial result date/time
123 1.1 01/08/05
234 1.2 12/08/05
235 2.3 31/08/05
345
678
But it only shows all the serial number with results and date and did not show serial 345 and 678 (in detail section). Oh, I also group the site and units in header but I don't think it matters.
An anyone help and see what did I do wrong?
Thanks
TTM
I am using Crystal Repoort XI. I have two tables joint by left outer joint, enforced from and joint type "=".
Here's what shows in SQL
SELECT `UN2005`.`Date / Time`, `Meters`.`Site`, `Meters`.`Unit`, `Meters`.`Date returned`, `UN2005`.`Meter Serial`, `UN2005`.`Result`, `Meters`.`Serial number`
FROM `Meters` `Meters` LEFT OUTER JOIN `UN2005` `UN2005` ON `Meters`.`Serial number`=`UN2005`.`Meter Serial`
WHERE `Meters`.`Date returned` IS NULL AND (`UNKA2005`.`Date / Time`>=#2005-08-01 00:00:00# AND `UNKA2005`.`Date / Time`<#2005-08-31 00:00:01#)
ORDER BY `Meters`.`Site`, `Meters`.`Unit`, `UNKA2005`.`Date / Time` DESC
I want the report to show :
Meter table serial number
UN2005 table meter serial result date/time
123 1.1 01/08/05
234 1.2 12/08/05
235 2.3 31/08/05
345
678
But it only shows all the serial number with results and date and did not show serial 345 and 678 (in detail section). Oh, I also group the site and units in header but I don't think it matters.
An anyone help and see what did I do wrong?
Thanks
TTM