I have 2 table (FirstTable & SecondTable). My FirstTable is header table and SecondTable is detail table, but FirstTable has complex primary key. How I can have a reference in my SecondTable to first Table that be NORMAL and best choice.
There are at least three ways to do this in your case. The way you choose depends on information you haven't told us yet.
Think hard before you choose. The fact that you're asking such a very basic question suggests that you're likely to make mistakes in the implementation. (That's an observation, not a criticism.) Work on a scratch copy of your database first. Expect to destroy it.
foreign key (Key_F1, Key_F2)
references FirstTable (Key_F1,
Key_F2)
.foreign key (Key_F1) references
FirstTable (Key_F1)
. Of course this
will only work if values in
FirstTable.Key_F1 are unique.