Formated output from Acces2000 - SQL
Greetings,
i have a few querries like the one below.
SELECT [Statistics].[Year], [Statistics].[RoomType],
SUM([Preis]*[Tage])/SUM([Tage]) AS [Avg Of Preis]
FROM Statistics
WHERE [Statistics].[RoomType]='4'
GROUP BY [Statistics].[Year], [Statistics].[RoomType]
ORDER BY [Statistics].[RoomType];
how can I get an output for the field
SUM([Preis]*[Tage])/SUM([Tage]) AS [Avg Of Preis]
as an international format 00.00 (only 2 numbers after the decimalpoint?) in the moment I get n numbers after the DP
many thanks
Manfred
Ok, I read your code a little slower ...
I know a solution:
You have to put of course the result from SUM([Preis]*[Tage])/SUM([Tage]) AS [Avg Of Preis] to somewhere. It must be a field, correct? Format the result-field itself, this works for sure.
If you put the code here I can look into it. Should be a 5 minute work.
Franky