Welcome to Sign in | Help

Re: Internal SQL Server error. (Server: Msg 8624, Level 16, State 21, Line 29)

  •  01-31-2008, 2:49 PM

    Re: Internal SQL Server error. (Server: Msg 8624, Level 16, State 21, Line 29)

    nu merge

    problema e ca in selecturile cu coalesce, ca acesta (sunt 2 la numar unul as ramasite altul as accesorii):

    coalesce(
        (select sum(suma)
        from gotax.dbo.debite_pf p
        where  
         p.id_tipdebit = 2
         and p.an = dbf.an
         and  dbo.GetGrupareByIDTipMatricola(dbf.id_tipmatr,dbf.id_matr)
                =
                dbo.GetGrupareByIDTipMatricola(p.id_tipmatr,p.id_matr)
        )
       ,0)
       as ramasite

    folosesc dbo.GetGrupareByIDTipMatricola(dbf.id_tipmatr,dbf.id_matr) unde aliasul dbf este din from-ul primului select....selectul mare....dar nu stiu cum sa fac altfel

    multumesc.

    alex.

View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems