Forum Replies Created

Viewing 15 posts - 4,741 through 4,755 (of 5,590 total)

  • RE: Help- Very Complex SQL query

    Paul White (2/23/2010)


    WayneS (2/23/2010)


    Paul White (2/22/2010)


    Totally awesome job there Wayne.

    Fixed that for you, Paul. 😀

    ... but seriously, Thanks!

    :laugh: funny :laugh:

    Payback... just couldn't resist. 😛

  • RE: SQL LOOP - with variables for date inserts to a table

    Loops, by their very nature, process things Row-By-Agonizing-Row. SQL is a set-based language, and thus performs best with set-based code.

    If you provide the DDL scripts (CREATE TABLE, CREATE INDEX, etc.)...

  • RE: While Loop for Inserts from Read-only Function

    Nugby (2/22/2010)


    Sorry, the Function produces Fund Manager Information, e.g. Manager Name, Portfolios, Securities, Net Asset Values etc. It's table-based as you can therefore imagine.

    ...

    To reiterate, can someone can confirm...

  • RE: Help- Very Complex SQL query

    Paul White (2/22/2010)


    Totally awesome job there Wayne.

    Fixed that for you, Paul. 😀

    ... but seriously, Thanks!

  • RE: Are the posted questions getting worse?

    RBarryYoung (2/22/2010)


    Hey! I almost missed this, but Itzik Ben-Gan gave me kudos in his column this month for solving on of his 'unsolveable'(?) puzzles! How come no one...

  • RE: better way to rewrite this code

    You know, the people that help out here are all un-paid volunteers. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables affected, and INSERT statements to put...

  • RE: While Loop for Inserts from Read-only Function

    You don't mention if:

    1. What the function returns (datatype), and

    2. Whether this is a table-valued function, or a scalar-valued function.

    So, assuming that this is a table-valued function that returns a...

  • RE: Help- Very Complex SQL query

    Paul White (2/22/2010)


    WayneS (2/22/2010)


    I must have missed the updated requirements... let me look at what those are and see what I can do.

    The updated test data setup script is in...

  • RE: FizzBuzz

    Steve Jones - Editor (2/22/2010)


    Thanks, John. Hopefully it will be done tomorrow 🙂

    Nope... Gus seems to be the type that would have the code finish 'bout the time the weekend...

  • RE: FizzBuzz

    reidres (2/22/2010)


    Jeff,

    I don't want people on my team optimizing for trivial things, and the constraints of the project define those things. Speed may not be essential, or it may....

  • RE: dynamic sql issues

    If you use sp_executesql, the dynamic string can be set up so that all variables are parameters, and the parameters also passed in thru sp_executesql. As you add/drop lines in...

  • RE: FizzBuzz

    Ivanna Noh (2/22/2010)


    ok - but does the code look ok?

    I welcome constructive criticism 🙂

    I think you want to change your INNER JOIN to a CROSS JOIN (which means remove the...

  • RE: FizzBuzz

    Sean-752587 (2/22/2010)


    Hi jcrawf02

    How would you change it to avoid the cast?

    like this... you don't need to cast ROW_NUMBER to an int... it already is

    select top 100

    case

    when ROW_NUMBER() over...

  • RE: FizzBuzz

    GSquared (2/22/2010)


    Just to annoy Jeff, here's my "ultimate version":

    SOM! :w00t:

  • RE: Are the posted questions getting worse?

    Paul White (2/22/2010)


    tstaker (2/22/2010)


    I'll second this one... I'd love to see a good article on APPLY.

    Ok, ok! I'll give it some thought...:cool:

    Well??? Haven't you had enough time to think...

Viewing 15 posts - 4,741 through 4,755 (of 5,590 total)