I've got a column
in my table with text (string) like 19.5 or 7.14 but as well with just 19 or 11.
I want to split the text in 2 columns 1 with all the text before the "." and 1 with all the text after the "." .
For the entries without a . in the string, the table must have 00 in the second column. Also all data after the . has to be 2 chars long(padded with 0).
e.g. 19.5 must give column1: 19 column2: 50
; 11 must give column1: 11 column2: 00
Can anybody help me with the correct tsql-code?