Forum Replies Created

Viewing 15 posts - 2,026 through 2,040 (of 6,486 total)

  • RE: Are the posted questions getting worse?

    Jeff Moden (1/17/2009)


    Grant Fritchey (1/17/2009)


    Ninja's_RGR'us (1/17/2009)


    So what?, only 2 people on that thread answered without reading (or understanding) the question.

    Since when reading the full question a requirement of posting an...

  • RE: Why do people need to do this?

    If you were a marketing person for CDW - knowing what the top five selling products are within each sales department would be something important. The last x times...

  • RE: someone dropped tables

    I know this might not be the gearhead way to do this, but the Schema history report does the accessing of the default trace for you. Just simply right-click...

  • RE: Select Where_Min()

    Ramesh (1/16/2009)


    The only obvious reason I am thinking of is that the optimizer has to do a "Scalar Operation" on RANK() & ROW_NUMBER() whereas "Aggreagate Operation" on MIN() function....

    Agreed -...

  • RE: Select Where_Min()

    RBarryYoung (1/15/2009)


    Ramesh (1/15/2009)


    Since you are using SQL 2005, you have the windowed functions and the OVER clause....

    Here is that query

    SELECT *

    FROM (

    ...

  • RE: CROSS APPLY VERSUS INNER JOIN

    Wow - she's fast!!!! Beat me to it!

  • RE: CROSS APPLY VERSUS INNER JOIN

    Jack Corbett (1/15/2009)


    The APPLY operator is designed for use against table valued functions while JOIN is for tables. They are not interchangeable.

    not SUPPOSED to be interchangeable.

    Not to niggle excessively,...

  • RE: Select Where_Min()

    Just be careful of the possible perf pitfall with the windowed Aggregate function. Keep in mind that that will get evaled for EACH ROW in the rowset (which is...

  • RE: Are the posted questions getting worse?

    Steve Jones - Editor (1/15/2009)


    Well it is steel, and likely move's fast in Gail's hands, but no, it's not a bike.

    http://en.wikipedia.org/wiki/Katana

    Got to play with sticks last night, Filipino style last...

  • RE: How many times is function invoked in where clause?

    Lowell (1/14/2009)


    Matt that's interesting, i didn't know about WITH SCHEMABINDING to a function...

    does the results have to come from a SELECT statement in order to be deterministic?

    I'd assume that an...

  • RE: How many times is function invoked in where clause?

    rules of thumb:

    - unless you mark a user defined function as SCHEMABINDING (to signify that it is deterministic), the function will essentially be run once per line.

    - the...

  • RE: Zero Not Being Interpreted As CHAR

    It has to make a decision once and for all what data type each column is going to be. In order to do that - it has to look...

  • RE: Default vs Customer-Specific Descriptions

    If you assigned a "default" customer ID other than NULL, you could then enforce a unique constraint (to prevent duplicate customer+cat entries)

    As for me - I'd look at:

    ;With CatInnerCTE as

    (select...

  • RE: Remove Character From String

    how about

    update mytable

    set myfield = replace(myfield, '"','')

  • RE: Zero Not Being Interpreted As CHAR

    You need to make all of the values being returned the same type. In your case - two of them at CHAR, one is INT. Because of that...

Viewing 15 posts - 2,026 through 2,040 (of 6,486 total)