Show records with null values

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following query:
TRANSFORM Sum(VekeProduksjon.Rest) AS SumAvRest
SELECT VekeProduksjon.ProdVeke
FROM VekeProduksjon
WHERE (((VekeProduksjon.Produsert)=0))
GROUP BY VekeProduksjon.ProdVeke, VekeProduksjon.Produsert
ORDER BY VekeProduksjon.ProdVeke
PIVOT VekeProduksjon.Hovedgruppe;

The crosstab query gives the weekly backlog pr product group (Hovedgruppe).
If there is no backlog for a week, that week does not show up in the result.
I want the 'empty' weeks to show up, so the million $ question is: HOW CAN I
MAKE THE 'EMPTY' WEEK-RECORDS SHOW UP?

Thanks for any help.

PS: Answers in Norwegian or English accepted...
 
ort said:
I have the following query:
TRANSFORM Sum(VekeProduksjon.Rest) AS SumAvRest
SELECT VekeProduksjon.ProdVeke
FROM VekeProduksjon
WHERE (((VekeProduksjon.Produsert)=0))
GROUP BY VekeProduksjon.ProdVeke, VekeProduksjon.Produsert
ORDER BY VekeProduksjon.ProdVeke
PIVOT VekeProduksjon.Hovedgruppe;

The crosstab query gives the weekly backlog pr product group (Hovedgruppe).
If there is no backlog for a week, that week does not show up in the result.
I want the 'empty' weeks to show up, so the million $ question is: HOW CAN I
MAKE THE 'EMPTY' WEEK-RECORDS SHOW UP?

Add an IN phrase with a list of the weeks to the PIVOT
clause.

This corresponds to the Headings property in the QBE.
 
Back
Top