Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started