You should have what links the two tables together, which is common key. Something like Idthe following example:
Table 1
Id Fname
--------
1 Roger
2 Pete
Table 2
Id Lname
--------
1 Federer
2 Sampras
In this case, you can get the full name as:
SELECT Fname, Lname from T1,T2 where T1.Id = T2.Id;
source
share