We have requirement to loop through source JSON data & fetch for every 5 years data starting 1980-01-01 till yesterday. we currently loop it by passing static dates like below & run through it through muliple times
SQL SELECT col1,
col2 FROM JSON (wrap on) "root" WITH CONNECTION ( URL "http://<URL>/tagid?id=<EndPoint>/1%3FFromDate=1980-01-01%26ToDate=1985-12-31" );
we want to convert into For Loop & increment the start date & end date once 1st iteration is done, can somebody help it out?