OK, I have three tables: tb1, tb2, tb3 with fields below:
+ tb1: id, id1, id2 (main table)
+ tb2: id1
+ tb3: id2
How to make a select statement with left join three tables, display all fields in three tables? In 'id1' and 'id2' in table tb1, one of them will be zero in a record. That means there is no record in tb2 or tb3 for the id1 or id2 if equals zero. The result should have the same number of record as in tb1. If a record doesn't exist in tb2 or tb3, all fields in that table must be null. Please help. Thanks.