Consider the fowling structure:
CREATE TABLE [tblEntityLogs]
(
[EntityLogId] [int] IDENTITY(1,1) NOT NULL,
[EntityCountCurrent] [float] NOT NULL,
...
)
When executing the query underneath I get an empty row returned...
DECLARE @N FLOAT
SET @N = 666
SELECT ISNULL(tblEntityLogs.EntityCountCurrent, @N) AS EntityCountCurrent
FROM tblEntityLogs
And if I do:
SELECT tblEntityLogs.EntityCountCurrent FROM tblEntityLogs
The same thing happens. I don't even get NULL
back.
Note: The table is empty.