I have a simple innerjoin as shown below
What I'm trying to do check a third table to see if a record was created that relates to any of the innerjoin records.
The results will be shown in a grid so I need all records in the join to show regardless if a record in the third table exists. If a records in the third table exists I would like show a value of '1' in the last column of my grid.
any help would be appreciated
thanks
SQL:
SELECT
MyTable1.Field1
MyTable2.Field1
FROM
MyTable1
INNER JOIN
MyTable2 ON MyTable1.ID = MyTable2.ID
What I'm trying to do check a third table to see if a record was created that relates to any of the innerjoin records.
The results will be shown in a grid so I need all records in the join to show regardless if a record in the third table exists. If a records in the third table exists I would like show a value of '1' in the last column of my grid.
any help would be appreciated
thanks