Scalar. Converts a given string to a Boolean value
The following examples return a Boolean based on the input string:
INSERT INTO OutStream SELECT TO_BOOLEAN('FALSE') --returns FALSE FROM InStream;
INSERT INTO OutStream SELECT TO_BOOLEAN('TRUE') --returns TRUE FROM InStream;
INSERT INTO OutStream SELECT TO_BOOLEAN( LEFT( LTRIM(' false status'), 5 ) ); --returns FALSE FROM InStream;