I usually use the same categories table for subcategories and then just add a CategoryParentID field to point to the parent category.
Then you can use 0 as the parent for the main categories and the ID of the category for any sub categories. When inserting a sub category just add a select list to the page that selects all categories with parent = 0 and insert that selected value into the CategoryParentID field.