BigRed1212
Technical User
I have payments to entities over years. Not each entity gets a payment in each year.
For spreadsheet purposes I like to see an entry and a value even if no payment is made. This reassures me that the entity wasn't overlooked.
Simplified example:
For database purposes, however, as I am trying to think good thoughts about normalization, I wonder if I ought to drop the rows with zero for a payment. We're not talking huge numbers of records or a major commercial application, I'm more just interested in what is best practice.
If one replaced the zero payments with blanks (functionally the same thing- no payment) I would view the database as not rectangular and not normalized and drop those rows.
But like I say, I sort of like the zeros. If the records were just missing instead, I would feel like I didn't know if the payment amounts were really zero or if the data were actually really missing.
For spreadsheet purposes I like to see an entry and a value even if no payment is made. This reassures me that the entity wasn't overlooked.
Simplified example:
Code:
entity year payment
1 1 10
2 1 20
3 1 0
4 1 10
1 2 20
2 2 0
3 2 10
4 2 20
1 3 0
2 3 10
3 3 15
4 3 10
For database purposes, however, as I am trying to think good thoughts about normalization, I wonder if I ought to drop the rows with zero for a payment. We're not talking huge numbers of records or a major commercial application, I'm more just interested in what is best practice.
If one replaced the zero payments with blanks (functionally the same thing- no payment) I would view the database as not rectangular and not normalized and drop those rows.
But like I say, I sort of like the zeros. If the records were just missing instead, I would feel like I didn't know if the payment amounts were really zero or if the data were actually really missing.