A
ali
I have 2 tables.
-------------------------------------------------------
Table1 looks like this:
ID Name Department
101 Allen Accounting
102 Sarah Accounting
103 James HR
104 Nicole Finance
105 Claire IT
224 Kingston External
-----------------------------------------------------
Table 2:
ID Name Nationality
101 Allen USA
102 Sarah UK
103 James Canada
104 Nicole USA
105 Claire Germany
106 Steve Taiwan
107 Satoshi Japan
-----------------------------------------------------
Problem:
If i link them by "ID", i'll be only getting 5 entries 101, 102, 103, 104 &
105 from table 1. Because "Kingston 224" has no record in table2.
-----------------------------------------------------
Question:
If i want the query to return all entries in table1, doesn't matter if the
ID is found or not.
If the ID is not found, just return "blank" instead.
Could someone please help with this query ?
Dear experts, thanks a lot in advance ! ^_^
-------------------------------------------------------
Table1 looks like this:
ID Name Department
101 Allen Accounting
102 Sarah Accounting
103 James HR
104 Nicole Finance
105 Claire IT
224 Kingston External
-----------------------------------------------------
Table 2:
ID Name Nationality
101 Allen USA
102 Sarah UK
103 James Canada
104 Nicole USA
105 Claire Germany
106 Steve Taiwan
107 Satoshi Japan
-----------------------------------------------------
Problem:
If i link them by "ID", i'll be only getting 5 entries 101, 102, 103, 104 &
105 from table 1. Because "Kingston 224" has no record in table2.
-----------------------------------------------------
Question:
If i want the query to return all entries in table1, doesn't matter if the
ID is found or not.
If the ID is not found, just return "blank" instead.
Could someone please help with this query ?
Dear experts, thanks a lot in advance ! ^_^