Welcome to Sign in | Help

Re: t-sql update sql server 2000

  •  02-17-2009, 2:15 PM

    Re: t-sql update sql server 2000

    Încearcă ceva de genul:

    UPDATE aaa SET Principal=0
    WHERE DataInregistrare IN (
    SELECT TOP 2 DataInregistrare FROM aaa b
    WHERE b.CodContract=aaa.CodContract
    ORDER BY DataInregistrare
    )

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