Data as a Column's or Table's Name
Now is the time to uncover what is perhaps the least known of the data naming problems: data hidden in a column's or even a table's name.
We had one example of this in Chapter 1. Remember the qty_2006_1 column name. Although this is a commonly seen mistake, it's a mistake nonetheless. We clearly have two ideas here, the quantity and the date. Of course, to be able to use just two columns, some work will have to be done regarding the keys—this is covered in Chapter 4. For now, we should just use elements like quantity and date in our elements list, avoiding representing data in a column's name.
To find those problematic cases in our model, a possible method is to look for numbers. Column names like address1, address2 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access