I have this query and i need to get the maxvalue of the CCSEQ camp, i have tried using this query but it doesn´t work, if anyone can help me i will be very grateful.
the query
select max(cc.CCSEQ), cc.ccline4, cc.ccstreetno, cccity
from ccontact cc
where customer_id = '724609' and ccbill = 'X';
EDIT
I have resolved the issue with this query
select cc.ccline4, cc.ccstreetno, cccity
from ccontact cc
where CC.customer_id = '724609' and CC.ccbill = 'X'
AND cc.CCSEQ = (SELECT MAX(C1.CCSEQ) FROM ccontact c1
WHERE CC.customer_id = C1.customer_id)
Best wishes