Código:
Alguna idea? SELECT SUM(CASE WHEN ID in (2) then v when id not in (2) then sum(CAST (a.U AS float) + CAST(a.D AS float)) end) AS 'VOL',