SQLite Forum

Virtual Table Error
Login
It seems that always the x value from the last line of the CSV file is returned for `SELECT MAX(x) FROM text;`. If you change the SQL command to `SELECT MIN(x) FROM text;`, you get the same result as for the MAX function.

Obviously, there is something going wrong on evaluating the aggregate function MIN or MAX.