• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

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
0
sqlcurious
Asked:
sqlcurious
  • 2
1 Solution
 
mankowitzCommented:
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?
0
 
sqlcuriousAuthor Commented:
yes i am trying to rewrite it can u help >it is SQl server
0
 
sqlcuriousAuthor Commented:
no reply so closing
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now