<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<blockquote type="cite"
cite="mid:92e4d190-64fa-43e3-a105-9c77d9dd0595@gmx.de">
<p>If i execute: "SELECT CAST(AVG(km_gelaufen) <b>AS REAL</b>)
FROM laufdaten" the known problem of integer only shows up
again.</p>
<p>BUT:</p>
<p>If i execute this "SELECT CAST(AVG(km_gelaufen) AS REAL) FROM
laufdaten " in SQliteStudio it works as it should.</p>
</blockquote>
Ok then it is clear that SQLite produces result as expected<br>
<br>
<blockquote type="cite"
cite="mid:92e4d190-64fa-43e3-a105-9c77d9dd0595@gmx.de">
<p>Is DBgrid or Zeos Access components the culpit? I don't know.</p>
</blockquote>
Do you use Zeos components not SQLdb (TSQLQuery)?<br>
Can you test datatype of TField created at runtime?<br>
For example place somewhere after dataset is Open-ed something like:
ShowMessage(Fieldtypenames[Query1.Fields[0].DataType]);<br>
<br>
L.<br>
<br>
</body>
</html>