Emaze Auction: Delete Category
You did not choose the category to delete.
SELECT categoryID
FROM Category
WHERE categoryID <> #categoryID#
AND (categoryID1 = #categoryID#
OR categoryID2 = #categoryID#
OR categoryID3 = #categoryID#
OR categoryID4 = #categoryID#)
This category has at least one subcategory. You may not delete a category which has subcategories. You must delete the subcategories first.
SELECT lotID
FROM Lot
WHERE categoryID = #categoryID#
This category has at least one lot. You may not delete a category which has lots. You must delete the lots first.