Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Newbie question about design

Newbie question about design

From: <idaku2_at_gmail.com>
Date: 1 May 2007 02:29:11 -0700
Message-ID: <1178011751.705089.294290@n76g2000hsh.googlegroups.com>


Hi all

I don't have much experience with databases, so any help is appreciate. I have a class Link:

class Link {
  Collection<Tag> tags;
  ...
}

so, when user creates Link, she or he can add whatever number of tags. In database, I would have table Link, of course, and another table Tag. Table Tag would have three columns: id, tag name, and the foreign key which is id of a link (below is URL). For example:

table Tag:
id tag link
1 python http://www.python.org
2 python http://www.google.com

Is this good approach? Received on Tue May 01 2007 - 04:29:11 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US