Welcome to
Sign in
|
Help
Search
Home
Blogs
External Feeds
Forums
Photos
Downloads
About Us
»
Romanian Section
»
Intrebari
»
T-SQL
»
Re: t-sql update sql server 2000
Re: t-sql update sql server 2000
02-17-2009, 2:15 PM
rsocol
Joined on 10-03-2006
Bucuresti
sysadmin
Re: t-sql update sql server 2000
Reply
Quote
Î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
Report abuse
View Complete Thread