According to field sSaleOrderCode judgment, if pin sample S beginning G show spare embryos, in the beginning, the rest of the goods, but why the error
Message 512, level 16, state 1, line 44 Subquery returns the value of more than one, when the query to follow in=,!=, & lt; , & lt;=, & gt; , & gt;=, or the subquery is used as the expression, the situation is not allowed,
CodePudding user response:
CASE the WHEN SSALEORDERCODE LIKE '% S' THEN 'pin sample' S SSALEORDERCODE LIKE 'G %' THEN 'spare embryos' ELSE' big goods' END AS 'order type'
CodePudding user response:
No, like grammar mistakes
CodePudding user response:
Error not have told you, you of two sentences like son query returns the results of more than one line, you judge the beginning letter of what to do with the table subquery, resources are not more so, had left or substr