UNIT 3 Flashcards
All changes in the table structure are made by using the ________ command
ALTER TABLE
The ALTER TABLE command can also be used to add table constraints
ADD
You could also use the ALTER TABLE command to remove a column or table constraint.
DROP
You can alter an existing table by adding one or more columns.
Adding Column
We can change a column definition as long as there is either no data or the existing column fits into the new column definition.
Altering/Changing a Column
Occasionally, you might want to modify a table by deleting a column.
Dropping a Column
A table can be deleted from the database using the DROP TABLE command.
Deleting Table from Database
The ORDER BY clause is especially useful when the listing order is important to you.
ORDER BY
SQL’s DISTINCT clause produces a list of only those values that are different from one another.
DISTINCT