Question: The Movie table has the following columns: ID - integer, primary key Title - variable - length string Genre - variable - length string RatingCode
The Movie table has the following columns:
ID integer, primary key
Title variablelength string
Genre variablelength string
RatingCode variablelength string
Year integer
Write ALTER statements to make the following modifications to the Movie table:
Add a Producer column with VARCHAR data type max chars
Remove the Genre column.
Change the Year column's name to ReleaseYear, and change the data type to SMALLINT.
The answers provided produced no output. I am not sure what is wrong with this code?
ALTER TABLE Movie ADD Producer VARCHAR;
ALTER TABLE MOVIE DROP COLUMN Genre;
ALTER TABLE Movie
CHANGE COLUMN Year ReleaseYear SMALLINT;
Can you please help
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
