Viewing 15 posts - 121 through 135 (of 163 total)
Gents....
It is with a sad and heavy heart that I admit I screwed up my view... LOL.. I fixed it and they give the same result...
May 25, 2012 at 11:02 am
Here ya go....
Since YODA is your avetar... you might like this....
May 25, 2012 at 11:00 am
Lynn, Did you look at the video link I posted?
May 25, 2012 at 10:51 am
Lynn Pettis (5/25/2012)
Slight problem with your views (or at least the code you posted). Both views are based on table1.
in the famous words of Homer Simpson...
D'OH! Ok... ...
May 25, 2012 at 10:39 am
SWEET!! OK.. Now we're getting somewhere...
Here's what I did. I put together some DDL so that I can see if the issue duplicates... and it...
May 25, 2012 at 9:32 am
Yes... you did.. but honestly, the posts were coming in so quickly, I coudldn't keep up...
I tweaked the query to take that into account with no change...
26666 records vs. 26672......
May 24, 2012 at 2:25 pm
I'm not going to say your wrong. But I will say that I think the problem has been twisted and trounced that it's not even the same problem anymore.......
May 24, 2012 at 2:20 pm
HOLY Recursive Statement Batman!!
I just noticed that the Joins don't have the NOLOCK hint, but the views all DO have the no lock hint.... so by switching to...
May 24, 2012 at 2:05 pm
I'm getting really lost here.
I don't use the ISDELETED predicates in the where clause when I use the view. It's in the view so I don't need to.
May 24, 2012 at 1:55 pm
The ISNULL(ISDELETED,0)=0 condition in the where clause is eliminated when the view is used, I don't even run it.
When I switch to the view, I comment out the where clause.
When...
May 24, 2012 at 1:47 pm
Becuase I was switching back and forth between the view and the table. For the production version, once this annoying issue is resolved, the Where clause predicates referencing the...
May 24, 2012 at 1:19 pm
Gullimeel (5/24/2012)
Also why to use left join when you are using the where clause....
Normally, the query uses the table... the ISDELETED column shows us that the record is no...
May 24, 2012 at 1:18 pm
Something else.... The ISDELETED predicates are irrelevent in that all the tables are repointed to their corresponding view. Thus the ISDELETED is already in the statement.
May 24, 2012 at 1:13 pm
Gullimeel (5/24/2012)
This is the problem in where clauseAND ISNULL(CHILD.ISDELETED,0) = 0
'splain, Lucy...
May 24, 2012 at 1:10 pm
Lynn Pettis (5/24/2012)
What is with the hint any way? You do know the issues with using...
May 24, 2012 at 1:05 pm
Viewing 15 posts - 121 through 135 (of 163 total)