sqlcommand - Basic Syntax vs SQL Command -- Formula Crystal Reports -
I am trying to change this statement in SQL command - for testing and learning purposes
< P> In the original syntax, code if IsNumeric (middle (trim (x), 1)) then formula = UCASE (TRIM (MID (X, instead of Formula in the SLL command I What I am using and it should be. (SXTE (X, "1, 1) 1)))) ELSE formula = X.
Used for efficiency in SQL command Is here If I do not want to, then I would like to know how to write it in the sql command.
So far I have
case ezraic (middle (trim ( X),) 1)) then [blank] = UCASE (TRIM (MID (X, (fourx x (x, "", 1) +1))))) ELSE [BLANK] = X
EPV
Sample the data so when I import / link the data from the back end, my X field looks different: 1. 'zzabc123 - The Red Car '2.' ABC 123 - The Black Car '3 'Green car'
I want
Green CAR SELECT *, Case Ezerrick (Mid (trim (x), 1)) then UCASE When the 'black car' like 'X' red car '' X '' like '% Red%' then 'black' x 'then' trim '(md (x, (chrinedx (x, "", 1) +1))))) ELSE X END 'Black car' like Alex X '% GREEN%' then 'Green car' XSEX to XY END
Without knowing the nuances of your data, You are trying, it is impossible to give you a SQL sample correctly.
He said, here is the conversion of most of your actions into your SQL-server counterparts; If you can see items such as SUBSTRING ()
and CHARINDEX ()
functions, and you can customize the sample to dictate as you want, then you should start it . Select
when the sensor (SUBSTRING (LTRIIM (RTRIM (x)), 1,1)) = 0 above (LTRIM (RTIIM (SUBTRY (X, Chordx (X, '' ) +1, lan (x) - corinthx (x, ''))) MYSEX to ELSE 'X' end
Comments
Post a Comment