aboutsummaryrefslogtreecommitdiffstats
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/quantifi.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/quantifi.sql b/sql/quantifi.sql
index 4de01d47..ffc96e73 100644
--- a/sql/quantifi.sql
+++ b/sql/quantifi.sql
@@ -340,7 +340,7 @@ BEGIN
HAVING SUM(c2.currentnotional) = 0
)
GROUP BY c.productname
- ) m ON t.productname = m.productname AND t.tradedate = m.termination_date
+ ) m ON t.productname = m.productname
WHERE t.date = p_date;
END;
$$ LANGUAGE plpgsql;