the query gives (SQL Server) c_cod_art .... qtCli ... qtFor ---------------------------------- AAAA 10 0 AAAA 0 5 i need, AAAA 10 5