Calling a function slows query
Dear All
I am calling a function in my SQL query which is slowing my query. When I remove that function from my query, query runs normal. I cannot understand the exact reason for this because function is pretty much simple which has been written to get ISO reservation quantity of order line. Code is attached for clarification. Any help regarding this will be highly appreciated.