Ok, *solution* is to CAST AS Varchar the result: SELECT CAST(AVG(km_gelaufen) AS VARCHAR) FROM laufdaten But i don't understand why i do have to cast the result ... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240201/405de080/attachment.htm>