Viewing 15 posts - 1 through 15 (of 35 total)
LutzM (2/10/2012)
I don't know if it will even compile since I have nothing to test against (your sample data require...
February 28, 2012 at 4:56 am
GilaMonster (2/20/2012)
Yes, you need a column to compare the table you're deleting from to the subquery, regardless of whether you're using Exists or IN
DELETE FROM <SomeTable>
WHERE <PK Column> IN (SELECT...
February 20, 2012 at 6:16 am
HowardW (2/20/2012)
February 20, 2012 at 6:01 am
GilaMonster (2/20/2012)
February 20, 2012 at 5:53 am
estimated group by plan attached. Same problem here. execution with actual plan never finishes..
February 10, 2012 at 8:51 am
Jack Corbett (2/10/2012)
Yeah it's not a performance issue, but if you aren't getting the right data then does performance really matter? I'm normally concerned with getting the...
February 10, 2012 at 8:31 am
The grouping is not happening in that queryplan. I attached the queryplan for the previous suggestion to first put the results in a temp table and then group the results....
February 10, 2012 at 8:12 am
Ok. I let the query run for an hour, no result. Seems like the actual executionplan is impossible to get.
Anyways, here is the estimated one, if that helps..
February 10, 2012 at 7:24 am
Hmm.. Its a bit difficult to get the actual execution plan for you. When i turn on include actual execution plan the query just goes on forever. I've been waiting...
February 10, 2012 at 6:38 am
Eugene Elutin (2/10/2012)
February 10, 2012 at 4:14 am
Thanks for both your answers and sorry for my late reply.
First of. Here is DDL of the main selected table "PostingYTD", its indexes and the cross joined functions that create...
February 10, 2012 at 2:04 am
Cadavres suggestion returns the same amount of rows as the original query, but running at a speed of aproximatly 15 seconds. I have not double checked the summed amounts so...
February 7, 2012 at 7:16 am
English is not my first language, so i might not get my point across well.
For simplicity, lets say i only grouped by two columns in the query. Account_FK and Company_FK
In...
February 7, 2012 at 6:14 am
Grant Fritchey (2/7/2012)
The fact that you need a DISTINCT operation in there suggests you might have a structural or data problem you need to concentrate on first.
The reason for the...
February 7, 2012 at 5:52 am
Im currently looking into the temp table suggestion, and from a quick test i looks like it will increase performance from 2,5 mins to merly seconds. So thank you very...
February 7, 2012 at 5:42 am
Viewing 15 posts - 1 through 15 (of 35 total)