Hello,
First off, I apologize if this question is in the wrong section, but I see no "beginner" area.
My question is relatively simple though: if I have many different codes/descriptions that my application needs, is it better to keep them all in one table, or split them into multiple ones?
At my previous job, we had one large "code" table for fixed values. Each entry had an id, type, code, and description. We seperated when to use them via the type (for example, purchase order statuses would have a type 'poStat' etc.). At the job prior, we gave each type its own table.
From what I've seen, the first is easier to model and maintain, but I assume that we take a performance hit from merging them all together.
Is there any "best practice" guide to approaching this? Should I always keep them seperate tables, merge them when under a certain number, or just keep them together.
Thanks.