CoSpringsGuy
IS-IT--Management
Not sure if this is an ok forum to post this question.
I need to use the Cast or Convert command so that I can link to another table. The following is the sql WITHOUT Cast or Convert and it works fine:
SELECT `Sheet1_`.`clt accct`, `Sheet1_`.`Debtor`, `Sheet1_`.`client code`, `Sheet1_`.`initial balance`
FROM `Sheet1$` `Sheet1_`
I need to cast the first field to text but get errors when trying the following methods
SELECT cast(`Sheet1_`.`clt accct` as varchar(20)),`Sheet1_`.`Debtor`, `Sheet1_`.`client code`, `Sheet1_`.`initial balance`
FROM `Sheet1$` `Sheet1_`
SELECT convert(varchar(2)),`Sheet1_`.`clt accct`), `Sheet1_`.`Debtor`, `Sheet1_`.`client code`, `Sheet1_`.`initial balance`
FROM `Sheet1$` `Sheet1_`
Any thoughts on what I am doing wrong?
_____________________________________
Crystal Reports XI Developer Version
Intersystems Cache 5.X ODBC connection
I need to use the Cast or Convert command so that I can link to another table. The following is the sql WITHOUT Cast or Convert and it works fine:
SELECT `Sheet1_`.`clt accct`, `Sheet1_`.`Debtor`, `Sheet1_`.`client code`, `Sheet1_`.`initial balance`
FROM `Sheet1$` `Sheet1_`
I need to cast the first field to text but get errors when trying the following methods
SELECT cast(`Sheet1_`.`clt accct` as varchar(20)),`Sheet1_`.`Debtor`, `Sheet1_`.`client code`, `Sheet1_`.`initial balance`
FROM `Sheet1$` `Sheet1_`
SELECT convert(varchar(2)),`Sheet1_`.`clt accct`), `Sheet1_`.`Debtor`, `Sheet1_`.`client code`, `Sheet1_`.`initial balance`
FROM `Sheet1$` `Sheet1_`
Any thoughts on what I am doing wrong?
_____________________________________
Crystal Reports XI Developer Version
Intersystems Cache 5.X ODBC connection