Viewing 9 posts - 1 through 9 (of 9 total)
Thank you, this is very clear and exactly what i was looking for.
June 29, 2021 at 7:58 pm
Thanks Scott,
That is certainly the result set that i am after. Is there are way to achieve this without using Tally's? i am a novice and struggle with understanding code...
June 28, 2021 at 10:25 pm
No the source data is actually in financial periods that i split out into 2 columns. For example 1801, 1802, 1803, etc.
First 2 digits are the financial year and the...
June 28, 2021 at 10:02 pm
Thank you
This is exactly what is was looking for.
December 15, 2020 at 10:15 pm
Thanks Scott,
That was exactly what I was looking for.
I needed the week number per year (not a running tally of weeks) so the only change i made was to change...
October 14, 2020 at 10:28 pm
Hello Mike,
There is no sample data for this one. The table needs to be created dynamically and the image is supplied is ultimately an example of the result set i...
October 14, 2020 at 2:07 pm
Thanks, this is perfect.
I was just looking at using a CTE when i saw your edit.
February 7, 2020 at 4:18 pm
After some some time in google and advice from above i used the following to achieve this.
I used a 'table variable' to hold the list of tables and a while...
February 3, 2020 at 12:31 pm
Perfect, thank you.
I need to run this against a fixed list of tables and UNION ALL the results. I am assuming that a cursor would be most appropriate but have...
February 1, 2020 at 7:09 pm
Viewing 9 posts - 1 through 9 (of 9 total)