I have a table which has fields date_of_notification, date_of_loss. Both are of type time-stamp. I have to calculate the TAT based on the condition that if date_of_notification is null, then TAT would be current date – date_of_loss and if it is not null, then TAT would be date_of_notification – date_of_loss. How can i write SQL query for this in Oracle 10g. I cannot use procedure.
I have a table which has fields date_of_notification, date_of_loss. Both are of type time-stamp.
Share
1 Answer