Hello all!
I want a report, based on two tables. In table two, there are different records who are linked to records in table one. In table one, there are also different other records who stand on their own and have no relation with any record in table two.
I want a list of ALL the records in table one and also the related records in table two for each record in table one if they exist.
In SQL this can be achieved by a LEFT JOIN so that ALL the records in table one are displayed and not only those who have relations in table two.
I don't seem to be able to realise that in Crystal reports. I only see the result of an inner join and not those of a left join.
I also tried to give a SQL-statement with a LEFT JOIN as data-source for the report, but the result was the same (that of an inner join).
Can someone help me with that?
Many thanks and greetings from Brugge (Bruges - Belgium),
Michel
I want a report, based on two tables. In table two, there are different records who are linked to records in table one. In table one, there are also different other records who stand on their own and have no relation with any record in table two.
I want a list of ALL the records in table one and also the related records in table two for each record in table one if they exist.
In SQL this can be achieved by a LEFT JOIN so that ALL the records in table one are displayed and not only those who have relations in table two.
I don't seem to be able to realise that in Crystal reports. I only see the result of an inner join and not those of a left join.
I also tried to give a SQL-statement with a LEFT JOIN as data-source for the report, but the result was the same (that of an inner join).
Can someone help me with that?
Many thanks and greetings from Brugge (Bruges - Belgium),
Michel