Hi.
I have a very strange case here and I hope you can help me, please.
I have a calculation view where I use a UNION node to combine 3 analytic views; In each one of them, I have an inner join between a table and 1 attribute view.
Everything works fine, but just a few hours ago we start noticing some strange behaviour.
For example, we have this:
SELECT TIPO, ESTADO, TIPO_CORREO, TIPO_TELEFONO, TIPO_DIRECCION, CONT FROM "_SYS_BIC"."BUCDWREPORTE/CV_SK" WHERE ESTADO = 'AG AGUASCALIENTES'
and then the resultset is
there are 3 results.
I've tried with these different queries, without any lucky nor different resultset:
SELECT TIPO, ESTADO, TIPO_CORREO, TIPO_TELEFONO, TIPO_DIRECCION, CONT FROM ( SELECT TIPO, ESTADO, TIPO_CORREO, TIPO_TELEFONO, TIPO_DIRECCION, CONT FROM "_SYS_BIC"."BUCDWREPORTE/CV_SK" WHERE ESTADO = 'AG AGUASCALIENTES' ) WHERE ESTADO = 'AG AGUASCALIENTES'
SELECT TIPO, ESTADO, TIPO_CORREO, TIPO_TELEFONO, TIPO_DIRECCION, CONT FROM ( SELECT * FROM "_SYS_BIC"."BUCDWREPORTE/CV_SK" WHERE ESTADO = 'AG AGUASCALIENTES' ) WHERE ESTADO = 'AG AGUASCALIENTES'
Still having the 3 different values in ESTADO.
Then...
When I run the first query with a syntax error, i.e. without a comma in the column names, I have the desired resultset!
What happens here?
I've tried in different HANA Studio versions: 95, 93, 85 with the same behaviour.
In this case, SAP HANA rev. is 85.