SQL Commands
SQL Commands
Page 1 of 3
IT 402 | APS 2024
6. Update Data
UPDATE fishTable
SET feedQty = 20.00
WHERE name = “Goldfish”;
Page 2 of 3
IT 402 | APS 2024
-- Descending order by feedQty
SELECT * FROM fishTable ORDER BY feedQty DESC;
-- Drop a column
ALTER TABLE fishTable DROP COLUMN color;
Page 3 of 3