News

Is it possible to order by a substring in a returned field?I've got a query which returns at most probably around 10 or so rows of 1 column. However the way this data is formated, it'd be convient ...
The generate SQL was SUBSTRING([m].[Code], 0, 1) which returns an empty string instead of returning the first character. When playing with the generated SQL query and changing it to ...
Seems that the T-SQL supports what I'm trying to do, but whatever SQL crystal is using doesn't like the expression I'm using for the substring length. If I hard-code the substring length it works ...
Only positive integers are allowed." However SQL:2011 says (6.30 <string value function>): """ 3) If <character substring function> is specified, then: [..] b) Let C be the value of the <character ...