Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft SQL Server > Is this a corre...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 11113 of 11517
Post > Topic >>

Is this a correct table structure for my database?

by sherifffruitfly <sherifffruitfly@[EMAIL PROTECTED] > Jun 6, 2008 at 02:18 PM

Hi all,

I'm making an log-viewer app for a game that I play - the game has
instant messaging in-game, and stores the chat logs from each of the
players' chats locally in txt files. I'll be using a sql compact
database embedded in the app for the storage.

The structure I've got so far is simple - just two tables:

tblChatChannels
  (key) colChannelId
  (key) colChannelOpenedTime
  colChannelName
  colChannelSubscriber


tblChats
  (key) colChatTime
  (key) colChannelId
  colChatSpeaker
  colChatBody

The main thing I'm confused about is the fact that my "many" table -
tblChats only has 1/2 of the "one" table's key as foreign. Is this a
kosher thing to do?


Thanks for any thoughts,

cdj
 




 2 Posts in Topic:
Is this a correct table structure for my database?
sherifffruitfly <sheri  2008-06-06 14:18:58 
Re: Is this a correct table structure for my database?
Erland Sommarskog <esq  2008-06-06 22:03:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:04:32 CST 2008.