Hello, in mysql, how do you count the non empty cells in one row? And I want to count the cells between certain columns only, say between columns 3-10. not all the columns... again, in that row only.
you can use a case statement, but you need 1 case statement for each column you want to look at.
I suggested something similar using IF() over here. Do you think that would work?
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
I suggested something similar using IF() over here. Do you think that would work?
Functionally, it should be equivalent. Performance wise, I can't comment which would be faster. IFNULL wouldn't apply in this case since it returns expr1 if it's not null.
Bookmarks