Referencing the DFF in a SQL Query