O am using Crystal Reports 10.
I have 2 tables suplr and prod_trans. For the selected suppliers, I want to print data from prod_trans table. Even if there is no data in the prod_trans table, I want to print zeros. I have grouped by suplr.
For suppliers who have no data, I do not see them on the report as zeros inspite of having a left outer join and
enforced from.
Here is the Database SQL displayed
SELECT "Prod_Trans"."Prod_Trans_Dte", "Suplr"."Suplr_Id", "Suplr"."Suplr_Nm", "Prod_Trans"."Clb_Id", "Prod_Trans"."Div_Amt"
FROM "test"."dbo"."Suplr" "Suplr" LEFT OUTER JOIN "test"."dbo"."Prod_Trans" "Prod_Trans" ON "Suplr"."Suplr_Id"="Prod_Trans"."Suplr_Id"
WHERE ("Suplr"."Suplr_Nm"='Busch' OR "Suplr"."Suplr_Nm"='Gray Line' OR "Suplr"."Suplr_Nm"='Universal')
ORDER BY "Suplr"."Suplr_Nm
I have 2 tables suplr and prod_trans. For the selected suppliers, I want to print data from prod_trans table. Even if there is no data in the prod_trans table, I want to print zeros. I have grouped by suplr.
For suppliers who have no data, I do not see them on the report as zeros inspite of having a left outer join and
enforced from.
Here is the Database SQL displayed
SELECT "Prod_Trans"."Prod_Trans_Dte", "Suplr"."Suplr_Id", "Suplr"."Suplr_Nm", "Prod_Trans"."Clb_Id", "Prod_Trans"."Div_Amt"
FROM "test"."dbo"."Suplr" "Suplr" LEFT OUTER JOIN "test"."dbo"."Prod_Trans" "Prod_Trans" ON "Suplr"."Suplr_Id"="Prod_Trans"."Suplr_Id"
WHERE ("Suplr"."Suplr_Nm"='Busch' OR "Suplr"."Suplr_Nm"='Gray Line' OR "Suplr"."Suplr_Nm"='Universal')
ORDER BY "Suplr"."Suplr_Nm