Forum Replies Created

Viewing 15 posts - 946 through 960 (of 5,502 total)

  • RE: Are the posted questions getting worse?

    SQL Kiwi (9/17/2011)


    Hey Steve,

    Six posts to go.

    Cheers.

    I'm not sure but it seems like your calculation seems to be slightly off... (by two posts :-D)



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Looking for a way to return a table with a row for every word contained in a column in another table

    What did your search for the split function return? 😉



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Customer matching using in-line function instead of stored procedure

    Hi Anthony,

    here's a first draft describing the way how I would do it. Of course untested due to missing source tables and sample data.

    It might help to improve performance even...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to solve this error

    This error is caused by two (or more) concurrent processes trying to acess/modify the same data and waiting for each other to finish.

    A more detailed description can be found at...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Help! I've killed a client! Merge Replication

    And where did you bury the client? :ermm:



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Looking for a way to return a table with a row for every word contained in a column in another table

    Unfortunately, there are no sample data in your post so we're left with guessing what you're looking for.

    My guess: it sounds like a split string function. Search this site for...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Customer matching using in-line function instead of stored procedure

    I'm wondering why the code is written in a way that even if the first search block (match on all fields passed) returns a single CustomerNumber, the code will proceed...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Customer matching using in-line function instead of stored procedure

    Please also post the code for the IARTS.dbo.CDV() function.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Customer matching using in-line function instead of stored procedure

    You're dealing with a "catch-all"-query here. But that might be just because of the way the "outer logic" is implemented.

    How do you use this sproc (What code calls it)?

    It might...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Top and Group By

    Under almost any circumstances, a function will be faster than a c.u.r.s.o.r. * cough*.

    Especially, if it's an iTvF (inline-Table valued function).

    Depending on the size of the sproc, you could open...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: I need to improve this query I have attached here

    It looks like the major issue is the table scan of the Diagnosis table and the Hash Match against TempMu. You might want to add an index on Diagnosis.ICD9 and...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Top and Group By

    The PARTITION BY argument of the ranking functions can be seen as an "implicit GROUP BY".



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Top and Group By

    Hi Gregory, it's been a while ;-):cool:

    you could try something like

    WITH cte as

    (

    SELECT

    CustomerNumber,

    ROW_NUMBER() OVER(PARTITION BY CustomerNumber ORDER BY IssuedDate desc ) AS row

    FROM TableA

    )

    SELECT *

    -- DELETE

    FROM cte

    WHERE row...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: I need to improve this query I have attached here

    Another information that has been asked for is the actual execution plan.

    As a pot shot I would probably extract the relevant data from Medication and Allergy into a temp table...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Are the posted questions getting worse?

    GilaMonster (9/16/2011)


    I suspect this got lost in all the 'helping Grant abuse SQL' posts...

    Another request:

    I'm bunking tonight and starting the rewrite of my rather old (and second-ever) article Managing Transaction...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 15 posts - 946 through 960 (of 5,502 total)