I'm working on oracle db and I'm not quite good at Oracle.
I'm trying to split a row by one hour period.
For example, if a time row has given as below,
Start_time(yyyy/mm/dd hh24:mi:ss) | End_time(yyyy/mm/dd hh24:mi:ss)
2013/09/01 09:30:00 2013/09/01 11:38:59
The result I want to see like this:
2013/09/01 09:30:00 2013/09/01 09:59:59
2013/09/01 10:00:00 2013/09/01 10:59:59
2013/09/01 11:00:00 2013/09/01 11:38:59
I've been searched how to do it but I couldn't find one.
But I guess It can be done by using 'CONNECT BY'.
Any help will be great. Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…