Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's Wrong With This CASE
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
What's Wrong With This CASE
Miscellaneous
Thread ID:
01435411
Message ID:
01435411
Views:
108
Getting "Incorrect syntax near the keyword 'AS'."
CASE WHEN OL.OL_STATUS >= 3 THEN 0 ELSE
	CASE WHEN OL.OL_TERM_DATE < > '1901-01-01' AND GETDATE() > OL.OL_TERM_DATE THEN 0 ELSE
		CASE WHEN b.BookedQty IS NULL THEN OL.OL_NEGOT_QTY ELSE
			CASE WHEN b.BookedQty > OL.OL_NEGOT_QTY THEN 0 ELSE OL.OL_NEGOT_QTY - b.BookedQty END AS [Remaining Blanket Qty],
Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform