Reputation: 7053
I am looking at a way to establish a few tables in my database.
I want to connect every user that logs in to the comments that they leave. There should be 2 or 3 tables. But I have no understanding on how to achieve this. Does anyone know where I can read and learn about how to build table relationships effectively?
Upvotes: 0
Views: 1785
Reputation: 171
You should understand how 'joins' work. They will define how you access your data later.
Check out this site: http://www.sql-tutorial.net/SQL-JOIN.asp
Even if you don't have MS Access, this is a good tutorial for getting a handle on creating tables and defining relationships.
Also, "SQL for Dummies" is a great reference to have. Get a used copy on Amazon.
Upvotes: 2
Reputation: 18664
Here's a walk-through for SQL Server 2005: http://dotnetguts.blogspot.com/2007/10/basics-of-sql-server-2005.html
Upvotes: 1