Icon View Thread

The following is the text of the current message along with any replies.
Messages 31 to 32 of 32 total
Thread 2.30b2 has fixed my issue.
Mon, Jan 21 2019 4:23 AMPermanent Link

Matthew Jones

Roy Lambert wrote:

>  I like the idea of null meaning "we haven't put anything in here yet"

Indeed - that's what it can be used to mean. The integers are a better example too - if you have three transactions on an account, one is a purchase, one is a refund, and the other is a change of address. Each can have a money paid value. 100, -15, and NULL. Now you can be clear about what you have in the way of financial transactions, without having to be clever about having another column to control whether you include the value or not. I'd hope (and am pretty sure it does) that SQL would average only two rows there, for example.

NULL isn't a magic anything, but it makes sense to have it as an option. And indeed, defining a column with a default of an empty string is fine really - why not?  You are sort of ignoring the NULLable aspect, while keeping it as an option for other columns. Turning off NULLs means you lose that option.

--

Matthew Jones
Mon, Jan 21 2019 7:14 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Matthew


Please note that at no time (to the best of my recollection) have I said I don't like the concept of NULL. I'm just arguing against using it for the wrong things (in my view) and pretending an emptystring exists.

Roy Lambert
« Previous PagePage 4 of 4
Jump to Page:  1 2 3 4
Image