This query will return you 0 records if no records exist in TableA:
Select strA, strB, intC, floatD, from tableA
However, this query returns 1 records with all columns as Null.
Select strA, strB, intC, floatD, sum(intC+intD) as sumE,
from tableA
So, to fix it, I did:
Select strA, strB, intC, floatD, sum(intC+intD) as sumE,
from tableA
having sumE is not null
I was wondering if there is a better way to do the same thing. Any in-built MySQL function that can do the same thing?