sql server - Convert actual time to float in SQL -


how can convert specific time or actual time, in sql, float number? e.g., if 09:59:57 want float number: 0.416634556 in excel. thank all.

take @ this, may find answer here: cast , convert (transact-sql)

select cast(convert(datetime, col1) float) newvalue table1 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -