C
clk
Hi. I have a table (tblOrders). I would like to get the average date
of the last ten orders. So far this is what I have:
SELECT TOP 10 Avg(tblOrder.OrderEntered) AS AvgOfOrderEntered,
tblOrder.OrderReceived
FROM tblOrder
GROUP BY tblOrder.OrderReceived
ORDER BY Avg(tblOrder.OrderEntered) DESC;
What this gives me is the last ten orders but the AvgOfOrderEntered
field becomes a number field. Is it possible to just get the average
of a date field?
Any help is appreciated.
of the last ten orders. So far this is what I have:
SELECT TOP 10 Avg(tblOrder.OrderEntered) AS AvgOfOrderEntered,
tblOrder.OrderReceived
FROM tblOrder
GROUP BY tblOrder.OrderReceived
ORDER BY Avg(tblOrder.OrderEntered) DESC;
What this gives me is the last ten orders but the AvgOfOrderEntered
field becomes a number field. Is it possible to just get the average
of a date field?
Any help is appreciated.