i dont know if i am doing right or wrong, please dont judge me... what i am trying to do is that if a record belongs to parent then it will have parent id assosiated with it.. let me show you my table schema below.

i have two columns ItemCategoryID & ItemParentCategoryID
Let Suppose a record on ItemCategoryID =4 belongs to ItemCategoryID =2 then the column ItemParentCategoryID on ID 4 will have the ID of ItemCategoryID.
I mean a loop with in its own table..
but problem is how to run the select query :P I mean show all the parents and childs respective to their parents..