SQL Language (MOSC)

MOSC Banner

no of minutes like and convert it to mi:ss

edited Jun 20, 2019 10:29PM in SQL Language (MOSC) 4 commentsAnswered

if i want to know difference between 2 dates and get minutes

i use

SELECT ( CAST( sysdate+(2.44/1440) AS DATE ) - CAST( sysdate AS DATE ) ) * 1440 AS minutesInBetween

FROM dual

i want the output (no.of.minutes):(no.of.seconds)

and i want no of minutes only like 150 minutes

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center