i am creating a procudure for temp table.
IF EXISTS (SELECT TEMP1.*,TEMP1.Total + (SELECT COALESCE(SUM(Total),0) FROM TEMP1 t1 WHERE t1.ROWNO
ORDER BY OrderID
)
DROP TABLE TEMP1
in this i am getting error,The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP, OFFSET or FOR XML is also specified.
please help me how to resolve this???
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Manas MohapatraPosted Jun 2, 2017, 8:25 AM