Hi everyone.
The question is about an expression in the Date's book (8th edition, page 199):
Code:
EXTEND S
ADD COUNT ((SP RENAME S# AS X) WHERE X = S#)
AS NP
and specially the part: "COUNT ((SP RENAME S# AS X) WHERE X = S#)"
How this calculates the number of shipments for each supplier
separately?
I think the condition X = S# is true for all rows, and the COUNT function should count all rows, unless it resets to 0 each time!
Thank you all for any comment.