I have a products table that contains a FK for a category, the Categories table is created in a way that each category can have a parent category, example:
Compu
My answer to another question from a couple days ago applies here... recursion in SQL
There are some methods in the book which I've linked which should cover your situation nicely.