0

in forwarders project I have a table named Ports

portid
portname

has a relationship 1 to many to quotation,

Quotationid
Qoutationdate
POL
POD
  • port of loading , port of discharge.

I want to show the user dropdownlist shows the portname in POL and POD and save portid in both fields

So,can foreign key be recurred in one row? , thanks in advance. And how to make it in MVC model

hassanzi
  • 191
  • 17

1 Answers1

2

Yes. Foriegn keys are nothing more than just ordinary columns/attribute, except they only contain references to other relations. There's nothing wrong in having recurring foreign keys in a tuple/row.

Maddy Blacklisted
  • 1,190
  • 1
  • 7
  • 17