Connecting Tech Pros Worldwide Help | Site Map

SQL beginner question - JOIN / relational database.

  #1  
Old September 29th, 2005, 10:15 AM
CAH
Guest
 
Posts: n/a
Hi

I am going to make two tables that each have a Priamary ID called User
ID, and they should relate two one another. Do i have to make this
clear when building the tables, or should I just give them the same
Coloum name, and then retrive data from the two tables with some kind
of JOIN call?

Thanks for any help.

Cah

  #2  
Old September 29th, 2005, 10:55 AM
Ewoud Dronkert
Guest
 
Posts: n/a

re: SQL beginner question - JOIN / relational database.


Try news:comp.databases.mysql

--
E. Dronkert
  #3  
Old September 29th, 2005, 11:15 AM
CAH
Guest
 
Posts: n/a

re: SQL beginner question - JOIN / relational database.


I will do just that, thanks for tip.

Ewoud Dronkert wrote:[color=blue]
> Try news:comp.databases.mysql
>
> --
> E. Dronkert[/color]

  #4  
Old September 29th, 2005, 11:25 AM
CAH
Guest
 
Posts: n/a

re: SQL beginner question - JOIN / relational database.



Ewoud Dronkert wrote:[color=blue]
> Try news:comp.databases.mysql[/color]

Sorry can not do just that, my internet provider does not list it as
yet. So if anybody knows the answer, ill apreciate a posting here.

Cah

  #5  
Old September 29th, 2005, 12:25 PM
Ewoud Dronkert
Guest
 
Posts: n/a

re: SQL beginner question - JOIN / relational database.


CAH wrote:[color=blue]
> Ewoud Dronkert wrote:[color=green]
>> Try news:comp.databases.mysql[/color]
>
> Sorry can not do just that, my internet provider does not list it as
> yet. So if anybody knows the answer, ill apreciate a posting here.[/color]

Try news:alt.comp.databases.mysql :)

If the columns have the same name, a JOIN without ON clause will do. No
need to define anything beforehand, unless you want to have the db keep
track of referential integrity. Also see
http://dev.mysql.com/doc/mysql/en/ex...eign-keys.html

--
E. Dronkert
  #6  
Old September 29th, 2005, 06:25 PM
CAH
Guest
 
Posts: n/a

re: SQL beginner question - JOIN / relational database.



Ewoud Dronkert wrote:[color=blue]
> CAH wrote:[color=green]
> > Ewoud Dronkert wrote:[color=darkred]
> >> Try news:comp.databases.mysql[/color]
> >
> > Sorry can not do just that, my internet provider does not list it as
> > yet. So if anybody knows the answer, ill apreciate a posting here.[/color]
>
> Try news:alt.comp.databases.mysql :)[/color]

ahaaa :-D
[color=blue]
> If the columns have the same name, a JOIN without ON clause will do. No
> need to define anything beforehand, unless you want to have the db keep
> track of referential integrity. Also see
> http://dev.mysql.com/doc/mysql/en/ex...eign-keys.html[/color]

Thanks, for the tip and the links.

Cah

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
a player team tables design? Alan Zhong answers 2 July 20th, 2005 05:41 AM