User Profile

Collapse

Profile Sidebar

Collapse
Matila
Matila
Last Activity: Feb 15 '08, 06:41 PM
Joined: Feb 9 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Matila
    started a topic update sql with results subquery

    update sql with results subquery

    I want to update data on table using the results of subquery.

    for my sql below, I want to update region number of rows on table to the region number of rows that meet the condition with region ovrd = Y & terminate date = 999999.

    I have tried:

    Update ACR B
    Set B.region_NUMBER = A.region_NUMBER , B.region_OVRD_I ND = 'Y'
    From ACR B
    WHERE B.region_NUMBER NOT IN
    (select A.region_NUMBER...
    See more | Go to post

  • Matila
    replied to update subsquery with Not = condition
    Thanks for your suggestion.

    However, I am doing this Update - subquery for unknown values off a table.
    The above list of table values was an example of data.

    Appreciate anymore suggestions!!!! !!!!!!!!??????? ?????? Thanks!
    See more | Go to post

    Leave a comment:


  • Matila
    started a topic update subsquery with Not = condition

    update subsquery with Not = condition

    I am trying to create an update subsquery for the condition:
    agent region region-ovrd-ind terminate-date
    123 A Y 99999999 (active)
    123 A Y 99999999 (active)
    123 B N 20080101 (terminate)
    123 B N ...
    See more | Go to post
No activity results to display
Show More
Working...