Viewing 15 posts - 10,396 through 10,410 (of 59,102 total)
Adding a bit of a correction, it looks like the dupe-check goes a bit further. It also looks like the only time a particular group/invoice should be returned is if...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2018 at 7:09 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2018 at 6:51 pm
It appears to me that this is an attempt at the "simple" deduplication of data (Temp_Work is self joined) combined with a check for valid data (the <> 0 stuff). That...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2018 at 6:24 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2018 at 7:44 am
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2018 at 6:57 am
create table #tmp
(
number int
)
insert into #tmp...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2018 at 6:46 am
After you've done that, automate the creation of a new file/filegroup for a new "next" month and the auto-magic rebuild of the partitioned view.
Another cool part is that, if...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 11, 2018 at 10:07 pm
You're on the right track with separate files and file groups.
If the data is static after being loaded, then base your files and file groups so that... --Jeff Moden Change is inevitable... Change for the better is not.
RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
Helpful Links:
How to post code problems
How to Post Performance Problems
Create a Tally Function (fnTally)
December 11, 2018 at 10:04 pm
Without being able to see the rest of the execution plan nor have the execution plan where we can drill into the properties of each node, it's likely to remain...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 11, 2018 at 6:36 pm
declare...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 11, 2018 at 6:32 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
December 11, 2018 at 6:29 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
December 11, 2018 at 6:23 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
December 11, 2018 at 6:19 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
December 11, 2018 at 6:08 pm
As indicated...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 11, 2018 at 5:59 pm
Viewing 15 posts - 10,396 through 10,410 (of 59,102 total)