ImplicitSplit.sql 569 B

1234567891011121314151617181920
  1. /* syntax version 1 */
  2. $format = DateTime::Format("%Y%m%d %H%M%S %Z");
  3. select
  4. $format(`date`),
  5. $format(`datetime`),
  6. $format(`timestamp`),
  7. $format(`tzdate`),
  8. $format(`tzdatetime`),
  9. $format(`tztimestamp`)
  10. from (
  11. select
  12. cast(fdate as Date) as `date`,
  13. cast(fdatetime as Datetime) as `datetime`,
  14. cast(ftimestamp as Timestamp) as `timestamp`,
  15. cast(ftzdate as TzDate) as `tzdate`,
  16. cast(ftzdatetime as TzDatetime) as `tzdatetime`,
  17. cast(ftztimestamp as TzTimestamp) as `tztimestamp`
  18. from Input
  19. );