Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

joins

Status
Not open for further replies.

nat35

Programmer
Nov 10, 2002
86
AU
Hi there,
I have 2 tables.Table1 has id_num 18 and 9.Table2 has only 9 I want both id_num 18 and 9 from Table1 link to id_num 9 from Table2

thanks
natalia
 
try:

SELECT t1.id_num From Table1 t1
Left Join Table2 t2
ON t1.id_num=t2.id_num

-VJ

 
thank you for replay but it is not want i want

Table1 Table2
18 Mum 9 A
9 dad 9 b

I want the result

18 Mum A
18 Mum b
9 Dad A
9 Dad b

is it possible?
 
No worries ,I ve worked out how to do it
thanks
Nat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top