This is requested yearly by auditors. Once done running export to Excel and put in a shared file. One of finance users will upload it to the auditors' portal.


The query is attached in the article.


Take note if the below:



DECLARE       @STARTDATE                                             DATE,                                                         

             @ENDDATE                                               DATE                                                                                                                



SET @STARTDATE                                                       = '1 March 2020'       -- Beginning of financial year                                                                                                           

SET @ENDDATE                                                         = '28 February 2021'   -- End of financial year