Instruction
Well done! Just two more exercises!
Exercise
A furniture manufacturer needs a table with information about the pieces of furniture it produces. The table, named furniture, has already been created and contains the columns id, name, and manufactured (a date column). However, it requires some changes.
Make the following alterations to table furniture:
- Rename column
manufacturedtoproduced_on. - Delete column
name. - Add column
category, which should contain a text value of up to 32 characters.
Stuck? Here's a hint!
Type:
ALTER TABLE furniture RENAME COLUMN manufactured TO produced_on; ALTER TABLE furniture DROP COLUMN name; ALTER TABLE furniture ADD COLUMN category varchar(32);



