From what I'm seeing Databricks doesn't have DECLARE function, how can I ... ?

Joe_C
New Contributor

How can I re-write this statement in a way that is compatible for Databricks?

DECLARE @DATE_BEGIN_TEST AS DATE = DATEADD(DAY, - 60, GETDATE());

DECLARE @DATE_END_TEST AS DATE = GETDATE();

Hi @Joseph Collins​,

Just a friendly follow-up. Do you still need help or the link shared by Kaniz help you? Please let us know