I'm doing this project from school, about a supermarket database, and i have a restraint that i need to represent but i don't know how. Here is the restraint:
"Every product has a named category. There are no products without category and each product belongs to only one category.
There can be a category within another category (sub-category). Meaning, the categories form an hierarchy. Categories that are formed of sub-categories are named "Super Categories" and the others are just "Simple Categories".
One category can only belong to one Super Category.
The system must determine, for each Super Category, how many sub-categories there are."
I was thinking about doing a "IS A" relation, like this one: https://prnt.sc/gtzmuh
What do you think? How can I make this work?
Thanks in advance! :)