Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 17th, 2005, 01:31 PM
sripri96 sripri96 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 sripri96 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 50 sec
Reputation Power: 0
Question Update table

Hi:

I need to update table with following condition:

Update t1
Set t1.col4 = 'U'
from t1 join t2 on t1.id = t2.id
Where t1.col1 <> t2.col2
t1.col2 <> (select t3.col1 from t3 join t2 on t3.id1 = t2.id1 join t3 as p3 on t3.col2 = p3.id1)

Here t3 table is circular table...

This code is not updating the 1 table where the col2 has changed...

Any help would be greatly appreciated... If more info is needed please let me know....

Thank you very much,
sripri96

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Update table


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway