sql - How to get the hour difference between 2 datetimestamp on derby db? -


i have sql question on derby database:

select a.name, a.starttime, a.endtime 

how can add above sql statement such can difference in hours between start time , end time? (i know mysql there datediff function, not sure function should use derby db)

thanks.

in derby there timestampdiff:

for instance:

select {fn timestampdiff(sql_tsi_frac_second, startdate, enddate)} diff  

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -