Question: Write a SQL ALTER TABLE statement that adds a classroom_id column to the college.students table. This new column should be an INTEGER data type with

Write a SQL ALTER TABLE statement that adds a classroom_id column to the college.students table. This new column should be an INTEGER data type with a max. size of 3 digits, UNSIGNED, it can be NULL and it should work as a FOREIGN KEY that uses as a reference the id column of the college.classrooms table.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!