No, I don't want one record per order number for each date (don't think I said this before?). What I want is "for each OrderDate ..... a count of each unique [order #] value, " (which I did say in my original post!). I've confused myself a bit with this though, so not surprising if I've confused...