0

I am working in Oracle APEX, i want to Subtract Att_In from Att_Out to acquire the value in MINUTES format.I tried different Queries but giving me the wrong answer or some times give the value in Decimal. Here is the Query.

select (to_char(att_In,'HH24:MM:SS')) as time_In,(to_char(att_out,'HH24:MM:SS')) as time_out from attendance;

enter image description here

select to_char(att_In,'DD-MM-YYYY HH24:MM:SSAM'),to_char(att_out,'DD-MM-YYYY HH24:MM:SSAM'),(att_out-att_in) from attendance;

enter image description here

I need the value in Time Format

4

0 回答 0