Link to home
Start Free TrialLog in
Avatar of sqlcurious
sqlcuriousFlag for United States of America

asked on

Help needed in stored proc

Markup:

(Total bid price- sum of total costs -total base freight)/sum of total costs  *100


here

Total bid price= sum (QI.QuoteItemQuantity * QI.QuoteItem_ItemTotalPrice ) from the select statement.

how to implement this in the attached stored proc



I need to build the reports based on this


reportdetailcost.txt
Avatar of mankowitz
mankowitz
Flag of United States of America image

1. your procedure is mssql, not mysql
2. I don't know what you are trying to do. Are you trying to rewrite the query so that it calculates markup?
ASKER CERTIFIED SOLUTION
Avatar of sqlcurious
sqlcurious
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sqlcurious

ASKER

no reply so closing