At the moment I have the following query: SELECT Minimum , Maximum , Maximum - Minimum AS Range FROM ( SELECT MIN(totalUsed) AS Minimum , MAX(totalUsed) AS Maximum FROM quotes )
I like this better as: SELECT MIN(totalUsed) AS Minimum , MAX(totalUsed) AS Maximum , MAX(totalUsed) - MIN(totalUsed) AS Range FROM quotes Or is there a reason to go for the second query, or even a total different query? -- Cecil Westerhof _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users