You are here: Update sub query « MsSQL Server « IT news, forums, messages
Update sub query

Posted by vinci on 11/28/01 11:58

hai,
I have using sql2000 server i met one problem in upadate
query.

My table name is reserve

sno. cmname allocated
451 raja no
555 kumar yes
338 prabu no
224 mari no
993 arun no
330 makesh yes

This table having 200 records. I want to update first 20 "no" records
to update to "ye"

i am using this quer

update reserve set allocated='yes' from(select
allocated from reserve where allocated='no')

but this is not come exact answer please help this topic.

Thank u

Regards,
Vincent Manapparai.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация