Hello all..here is my question..I have some sql.. SELECT AVG(CAST(d.chData AS float)) AS average , f.chEvalFieldText FROM fields_evaluation as feINNER JOIN eval_data AS d ON fe.intField_ID = d.intField_IDINNER JOIN fields as f ON fe.intField_ID = f.intField_ID WHERE fe.intAverage = '1' AND d.intCustom = '15'AND fe.intEval_ID = '1'Group By f.chEvalFieldText
My problem is that It is ordering the results by the FieldText var but I would actually like it to order it by the id associated with that var.. such as..SELECT AVG(CAST(d.chData AS float)) AS average , f.chEvalFieldText FROM fields_evaluation as feINNER JOIN eval_data AS d ON fe.intField_ID = d.intField_IDINNER JOIN fields as f ON fe.intField_ID = f.intField_ID WHERE fe.intAverage = '1' AND d.intCustom = '15'AND fe.intEval_ID = '1'Group By f.chEvalFieldTextOrder By f.intField_ID
but it tells me I can't because intField_ID isn't in an aggregate functionColumn name 'f.intField_ID' is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause.
How can I accomplish this?any Ideas?ThanksWillBAD SPELLERS OF THE WORLD UNTIE!!