Viewing 15 posts - 5,611 through 5,625 (of 6,486 total)
Well - examples ARE nice, but they'll actually be useful if we have some clue on how your data is laid out.
Your DDL (table structure) and some example data would...
November 29, 2007 at 9:52 pm
Good thing to walk away some times....:) your TWO subqueries look like they can be done as ONE subquery
Select
F_K_HTXTITL_HTXLINC,
...
November 29, 2007 at 7:31 pm
Scott Duncan (11/29/2007)
November 29, 2007 at 6:49 pm
welll...then...good job!!!!!
:hehe::cool::w00t:;):P:D:)
November 29, 2007 at 6:41 pm
Jeff Moden (11/29/2007)
That's a presentation issue - let the GUI folks deal with it
Heh... That would be true for outputs... imported files are a whole (or is it "hole"?)...
November 29, 2007 at 6:34 pm
k - let's focus on just one. Say - the one I updated. What indexes do you have on the tables involved?
Also - did you get a chance...
November 29, 2007 at 2:54 pm
oops - let's revise that one little bit:
select ssn, sum(maxcred) total from
(select ssn, flag, max(credit) maxcred from tmpltable group by ssn,flag) T
group by ssn
You only need to group by...
November 29, 2007 at 2:22 pm
question - is the execution on the view we were working on (old versus new) any faster?
Just curious, because the multiple nested views might be the issue.
It looks to me...
November 29, 2007 at 2:07 pm
Note: this is NOT going to scale well. If you need to do this against something big, you should be able to go get lunch, it is going to...
November 29, 2007 at 1:48 pm
Oops - forgot one thing
Select
DHT_TITLE_REFRNC_NBR as TITLE_REFRNC_NBR,
HTXLINC.DHL_LINC_NBR as LINC_NBR,
DHL_RIGHTS_IND as RIGHTS_IND,
DPR_NON_PATENT_IND as NON_PATENT_IND,
DPR_MUNC_CODE MUNC_CODE,
DPR_PROPRTY_PARCEL_ID PROPRTY_PARCEL_ID,
Linccount
from ALTA_Staging..DB_HTXLINC HTXLINC
inner join
ALTA_Staging..DB_HTXTITL HTXTITL
on HTXTITL.P_K = HTXLINC.F_K_HTXTITL_HTXLINC
inner join
(Select Count(*) as Linccount...
November 29, 2007 at 1:35 pm
Jason - exhibit A:
sandygem2k (11/29/2007)query should return all the values, even those where col1 is null.
but it is not returning those where col1 is null.
So - the syntax...
November 29, 2007 at 1:32 pm
I'm thinking you were talking to PW - check out my example - should help a little.
The trick is not to have a reference to the OUTER query in the...
November 29, 2007 at 1:24 pm
Both vwMinLTOXLINC and vwMinHTOXLINC contain multiple correlated sub-queries. The LINC_COUNT is causing the DB_HTXLINC and DB_LTXLINC to be scanned once for EACH row in the outer view. That's...
November 29, 2007 at 1:21 pm
If b has multiple rows with the SAME value in project, then it's going to "duplicate" or rather show duplicatively the same row from employee.
you could try throwing a DISTINCT...
November 29, 2007 at 1:06 pm
Jessica (11/29/2007)
The problem appears to be that the tables DB_HTXTITL and DB_LTXTITL are scanning an index instead of seeking on based on the DRE_TITLE_REFRNC_NBR column of...
November 29, 2007 at 12:35 pm
Viewing 15 posts - 5,611 through 5,625 (of 6,486 total)