Hello,
although it seems like very easy to solve, I didn't found the right
command to solve the problem, which comes down to following. I've got 2
tables 'telephone' and 'persons'.
Table telephone (lots of records):
N Tel
402 12787
403 12787
....
451 12785
Table persons (3 records):
N First Name Last Name
421 Mark Brian
422 Tim Kerner
450 Mike Womie
When I execute 'select * from persons p, telephone t where p.N = t.N',
I'll normally get sth. like:
N First Name Last Name Tel
421 Mark Brian 12806
422 Tim Kerner 12807
450 Mike Womie 12835
But I actually would like to have:
N First Name Last Name Tel
402 12787
403 12785
....
420 12805
421 Mark Brian 12806
422 Tim Kerner 12807
423
....
450 Mike Womie 12835
451 (empty) (empty) 12785
Is there a way to easily solve this problem, without having to do sth.
with php?
Hopefully sb can help me,
greetings,
Mattias
although it seems like very easy to solve, I didn't found the right
command to solve the problem, which comes down to following. I've got 2
tables 'telephone' and 'persons'.
Table telephone (lots of records):
N Tel
402 12787
403 12787
....
451 12785
Table persons (3 records):
N First Name Last Name
421 Mark Brian
422 Tim Kerner
450 Mike Womie
When I execute 'select * from persons p, telephone t where p.N = t.N',
I'll normally get sth. like:
N First Name Last Name Tel
421 Mark Brian 12806
422 Tim Kerner 12807
450 Mike Womie 12835
But I actually would like to have:
N First Name Last Name Tel
402 12787
403 12785
....
420 12805
421 Mark Brian 12806
422 Tim Kerner 12807
423
....
450 Mike Womie 12835
451 (empty) (empty) 12785
Is there a way to easily solve this problem, without having to do sth.
with php?
Hopefully sb can help me,
greetings,
Mattias
Comment