• T.Ashish (4/10/2013)


    Hard coded value is coming from SITE_AC table. Now it is not there because I had removed some rows from script to reduce the size of attachment. you can put any value.

    When you run your Big Query, do you have a WHERE clause as you do in your sample? Like this:

    WHERE site_id =

    If so, where does the value ('0a1705011715553107773972') come from? Is it a parameter?

    “Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden