I am totally new to SQL. I have a simple select query similar to this:
SELECT COUNT(col1) FROM table1
There are some 120 records in the table and shown on the GUI. For some reason, this query always returns a number which is less than the actual count.
Can somebody please help me?
You might have some null values in col1 column. Aggregate functions ignore nulls. try this