Hi all,
I have a table Called tblproduct
I am trying to create a query to first; concatenate fields then use the said field to group on in the same table...
Code:
Select City + '_' + State as Demograph, Sum(Product_Cost) as Total, SaleDate from tblProduct Groupby Demograph having count (Demograph) >5
I need the result as follow: concatenate the City and State, Count the number of products for the same saledate five of more and give me the total Cost.
It gives me an error stating that I can't concatenate a field because its not an aggregate field? Can anyone give me some guidance?
Maybe I'm missing a step
Thanks Slim