Here is the query I have attempted:
create table login_user
(
user_id int(3) AUTO_INCREMENT,
password varchar(10),
role varchar(10),
no_ic varchar(12),
primary key(user_id),
CONSTRAINT fk_product
FOREIGN KEY (no_ic) REFERENCES supplier(no_ic),
CONSTRAINT fk_customer
FOREIGN KEY (no_ic) REFERENCES customer(no_ic)
);
I have tried this query but it fails.