New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Separate primary category into its own table, refer to primary category name by id from subcategories table.
I hope I got you right, sorry if this isn't what you were looking for.