Your supervisor has asked you to remove a discontinued product from your company's inventory database. By doing this, it ensures that the inventory list remains current and prevents the sale of items no longer offered. What is the proper way to permanently delete this product from the database?
You selected this option
Manually erase the product's information from the database management system interface.
You selected this option
Apply a drop command to the product's table to remove the discontinued product.
You selected this option
Use an update command to change the product's status to 'discontinued' in the inventory table.
You selected this option
Issue a delete command targeting the product's unique identifier to remove its record from the inventory table.
To remove a record from a database, you should issue a delete command, ensuring that you specify the record accurately via its unique identifier, often a primary key. It is important not to confuse 'delete' with 'drop,' which removes entire tables, or 'update,' which modifies existing records without deleting them.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a unique identifier in a database?
Open an interactive chat with Bash
What is the difference between a delete command and a drop command?