John Clegg <john.cl...@nailsea.net> wrote:
> I have a table Members with 896 rows and a text field "Year2012". It
> contains "Paid" 156 times, "Comp" 13 times and the rest are null (confirmed
> in sqlitebrowser as "empty")
> 
> Back in the olden days when this table was in Access, select
> count("Year2013") from Members used to return 169. In LibreOfiice with the
> data stored in embedded HSQL it returns 169. In LibreOffice connecting to
> sqlite3 it returns 896.
> 
> Any ideas please?

At some point during the conversion from Acess to SQLite, NULL values turned 
into empty strings. See what this query returns:

select sum(Year2012 is null) CountOfNulls, sum(Year2012 = '') CountOfEmpty from 
Members;

-- 
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to