Hi im a newbe to HQL and have a SQL expression I need converted but am unable to select the SQL statement is:
select SenseDate as Time,SenseValue as Value from UserData where NetworkID = '23' and IODeviceID = '129' and SenseDate >= DateAdd("d",-1, GETDATE()) and SenseDate<=GETDATE()
and can run this part in HQL without problems:
from UserData where NetworkID = '23' and IODeviceID = '129' and SenseDate >= DateAdd(d,-1, GETDATE()) and SenseDate<=GETDATE()
However I only want the SenseDate and SenseValue values returned, could someone show me how to select as when i try to add
select SenseDate, SenseValue etc. I keep getting errors in netbeans
many regards
Patrick