Forum Replies Created

Viewing 15 posts - 256 through 270 (of 1,228 total)

  • RE: Ranges that have excluded ranges

    Sean Lange (2/6/2014)


    ChrisM@home (2/6/2014)


    Hey Luis I don't know if you can see what I've just seen on this funny little mobly but you my friend may just be the first!...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Different Index - More number of physical reads

    How are you choosing index 2 over index1?

    Why would you choose index 2 over index1?

    What happens when you run each query two or three times?


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Number of Records Affected

    jayoub (2/6/2014)


    ... if the number match up ...

    What do you mean by this, Jeff? Match up with what exactly?


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Ranges that have excluded ranges

    Hey Luis I don't know if you can see what I've just seen on this funny little mobly but you my friend may just be the first! Whether you are...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: How To Simplify Code Structure

    Any time. Have a look at LIKE in Books Online when you get the time, it's tremendously useful.


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: How To Simplify Code Structure

    Use NOT IN ().

    Why are you using LIKE?


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: materialized view right course for a datamining query with 7 joins?

    Post the actual execution plan as a .sqlplan attachment - there may be scope gor optimisation that you've missed.


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Linked server error

    p.swathi4 (2/3/2014)


    I had setup linked server and when i query the it gives me below error.

    QUERY:

    SELECT top * from [Servername].[WH_SYSTEM].[dbo].T_ENCOUNTER_PHYSICIAN

    WHERE PhysicianID LIKE '[0-9]%'

    Output:

    Msg 7357,Level 16, State 2, Line 1

    Cannot process...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Linked server query error

    p.swathi4 (2/3/2014)


    I had setup linked server and when i query the it gives me below error.

    QUERY:

    SELECT top * from [Servername].[WH_SYSTEM].[dbo].T_ENCOUNTER_PHYSICIAN

    WHERE PhysicianID LIKE '[0-9]%'

    Output:

    Msg 7357,Level 16, State 2, Line 1

    Cannot...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Please help me with this year(date) totals comparing to column values in same table

    Try this. The results are very close to your desired results set, and I can't tell if it's because the arithmetic in the query requires modification or if the desired...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Help finding an old post

    Michael Meierruth (2/2/2014)


    Jeff Moden (2/1/2014)

    There is a method that'll blow the doors off of even LAG but a lot of people are afraid of it.

    Thus are you referrring to CROSS...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Please help me with this year(date) totals comparing to column values in same table

    Jeff Moden (2/1/2014)


    Your requirements are a bit difficult to understand ...

    Exceptionally difficult. Extending Jeff's request for clarification, here's a stab at something which may help to describe the problem.

    SELECT

    CASE...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Please help me with this year(date) totals comparing to column values in same table

    asita (2/1/2014)


    Hello could anybody please assist with this

    Thank you in advance

    Please

    Can you confirm which version of SQL Server you are using? Your code fails with an error (Ambiguous column name...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: Need to query db to return all instances for Canada. (Country, State, City)

    peerless (2/1/2014)


    ...

    What should I do?

    You should investigate the results from the SELECT part of your INSERT query, not just this time, but every time. The same applies to UPDATEs and...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

  • RE: COMPARE COLUMNS OF TWO TABLES AND POPULATE THE FLAG COLUMNS

    -- always check the equivalent SELECT is returning an appropriate result set

    SELECT a.ID, b1.ID, b2.ID,

    FLAGB1 = CASE WHEN b1.ID IS NULL THEN 'N' ELSE 'Y' END,

    FLAGB2 = CASE...


    [font="Arial"]Low-hanging fruit picker and defender of the moggies[/font]

    For better assistance in answering your questions, please read this[/url].


    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]

    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]

Viewing 15 posts - 256 through 270 (of 1,228 total)