I have:
INSERT INTO ItemTracking(`Item`, `Source`, `LeftSourceAt`)
SELECT `Item`, `Source`, now() FROM ItemAvailability WHERE Item = 'PA';
I want to execute the above query ONLY IF ItemBeingTracked in ItemAvailability is NULL.
Edit: If ItemAvailability.ItemBeingTracked == NULL Then do the above query.
table1entity? do you have an id or something?Item = 'PA')