Viewing 15 posts - 2,566 through 2,580 (of 4,087 total)
You have two main options
It helps to understand the issues with triggers so that you can determine whether to use...
June 11, 2016 at 3:08 pm
stricknyn (6/10/2016)
Thanks for your response. Unfortunately no. The other process is designed that way because there are other processes (much like this stored procedure) that will be...
June 10, 2016 at 9:25 am
No, but you can pass a table variable into a stored procedure. Can you modify the other process to create a table variable rather than a temp table?
Drew
June 10, 2016 at 8:15 am
Jeff Moden (6/9/2016)
drew.allen (6/9/2016)
Jeff Moden (6/6/2016)
June 10, 2016 at 8:11 am
Jeff Moden (6/6/2016)
June 9, 2016 at 3:50 pm
This actually might perform better, but it requires that the earliest balance not be NULL, which is not true of your sample data.
SELECT b.*,
FIRST_VALUE(m.Balance) OVER(...
June 9, 2016 at 11:04 am
etl2016 (6/9/2016)
We use ROW_NUMBER () to partition results and hand-pick the needed records, mostly to address duplicate records scenario.
However, how do we sense that there is a potential threat...
June 9, 2016 at 9:22 am
simon.barnes (6/8/2016)
b) you mentioned they were heaps and now have indexes; but do they now have clustered indexes? If not then they're still heaps. This...
June 9, 2016 at 9:09 am
It looks like the piece you might be missing is a calendar table to make sure that you have all of the dates instead of just the dates where there...
June 9, 2016 at 9:00 am
Jacob Wilkins (6/8/2016)
So there are two separate problems.
There's actually a third problem, but I don't want to say what it is, because the OP needs to understand how this query...
June 9, 2016 at 8:10 am
There is no need for dynamic SQL here. He's storing these values in a temporary table, and the values aren't going to change (in most cases) between when he...
June 8, 2016 at 12:33 pm
erouse (6/8/2016)
3Last 7 daysDATEADD(day,...
June 8, 2016 at 12:30 pm
That because you have your "date expressions" enclosed in quotes when inserting into the temporary table. The are never evaluated, so they never produce dates.
Drew
June 8, 2016 at 11:28 am
marcossuriel (6/8/2016)
I did look at the results I'm getting over and over and I'm trying to understand what the ROW_NUMBER() is doing, but I'm a little lost. I see...
June 8, 2016 at 11:00 am
marcossuriel (6/7/2016)
I have the results I want from the dataset provide, but not sure how to show them in table view on here.
lotnoitemnodescwarehousecurrentqtycosttransdatetranstypetransqty
005965001TEQU0110 ...
June 8, 2016 at 9:01 am
Viewing 15 posts - 2,566 through 2,580 (of 4,087 total)