Sargable DATE and YEAR
The sargable DATE and YEAR optimization, letting the optimizer use indexes for certain date and year conditions.
Last updated
Was this helpful?
Was this helpful?
{
"transformation": "date_conds_into_sargable",
"before": "cast(t1.datetime_col as date) <= '2023-06-01'",
"after": "t1.datetime_col <= '2023-06-01 23:59:59'"
},