M
Mike M.
I have an art gallery database query that looks for sales of items but
returns not only the final sale , but all instances of times that item was
entered in a show but not sold. I.E., if an item finally sells in show 4,
the query shows results for shows 1, 2, 3, and 4, since it was entered in
all 4 shows.
I tried to incorporate a where statement into the SQL statement to limit the
show to max(ShowId) because it is always the last time shown when the actual
sale occurs, but I can't seem to get the syntax right, and I don't know if
I'm on the right track to begin with.
Any ideas would be helpful.
Mike
returns not only the final sale , but all instances of times that item was
entered in a show but not sold. I.E., if an item finally sells in show 4,
the query shows results for shows 1, 2, 3, and 4, since it was entered in
all 4 shows.
I tried to incorporate a where statement into the SQL statement to limit the
show to max(ShowId) because it is always the last time shown when the actual
sale occurs, but I can't seem to get the syntax right, and I don't know if
I'm on the right track to begin with.
Any ideas would be helpful.
Mike