Rabbit,
Got your message on code tags.
Your solution worked.
The query I posted was originally part of a larger query linking this derived table to another table. When it didn't work, I stripped parts of it out to uncover the source of the error.
Thanks again. I can't tell you how frustrated I was with this!
User Profile
Collapse
-
Derived Table and Aggregate Function Not Working Together
I am trying to get this query using a derived table and an aggregate function to work in Excel Query:
Code:select purordcom.* from (select purOrdDet.PurAcct, sum(PurOrdDet.ExtCost),PurOrdDet.PONbr from AEMApp.dbo.PurOrdDet PurOrdDet group by PurOrdDet.PurAcct,PurOrdDet.PONbr) as PurOrdCom
No activity results to display
Show More
Leave a comment: