D
dlittle
Is it possible to provide a default value for table2_id in the
following query if a record does not exist in table2 where name = 'Does
Not Exist'?
Note: We can not add a default value to the database column.
INSERT INTO table1 (my_id, table2_id)
SELECT '01', [table2].my_id
FROM [table2]
WHERE ([table2].name='Does Not Exist')
Thanks -
following query if a record does not exist in table2 where name = 'Does
Not Exist'?
Note: We can not add a default value to the database column.
INSERT INTO table1 (my_id, table2_id)
SELECT '01', [table2].my_id
FROM [table2]
WHERE ([table2].name='Does Not Exist')
Thanks -