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

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -