User Profile

Collapse

Profile Sidebar

Collapse
gdtech
gdtech
Last Activity: Oct 23 '07, 01:22 PM
Joined: Oct 21 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gdtech
    replied to Update Record With Min Values
    Thanks - worked great
    See more | Go to post

    Leave a comment:


  • gdtech
    started a topic Update Record With Min Values

    Update Record With Min Values

    I am trying to update all FIELDs in a TABLE where a condition of min COSTs exist. I currently have 6 rows in my table 2 are non unique when I query select for all min COSTs grouped by ITEM_NO I get 5 - correct. But when I run the update query I get all 6 rows affected.

    /*WORKING SELECT QUERY*/
    SELECT ITEM_NO , MIN(COST) AS LOWEST
    FROM TABLE
    GROUP BY ITEM_NO

    /* INCORRECT UPDATE QUERY */
    ...
    See more | Go to post
No activity results to display
Show More
Working...