select count(*),max(CREATED_AT) from [table]LOAN_20230529] b with (nolock) select count(*),max(CREATEDAT) from [table]DS_SALARY_DTL_20230529] b with (nolock)