Getting the status of every product in the database using MySQL (Magento 1)

The following MySQL query returns the status of every product in the Magento database.

Status 1: active Status 2: not active

Deleting upsell products directly in the database (Magento 1)

Once saved, upsell products can not be removed again easily. Using the following MySQL script, you can delete Magento upsell products from the database.