I have two tables with data ...
Exchange
EXCID DESCRIPTION
XLON London
XMAD Madrid
ExchangeMap
CODEID MAPID ISSUER NAME
100 55 REUTERS L
101 55 MIC XLON
103 56 REUTERS MA
104 56 MIC
I'd like to show the relationship between the two tables. Without the issuer on my exchange table can I have a foreign key where instead of a field you use a constant string?
i.e. Exchangemap.issuer='MIC', Exchangemap.name=Exchange.EXCID
Exchange
EXCID DESCRIPTION
XLON London
XMAD Madrid
ExchangeMap
CODEID MAPID ISSUER NAME
100 55 REUTERS L
101 55 MIC XLON
103 56 REUTERS MA
104 56 MIC
I'd like to show the relationship between the two tables. Without the issuer on my exchange table can I have a foreign key where instead of a field you use a constant string?
i.e. Exchangemap.issuer='MIC', Exchangemap.name=Exchange.EXCID