in reply to Re: Help with Dynamic SQL subroutine
in thread Help with Dynamic SQL subroutine
"SELECT GREATEST(ROUND((SUM(mth_01 + mth_02 + mth_03 + mth_04 + mth_05 + + mth_06 + mth_07 + mth_08 + mth_09 + mth_10 + mth_11 + mth_12) / 36 +5 ) * 120 ), ROUND (SUM (mth_08 + mth_09 + mth_10 + mth_11))) QTY, b +. p_dlrnet, b.p_dlrsplrcode FROM pac.historyreportmonthlybysku a , stsc.sku b WHERE a.loc = ? AND a.dmdunit = ? AND a.loc = b.loc AND a.dmdunit = b.ITEM GROUP BY a.loc , a.dmdunit , b.p_dlrnet , b.p_dlrsplrcode"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Help with Dynamic SQL subroutine
by runrig (Abbot) on Nov 27, 2006 at 20:54 UTC | |
|
Re^3: Help with Dynamic SQL subroutine
by Jenda (Abbot) on Nov 27, 2006 at 23:41 UTC | |
|
Re^3: Help with Dynamic SQL subroutine
by sasrs99 (Acolyte) on Nov 27, 2006 at 19:33 UTC |