TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Apurva Singh
NA
268
56.7k
if exit table then drop query
Jun 2 2017 2:16 AM
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<TEMP1.ROWNo)as TotalAmount FROM TEMP1
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???
Reply
Answers (
1
)
Parsing the XML file in SSIS and populate on DB.
About table lock in sql server