I have a trigger setup to fire after a row is updated or inserted for table A. There is also a table B that references table A, but also has another column which I want to analyze, a boolean (so this function would only be usable on an UPDATE).
When I try to access the column:
SELECT col1 FROM B WHERE B.aID = NEW.ID;
This column col1 is always NULL.
Why is this? How can I get the boolean value upon an update?
 
    