Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2801

Re: Problem with join returning zero rows

$
0
0

I have seen this before.  It is not clear from your other answers if you have an HG index on each individual column of the join.

 

e.g. create an HG index on each of T1.ID and T2.ID.  Only if they are the only columns already identified as Pkey, Fkey or Akey do you not have to index them, as those are automatically indexed.  If the column is part of a composite key, still HG index each separate column.

 

(You can also add an HG to your search argument if you like).

 

Can you post a query plan (HTML) with query_plan_after_run = 'off' to see the estimates?

 

Chris


Viewing all articles
Browse latest Browse all 2801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>