Re: More help with query

From: Newbie (noidea_at_nospam.com)
Date: 03/10/04


Date: Wed, 10 Mar 2004 17:00:57 -0000

Oops forgot the sum(SODet.OrderQty) need to be limited to records with
LineType = '1'

Thanks
"Newbie" <noidea@nospam.com> wrote in message
news:%23R8YLDsBEHA.1380@TK2MSFTNGP10.phx.gbl...
> Variation on prev post . . .
>
> I have 3 tables
>
> SO
> SODet, and
> SOQuot
>
> SO is linked to SODet by SalesOrder
> SO is linked to SOQuot by Quote
>
> I want to update SOQuot.TotalQty with the result of Sum(SODet.OrderQty)
>
> What would the syntax be for this?
>
> Thanks
>
>



Relevant Pages

  • Re: More help with query
    ... I have the following which works ok but I don't want to have to put a quote ... UPDATE SOQuot ... SET TotalQty = FROM SODet ...
    (microsoft.public.sqlserver.mseq)
  • More help with query
    ... Variation on prev post. ... SO is linked to SODet by SalesOrder ... SO is linked to SOQuot by Quote ...
    (microsoft.public.sqlserver.mseq)