How would I structure database the best?

How to design category database structure?

  • Answer:

    Lay out a table as follows (taken from eBay cat structure): Category1 Category2 Category3 etc. Art Digital Art Digital Art Art Drawings Antique Art Drawings Modern Art Drawings Contemporary That way, anytime you add a leaf category, you specify the full category structure. And then it's easy given a category to get all it's subcats.

Roye at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Lay out a table as follows (taken from eBay cat structure): Category1 Category2 Category3 etc. Art Digital Art Digital Art Art Drawings Antique Art Drawings Modern Art Drawings Contemporary That way, anytime you add a leaf category, you specify the full category structure. And then it's easy given a category to get all it's subcats.

Big Poppa

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.