update statement not working....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lunas
    New Member
    • Aug 2007
    • 4

    update statement not working....

    I have the following update statement bt it is not working, even after leaving it for 16 hrs it dint end and neighter any of the records got updated

    update
    allele_temp
    set
    allele_temp.Aut oMarkerID =
    (
    select
    distinct(marker _temp.AutoMarke rID)
    from
    marker_temp
    where
    marker_temp.dbS NPrsID = allele_temp.dbS NPrsID
    )
    where
    allele_temp.Aut oMarkerID is null

    Can anyone tell me whts wrong in the query.
    FYI
    Allele_temp has 25.5 million records and
    Marker_temp has 13.3 million records.

    for a smaller dataset the query works fine
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    As the table contains more records i would like to know is there any indexes on the table.

    Comment

    • arr1
      New Member
      • Aug 2007
      • 6

      #3
      one question
      Is the inner query returning one row?
      If not then will update work this way for multiple records being returned?

      thanks,
      ARR

      Comment

      Working...