Advertisements
Advertisements
Question
A SQL table ITEMS
contains the following columns:
INO, INAME, QUANTITY, PRICE, DISCOUNT
Write the SQL command to remove the column DISCOUNT
from the table.
Code Writing
Solution
ALTER TABLE ITEMS DROP COLUMN DISCOUNT;
Explanation:
Alter is a DDL command in SQL that allows us to change the table's structure.
shaalaa.com
Is there an error in this question or solution?