Category
String id;
String name;
boolean enabled;
Product
String id;
String name;
boolean enabled;
int categoryId;
I need to search for all of the enabled categories that actually have products and those products should have enabled set to true.
I am not really that adept at SQL queries so could someone please point me to the right direction?
Here it is:
I am not sure about the boolean values representation in your DB, assuming it is 1/0