File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
x-pack/plugin/sql/qa/server/src/main/resources Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -38,20 +38,20 @@ SELECT TRUNCATE(YEAR(TODAY() - INTERVAL 50 YEARS) / 1000) AS result;
3838
3939
4040currentDateFilter
41- SELECT first_name FROM test_emp WHERE hire_date > CURRENT_DATE() - INTERVAL 45 YEARS ORDER BY first_name ASC LIMIT 10;
41+ SELECT first_name FROM test_emp WHERE hire_date > DATE_TRUNC('CENTURY', CURRENT_DATE()) - INTERVAL 11 YEARS ORDER BY first_name ASC LIMIT 10;
4242
4343 first_name
4444-----------------
4545Alejandro
4646Amabile
4747Anneke
4848Anoosh
49- Arumugam
5049Basil
51- Berhard
52- Berni
53- Bezalel
5450Bojan
51+ Brendon
52+ Cristinel
53+ Divier
54+ Domenick
5555;
5656
5757currentDateFilterScript
Original file line number Diff line number Diff line change @@ -3345,15 +3345,15 @@ SELECT TODAY() AS result;
33453345
33463346filterToday
33473347// tag::filterToday
3348- SELECT first_name FROM emp WHERE hire_date > TODAY() - INTERVAL 35 YEARS ORDER BY first_name ASC LIMIT 5;
3348+ SELECT first_name FROM emp WHERE hire_date > DATE_TRUNC('CENTURY', TODAY()) - INTERVAL 11 YEARS ORDER BY first_name ASC LIMIT 5;
33493349
33503350 first_name
33513351------------
33523352Alejandro
33533353Amabile
3354+ Anneke
33543355Anoosh
33553356Basil
3356- Cristinel
33573357// end::filterToday
33583358;
33593359
You can’t perform that action at this time.
0 commit comments