Consider two tables transaction and category each having their own ID and information.
A transaction can have more than one category, I have read creating a 3rd table to link transaction and category using their IDs is best. But what would you call this table, assuming you would have many like it?
transactionCategories is the best I’m coming up with, is there anything better?
My naming scheme for these is to use the terminology of the domain for the interaction if there is one (eg. not
student_class, butenrollment). When there is no such terminology, then you fall back ontotransaction_categoryorcategory_transactionwhichever sounds better.Also, I always name my tables in the singular (e.g. student and not students).