Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help me calculate standard deviation for more than one record at a time 1

Status
Not open for further replies.

keun

Technical User
Jul 15, 2005
262
US
When I do what I think should work, I get an error:

You tried to execute a query that does not include the specified expression "MealID"

Code:
SELECT tblMealDetail.name, StDev([SumOfqty]) AS StDev
FROM tblMealDetail;

This is what my data looks like:

"name" "MealID""SumOfqty"
"abe" "A001" 9.00
"abe" "A002" 10.00
"abe" "A003" 8.00
"jen" "A004" 8.00
"jen" "A005" 6.00
"jen" "A006" 9.00
"lisa" "A007" 7.00
"lisa" "A008" 7.00
"lisa" "A009" 7.00
"mike" "A010" 6.00
"mike" "A011" 8.00

If I filter the source to just one "name" I can run the stDev but I cannot get the stDev for each "name" all in one shot.

I joined this forum in 2005. I am still a hack.
 
That's it! Very interesting and thanks!

I joined this forum in 2005. I am still a hack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top