I have the following code:
SELECT DISTINCT SQ.COMP_ID, SQ.JT, CAST(MIN(SQ.SUM_SALES) OVER (PARTITION BY SQ.JT) AS DECIMAL (10,2)) AS