Hello Dadabhau,
I checked internally and I am not sure about the result query is returning for various reason. I am not very confident why it is returning number of affected lines, which ideally is returned when you do some update, delete sort of operation.
I try to run the similar style of select query on the oracle DB and it do returns a resultset but affected line counts as 0 because it is not doing any UD operation.
May I request if you can open a case to track this as it requires an investigation also, what version of RA are you using.
Regards,
Saurabh