jalvarez_2 Posted March 16, 2017 Share Posted March 16, 2017 Hi,Could you help me Jasper does not recognize the sentence CAST in the bellow:SELECT dbo."Productos"."Codigo Producto",dbo."Productos"."Descripcion Producto",dbo."Almacenes"."Codigo Almacen",dbo."Productos"."Control E",dbo."Num_Series"."Num Serie",CASE WHEN dbo."Num_Series"."cestado" < 3 THEN '1' ELSE CAST(dbo."Num_Serie"."cestado" AS varchar(30)) END AS CESTADOFROM dbo."Productos"FULL OUTER JOIN dbo."Num_Series" ON dbo."Productos"."ID Producto" = dbo."Num_Series"."ID Producto" FULL OUTER JOIN dbo."Almacenes" ON dbo."Num_Series"."ID Almacen" = 'NULL' WHERE ( dbo."Productos"."Tipo Producto" = 1) AND ( dbo."Num_Series".cestado < 3)Thanks in advance.Regards. Link to comment Share on other sites More sharing options...
sadakar Posted March 21, 2017 Share Posted March 21, 2017 I didn't check it in MS-SQL server but at report level why don't you try casting using java expression ? Link to comment Share on other sites More sharing options...
jbarger.consultant Posted July 30, 2019 Share Posted July 30, 2019 Because that isn't really a normal situation in SQL. The JASPER SQL interface should support this really. Also, it would be really nice if you gave us an example of how that would work inline. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now