The product_rate_id
column in the following table needs to be referenced from another table as foreign key.
However, the product_rates
TABLE must contain duplicate values for product_rate_id
. (Legacy system, don’t ask why)
CREATE TABLE product_rates
(
row_id INT IDENTITY(1,1) NOT NULL,
product_rate_id INT NOT NULL,
START_DATE DATETIME NOT NULL,
end_date DATETIME,
unit_rate NUMERIC(18,6)
)
So the question is: can you have a column which is referenced as a foreign key by another table contain duplicate values? Is there any work around for this?