I Have the query similar to this one :
sql :
select count("A"),"B","C" from schema."xxx" where "TIME"<? and "TIME">=? AND "C"='mmn' group by "B","C"
union
select count("A"),"B","C" from schema."xxx" where "TIME"<? and "TIME">=? AND "C"='nno' group by "B","C" order by "C"
and I am using a
getJdbctemplate.query(sql,new Object[startTime,EndTime],Rowmapper)
I am not sure if this is not the correct way to pass the arguments cause when I try to do this it is erroring out wrt an incorrect number of parameters passed.