create table Bands(
band_ID int NOT NULL AUTO_INCREMENT,
band_name varchar(20) NOT NULL,
band_year int NOT NULL,
PRIMARY KEY (band_ID)
);
create table Albums(
album_ID int NOT NULL AUTO_INCREMENT,
album_name varchar(20) NOT NULL,
band_name varchar(20) NOT NULL,
PRIMARY KEY (album_ID),
FOREIGN KEY (band_name) REFERENCES Bands(band_name)
);
Can someone please help me with my MySQL statement? I thought a first it was conflicting types buts that's not the case. I'm not sure what's causing the error