select column based on date interval converted from unix timestamp in Oracle sql