Viewing 9 posts - 31 through 39 (of 39 total)
Hi ,
The below code was unable to take correct chars which is required for the calculation.
DROP TABLE IF EXISTS #DataTab;
DROP TABLE IF EXISTS #DataTabNew;
CREATE TABLE #DataTab
(
...
June 12, 2022 at 12:52 pm
Please be informed that there will not be any raw data or any inclusion of data for weekno column it will be in same format W52-2021 , W1-2022 etc..
I guess...
June 12, 2022 at 3:39 am
Jeff,
The above is the i/p which i receive my client which may having missing weeks data, so i need to populate 0 for missing weeks.
Also, actually it has two requirements,...
June 12, 2022 at 3:06 am
How to get the missing weeks!
Emp | Week | Rnge
110 | W18-2022 | 110 ...
June 11, 2022 at 4:53 pm
Hi Steve Collins, The below code again gives the "A TOP N or FETCH rowcount value may not be negative. " error, since the weekno column was not trimmed properly...
June 11, 2022 at 4:24 pm
Thanks for your correct and suggestion!
With the following i was able to get data for non missing rows, here for Emp 111 there is a missing week for w3-2022 and...
June 9, 2022 at 5:33 pm
Getting the below error.
Msg 127, Level 15, State 1, Line 62
A TOP N or FETCH rowcount value may not be negative.
June 9, 2022 at 4:58 pm
Yes Phil you are correct it should be 22 . Also How to take from last year last week data to this year first week data.
DROP TABLE...
June 9, 2022 at 10:30 am
Thanks Phils!
But i really forgot to add an important point here what if the same emp for month 1 and month 3. Here 210 in M1 and M3.
June 2, 2022 at 12:34 pm
Viewing 9 posts - 31 through 39 (of 39 total)