I have two tables. Table A:
First_name Last_name score
Joo jojo 100
Jake Tim 30
Table B:
Name length
Joo 3
Jake 4
Jojo 4
Tim 3
The PK for A is join of FIrst and last name, for B pk is name. If I want to print something like this:
First_name Last_name score First_name_length Last_name_length
How should I fix from the following code:
Select A.*, B.length
From A,B
Where A.First_name=B.Name or A.Last_name=B.Name;
Thanks.
Update: I solved the problem with a little change from the answer below by @paqogomez. In access, with double inner join, one should use ( ), please check this post. Thank you all for your kindly help.