Viewing 15 posts - 16,066 through 16,080 (of 18,926 total)
Untill you get a deadlock in the system tables and that the system is screwed for all the users...
June 29, 2005 at 8:38 am
Yup, it can work, but it takes a derired table to finish the job. Performance is almost the same. But his approach takes lots more typing
June 29, 2005 at 8:36 am
Thanx for clarifying. I don't know either if there's a performance difference... but on further analysis I'm not even sure that this query can work the way he's written...
June 29, 2005 at 8:35 am
Let us stop guessing, post the actual code and some sample data so that we can see what's really going on.
June 29, 2005 at 8:18 am
In what circumstance??? The answer is right, it ALWAYS DEPENDS.
June 29, 2005 at 8:15 am
Surely, a scan is bad but n scans is n times worse...
Didn't read the whole script posted, so there might have some more optimizations to do on it.
June 29, 2005 at 8:13 am
That too, but I preffer doing the sum(case) approach... but maybe it's not important.
June 29, 2005 at 8:11 am
it would look something like this :
dateadd(D, 0, Datediff(D, 0, DateCol)) = DateCol
June 29, 2005 at 8:01 am
Can you provide all the informations then??
If you post the original query then I might be able to provide more info.
June 29, 2005 at 7:55 am
That could continue for a while... so I'll stop after this one
.
June 29, 2005 at 7:46 am
Same query, usable for any amount of cities :
select prod_id
from dbo.prod_cities
where city_id in (207,208)
GROUP by prod_id
having count(*) = 2 -- number of cities in the in list
But where do...
June 29, 2005 at 7:38 am
Viewing 15 posts - 16,066 through 16,080 (of 18,926 total)