473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

SQL beginner question - JOIN / relational database.

CAH
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

Sep 29 '05 #1
5 1446
Try news:comp.databases.mysql

--
E. Dronkert
Sep 29 '05 #2
CAH
I will do just that, thanks for tip.

Ewoud Dronkert wrote:
Try news:comp.databases.mysql

--
E. Dronkert


Sep 29 '05 #3
CAH

Ewoud Dronkert wrote:
Try news:comp.databases.mysql


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

Sep 29 '05 #4
CAH wrote:
Ewoud Dronkert wrote:
Try news:comp.databases.mysql


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.


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
Sep 29 '05 #5
CAH

Ewoud Dronkert wrote:
CAH wrote:
Ewoud Dronkert wrote:
Try news:comp.databases.mysql
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.


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


ahaaa :-D
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


Thanks, for the tip and the links.

Cah

Sep 29 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dave | last post by:
I have 2 tables, one with names, and another with addresses, joined by their CIVICID number (unique to the ADDRESSINFO table) in Oracle. I need to update a field in the NAMEINFO table for a...
0
by: Stylus Studio | last post by:
DataDirect XQuery(TM) is the First Embeddable Component for XQuery That is Modeled after the XQuery API for Java(TM) (XQJ) BEDFORD, Mass.--Sept. 20, 2005--DataDirect Technologies...
2
by: terence.parker | last post by:
I am often faced with the dilemma of whether to use a JOIN query across three tables in order to grab a bunch of results - or whether to create another table to represent what I want. The latter is...
6
by: davegb | last post by:
I'm trying to create a self-join table to show the relationship between employee and supervisor. In another thread, I was advised to create a SupervisorID in the employee table, a separate...
33
by: Steve | last post by:
One of our clients recently upgraded their Office version to 2003. When they tried to run our program (written in Access 2000), they ended up with the wrong data. My coworker and I have tested this...
4
by: Jean-Claude | last post by:
Hi, which is the faster query ? (of course, in my case the real queries are more complex) 1/ select * from file1 a join file2 b on b.key=a.key where b.data=123 and b.name='TEST'
3
by: Zeff | last post by:
Hi all, I have a relational database, where all info is kept in separate tables and just the id's from those tables are stored in one central table (tblMaster)... I want to perform a query, so...
1
by: teser3 | last post by:
I have 3 Access 2003 tables: TableMain MID PO TE INFO 1 2 3 ABC 2 2 1 EREER 3 1 3 OIUOI 4 3 3 PERE 5 2 2 DFE
6
by: BD | last post by:
Hi, all. I need to enforce a one-to-many relationship on 2 tables, with a join table. Say the join table contains account information. It has cust_no and acct_no. Both cust_no and acct_no are...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.