I'm trying to sort a query by a calculated field, but it's giving me a "field doesn't exist" error. Is there a special way of doing this?
My example (Coldfusion):
SELECT *, (#Now()# - target_completion) AS days_left FROM TJob ORDER BY days_left
target_completion is a date field. I can output "days_left" and it appears correct.
thanks in advance
My example (Coldfusion):
SELECT *, (#Now()# - target_completion) AS days_left FROM TJob ORDER BY days_left
target_completion is a date field. I can output "days_left" and it appears correct.
thanks in advance