Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone understand this metadata db structure?

Status
Not open for further replies.

Puc

Programmer
Mar 12, 2001
10
GB
I need some help building a metadata database to associate metadata with content.

I have been given a table structure for the main tables shown below but just don't understand it.

METADATA TABLE and data
ID | KEYWORD
1 | top
2 | dog
3 | car

JOIN TABLE STRUCTURE and data
ID | ParentID | ChildID | RelID
1 | - | 1 | -
2 | 1 | 2 | 1
3 | 2 | 3 | 2
4 | 2 | 3 | 2

This would apparently create a structure like:

top
|
|- dog
| |- car
|
|- car

Anyone know how this join table works????? Help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top