Search code examples
mysqlbackenddatabase-administration

What is the need of cross tables in database?


I have been assigned to create the following tables database design

I want to know what is the use of SoftwareCategoryFeatureCross, SoftwareCategoryCross, SoftwareFeatureCross tables in the design. How should I manage these on the front end design.


Solution

  • So, this is how it's designed.

    • A software can have one or more categories
    • A Software can have one or more features
    • Each category can in turn have one or more features

    As far as Front End design is concerned, you can show all the softwares in a tabular form, with capabilities to filter by features and/or categories (or tag each software record with multiple features/categories). Clicking on any particular row will show all the categories and features for that software (using JOIN query).