Ayudadme!!!
no sé que falla en esta sentencia:
create table
ventas (CIFC numeric(4)not null,DNI varchar(9)not null,CodCoche numeric(3)not null,
color varchar(8),
primary key(CIFC,DNI,CodCoche),
foreign key(CIFC)references concesionario(CIFC),
foreign key(DNI)references clientes(DNI),
foreign key(CodCoche)references coches(CodCoche));
Me salta el siguiente error:
Error code 1005, SQL state HY000: Can't create table 'venta_coches.ventas' (errno: 150)