Sign in
apache
/
drill-test-framework
/
9a5d7ecf7f32f0e95c0ea874e75d785fdee9e51d
/
.
/
framework
/
resources
/
Functional
/
timestamp_functions
/
timestampadd_diff_year.sql
blob: b24bb9ea36137be81f8993d1da69ded27f5e4949 [
file
] [
log
] [
blame
]
SELECT
TIMESTAMPDIFF
(
SQL_TSI_YEAR
,
CAST
(
TIMESTAMPADD
(
SQL_TSI_YEAR
,
8
,
o_orderdate
)
AS
DATE
),
o_orderdate
)
AS
num_of_years
FROM
orders
WHERE
o_orderkey
=
1
;