Forum Replies Created

Viewing post 1 (of 2 total)

  • RE: need help writing the codes for this

    I already did this but i got stucked in the middle
    please help

    SELECT
        o.orderid, 
        AVG(d.qty * d.unitprice) AS avgunitpriceperorder,
        SUM(d.qty * d.unitprice * (1-discount)) AS totalordeamountperorder

Viewing post 1 (of 2 total)