If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > TRying to come up with relationships for tags

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-04-07, 12:32
rebels_mascot rebels_mascot is offline
Registered User
 
Join Date: Mar 2007
Location: Cork, Ireland
Posts: 4
TRying to come up with relationships for tags

Hey everyone,

Bit of a problem coming up with the relationships for some tags tables I'm using and was wondering if anyone could help please?

By tags I mean word's describing bookmarks, etc.

I plan on using tags in my web app for files and bookmarks, it's gonna be an online file & bookmark manager. The tables I've come up with are as follows:

tblTag
- tagName (pk)


//File info
tblFileTags
- tagName (pk)(fk)
- fileID (pk)(fk)

tblFile
- fileID(pk)
- userID (fk)
- ...

//Bookmark info
tblBookmarkTags
- tagName (pk)(fk)
- bookmarkID (pk)(fk)

tblBookmark
- bookmarkID (pk)
- userID (fk)
- ...

I've attached a picture of the object model so it may be clearer to see what I'm on about. I believe the relationship between the tblBookmarkTags and tblBookmark needs to be a many to many same with the files. I'm not too good with the database stuff, obviously a student , does the relationship shown in the attachment show 1 to many relationships? I'm using SQL Server and I was trying to show the multiplicity but I'm guessing the key symbol means 1 and the infinity symbol means many?

Thanks for any help, if I'm been too vague please let me know and I'll try to explain more.

TRying to come up with relationships for tags-tables.jpg
Reply With Quote
  #2 (permalink)  
Old 03-04-07, 16:08
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Baghdad, Iraq
Posts: 697
I'm guessing the key symbol means 1 and the infinity symbol means man

It does. Your model makes sense, as far as I can see.

Try putting some data in there manually and see what happens.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On