I dont know why i keep getting getting the error
Data is Null. This method or property cannot be called on Null values.
heres my query that will get the sum of all totalovertime between february 18 2016 and february 23 2016 for employeenumber 1:
select sum(totalovertime) as totalovertime from timeinout where employeenumber = 1 and dateofin between 2016-02-18 and 2016-02-23
heres my table:
employeenumber | totalovertime | dateofin
1 | 1 | 2016-02-19
1 | 1 | 2016-02-22
the query should return 2 as totalovertime, but the error keeps appearing
but when i do:
select sum(totalovertime) from timeinout where employeenumber = 1
this query returns 2 and thats correct.
dateofin between '2016-02-18' and '2016-02-23'