D
Don Maclean
I have a query that correctly returns 149 rows. I immediately run it
again and get 148 rows.
About 2/3 of the time, one row is missing - but its different row each
time. A couple of times, more than one row was missing. The underlying
table remains the same and I am the only user when.
How can this happen?
SELECT e.[Updated WBS],
(SELECT Sum(b.[US$ AMOUNT]) FROM Expenses AS b
WHERE b.[G/L acct] ="70422000" AND b.[Updated WBS] = e.[Updated WBS])
AS 70422000Direct,
(SELECT Sum(b.[US$ AMOUNT]) FROM Expenses AS b
WHERE b.[G/L acct] ="70423000" AND b.[Updated WBS] = e.[Updated WBS])
AS 70423000Direct,
(SELECT Sum(b.[US$ AMOUNT]) FROM Expenses AS b
WHERE b.[G/L acct] ="70600000" AND b.[Updated WBS] = e.[Updated WBS])
AS 70600000Direct,
(SELECT Sum(b.[US$ AMOUNT]) FROM Expenses AS b
WHERE b.[G/L acct] ="77051000" AND b.[Updated WBS] = e.[Updated WBS])
AS 77051000Direct,
Sum(e.[US$ AMOUNT]) AS SumOfDirect
FROM Expenses AS e
GROUP BY e.[Updated WBS]
HAVING (((e.[Updated WBS]) Not Like "888*"));
The full query has more subquerys of exactly the same form.
I'm utterly baffled by this behaviour anyone know what could be causing
this?
Thanks.
again and get 148 rows.
About 2/3 of the time, one row is missing - but its different row each
time. A couple of times, more than one row was missing. The underlying
table remains the same and I am the only user when.
How can this happen?
SELECT e.[Updated WBS],
(SELECT Sum(b.[US$ AMOUNT]) FROM Expenses AS b
WHERE b.[G/L acct] ="70422000" AND b.[Updated WBS] = e.[Updated WBS])
AS 70422000Direct,
(SELECT Sum(b.[US$ AMOUNT]) FROM Expenses AS b
WHERE b.[G/L acct] ="70423000" AND b.[Updated WBS] = e.[Updated WBS])
AS 70423000Direct,
(SELECT Sum(b.[US$ AMOUNT]) FROM Expenses AS b
WHERE b.[G/L acct] ="70600000" AND b.[Updated WBS] = e.[Updated WBS])
AS 70600000Direct,
(SELECT Sum(b.[US$ AMOUNT]) FROM Expenses AS b
WHERE b.[G/L acct] ="77051000" AND b.[Updated WBS] = e.[Updated WBS])
AS 77051000Direct,
Sum(e.[US$ AMOUNT]) AS SumOfDirect
FROM Expenses AS e
GROUP BY e.[Updated WBS]
HAVING (((e.[Updated WBS]) Not Like "888*"));
The full query has more subquerys of exactly the same form.
I'm utterly baffled by this behaviour anyone know what could be causing
this?
Thanks.