TrainityTrainity
All ideas

Doubt on Foreign key MySQL masterclass

Sir i don't know where i am going wrong, but i am not able to add foreign key constraint for already existing table. I am sure that syntax is correct wothout any errors, but i am not getting whether i have used the foreign key constraint correctly are not. Sir please help me in understanding foreign key concept more clearly. I have attached the ss marking the syntax and error in output area.