Closed Gezahegne closed 4 years ago
I agree that in general, naming conventions should be in place to make sure that FK / PK columns are similarly named. However, there may be cases (such as role-playing dimensions), where it will not be possible to use the same names. An alternative suggestion could be that a FK column should at least end with the name of the PK key:
'Date'[DateKey] (PK) 'Sales'[OrderDateKey] (FK) 'Sales'[DueDateKey] (FK)
@otykier I agree with you, I am working with data from CommCare which has cases and every case has a caseid column as a primary key which maybe a foreign key in a child case. So in the child case, the foreign key(caseid of the parent) is named indices_