Viewing 14 posts - 616 through 629 (of 629 total)
There is a maintenance plan so backups look good. Indexes are being rebuilt as well.
>>Since this is a dedicated SQL Server, the memory allocation is fine being set as default.
So...
November 5, 2010 at 10:45 am
Chrissy, I don't think this version will work.
Your are right and you code does get my desired results. Simpler, faster, better...Thanks again.
October 28, 2010 at 1:16 pm
Which brings me to this....
SELECT
CASE WHEN EXISTS
(
SELECT 1
FROM Parent P
INNER JOIN Child C
ON MyTable.ParentID = P.ParentID
INNER JOIN ChildCustom CC
ON MyTable.ChildID = CC.ChildID
WHERE CC.SillyFlag=...
October 28, 2010 at 10:53 am
This is a better representation, sorry about that.
So WHERE P.Parent_CD = MyTable.Parent_CD will refer one of the main tables in my SELECT.
Thanks for being willing to make suggestions when...
October 28, 2010 at 10:40 am
Thanks to those who responded, it was educational. Pursuing hierarchical processing is beyond my scope right now so I'd like to close the thread.
October 28, 2010 at 10:15 am
Jeff Moden (10/28/2010)
Chrissy321 (10/27/2010)
Thnaks All. I was able to reach a suitable solution using the CASE WHEN EXISTS syntax!That's cool... can you post your final code, please?
My employer strongly discourages...
October 28, 2010 at 10:06 am
Thnaks All. I was able to reach a suitable solution using the CASE WHEN EXISTS syntax!
October 27, 2010 at 3:11 pm
John Rowan (10/27/2010)
Chrissy321, You mentioned that you can't put the flag at the parent level because application/security reasons. Rarely have I seen where outside factors like...
October 27, 2010 at 10:29 am
GSquared (10/27/2010)
John Rowan (10/27/2010)
Am I missing something Gus?
Your solution will work if the hierarchy only has two levels. To be precise, it will work if a child can't have...
October 27, 2010 at 10:20 am
I haven't looked at a hierarchy model. The child to parent ratio is fairly low, 5:1 on average.
I was thinking I could do an existence check in a subquery.
pseudo...
October 27, 2010 at 10:05 am
LutzM (10/14/2010)[/b]
Something like this?
I tried this using linked server and had to terminate the query after 5 minutes. My table has 75 million rows.
I added WHERE clauses and then ran...
October 18, 2010 at 2:16 pm
If to put the code populating table EmpChart nto a trigger on table Emp then every change in the Org Chart will be reflected immediately in EmpChart and ready for...
October 18, 2010 at 9:21 am
Thanks all. Yes I am still using 2000 (or at least my vendor is). This definitely is a bigger can of worms than I first thought!
I am going to try...
October 18, 2010 at 8:51 am
Viewing 14 posts - 616 through 629 (of 629 total)