getting count value 1 in very first time but the field is null value, when using count query and If i am inserting any data into this field then count value remains 1 and then again i insert next data into this then it counts 2 after that it works fine but in very first time it counts 1 despite the field has null.
int notesCount=0;
(SELECT COUNT("+Constants.NOTES+") FROM (select distinct "+Constants.NOTES+" from "+ Constants.TABLE_NAME_CONTACTS+ ")) AS notesCount