Go Back   CodingForums.com > :: Server side development > MySQL > Other Databases

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 2.50 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-28-2006, 07:01 PM   PM User | #1
chelvis
Regular Coder

 
Join Date: Jun 2002
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
chelvis is an unknown quantity at this point
Creating Relationship between tables in SQL Server 2000

I have created a database which has the following tables:
Customers, Orders, Products, Categories, OrderDetails, ShoppingCart.

I have created the individual tables and set the column name (eg: orderID, orderName...) and the datasypes for them.

How do I create the relationship between the tables with SQL Server 2000?
I searched in google but didnt find any good tutorial.

I think you have to first create the relationship otherwise the tables wont be updated automatically is it? For example if I update a OrderDetails table then the Orders table should update automatically etc.

Please help!
chelvis is offline   Reply With Quote
Old 08-05-2006, 02:49 AM   PM User | #2
prototyp3
New Coder

 
Join Date: Aug 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
prototyp3 is an unknown quantity at this point
did you mean you want to join the 2 tables???

try inner join in your sql syntax
http://www.w3schools.com/sql/sql_join.asp
prototyp3 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:11 AM.


Advertisement
Log in to turn off these ads.