sql problem

Hi friends,

One problem i am facing ,

1> I am having two tables x and y

2> In both the tables (x and y)I am having an primary key User_ID for both the tables.

3> I am inserting the data like (name,adderss) in table x and in table yi am inserting (phone number) at the same time .

4> What my question is i want to retrieve the data (name,address and phone number) from both the table making the use of primary key.

please help ....

Message was edited by:

saamer

[528 byte] By [saamera] at [2007-11-26 23:41:01]
# 1
saamer,This is not the right place. This should be posted in SQL Forums.In table x, User_ID is a primary key.In table y, User_ID should be a foreign key.To get the name,address and phone numbers from the tables, use inner join.
it_senthilkumara at 2007-7-11 15:08:16 > top of Java-index,Java Essentials,Java Programming...
# 2
thanks
saamera at 2007-7-11 15:08:16 > top of Java-index,Java Essentials,Java Programming...