SELECT TD_TIMECODE, TD_TIME_BUCKET_NUMBER(DATE '1900-01-01', TD_TIMECODE, CAL_YEARS(10)) FROM ts_group_by_time_tb WHERE id = 0 ORDER BY 2; TD_TIMECODE TD_TIME_BUCKET_NUMBER(1900-01-01,TD_TIMECODE,CAL_YEARS(10)) 2006-06-06 06:06:06.006002 11
SELECT TD_TIMECODE, TD_TIME_BUCKET_NUMBER(DATE '1900-01-01', TD_TIMECODE, CAL_YEARS(10)) FROM ts_group_by_time_tb WHERE id = 0 ORDER BY 2; TD_TIMECODE TD_TIME_BUCKET_NUMBER(1900-01-01,TD_TIMECODE,CAL_YEARS(10)) 2006-06-06 06:06:06.006002 11