e mica tanto!.....

perchè mi dice..

Msg 8120, Level 16, State 1, Line 1
Column 'EXPORT_COSTI.CODE_PREFIX' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.


uff..