tsql - SQL Server T-SQL CASE error -


I'm getting an error on the CASE with T-SQL (SQL Server 2000). Any feedback is really appreciated

error message 156, level 15, state1, line2 keyword 'case' has the wrong syntax.

- - The query is given below:

  c.name, c.customerid, c.linkid, select case when c.linkid = X.linkid, then x.orderitem as the enditem, when the case happens. Linkid = x.linkid, then extend the customer as an order in the form of C-Inner Joint, c. Customer ID, C Linked, O. Order etc., as an order order customer as an order of CCC as OCC Clientqi = o C.customerid = x.customerid command c.customerid as the order of x where order c. Linkid = x.linkid x 0 and 1 end asc, c.linkid    

Maybe it's an invisible pigment between your code which you can not see, rewrite OK Whithout copy copy or past.

Comments