create table A (ticker varchar(255), more_data varchar(255), primary
key (A_ID)) type=InnoDB;
create table B (more_data varchar(255), primary key (B_ID))
type=InnoDB;
create table C (A_ID bigint not null, B_ID bigint not null, more_data
varchar(255), primary key (C_ID)) type=InnoDB;
I have a requirement that for table C, the combination of A.ticker and
B_ID must be unique. I've struggled to come up with a ticker table and
a few other ideas, ie (A ... unique ([b_id], [ticker_id]) , but that
doesn't seem right as ticker_id would need to be in both A and C.
Nothing seems right. Any ideas?
Robert