Forum Replies Created

Viewing 15 posts - 7,021 through 7,035 (of 7,597 total)

  • RE: Multivalue Parameters with Stored Procedure

    DarthBurrito (12/7/2012)


    Let me add that I'm using this SP for a SSRS report. As the code I provided stands, the SP has one parameter called Products. So the parameter accepts...

  • RE: Exercises in t-SQL

    Jeff Moden (12/6/2012)


    patrickmcginnis59 (12/6/2012)


    Jeff Moden (12/6/2012)


    patrickmcginnis59 (12/6/2012)


    Jeff Moden (12/4/2012)


    So far as no offer being extended, that's fine because I don't want to work for a company that wants a code...

  • RE: Exercises in t-SQL

    Jeff Moden (12/5/2012)


    ScottPletcher (12/5/2012)


    Jeff Moden (12/4/2012)


    ScottPletcher (12/4/2012)


    It would take far longer than 2 minutes to give the full background you wanted.

    This for a simple, introductory interview q, when I often...

  • RE: Get Rid of All Those Pesky 1 MB File Growth DB Files

    Yeah, the 10% is awful. I'm afraid I don't see the point of resetting to something almost as bad.

    Why not create default growth tables based on total size, one...

  • RE: Exercises in t-SQL

    Jeff Moden (12/4/2012)


    ScottPletcher (12/4/2012)


    It would take far longer than 2 minutes to give the full background you wanted.

    This for a simple, introductory interview q, when I often had two more...

  • RE: Calculate weekend

    Pete Cox (12/4/2012)


    YYYYMMDD is in fact the Basic date format proposed by ISO8601.

    YYYY-MM-DD is named the Extended format.

    Using either is OK by the standard.

    Excellent point, and quite correct (I just...

  • RE: Exercises in t-SQL

    Jeff Moden (12/4/2012)


    ScottPletcher (12/3/2012)


    Jeff Moden (12/3/2012)


    If I were in an interview and someone asked me such a question, my answer would be that future requirements could easily change, especially in...

  • RE: Exercises in t-SQL

    Jeff Moden (12/3/2012)


    If I were in an interview and someone asked me such a question, my answer would be that future requirements could easily change, especially in the area of...

  • RE: Select query to determine unique values

    SELECT

    GrpID, GrpName,

    ISNULL(NULLIF(MAX(CASE WHEN Spc <> 'Mixed' THEN Spc ELSE '' END), ''), 'Mixed') AS Spc

    FROM #mytable

    GROUP BY

    GrpID, GrpName

    HAVING

    MAX(CASE WHEN Spc = 'Mixed' AND PrvName =...

  • RE: plant count really high-Activity Monitor

    Hmm, something seems odd.

    SQL should be able to easily do "simple parameterization" -- the old name, "auto-parameterization", seems clearer to me -- on that query. That is, SQL should...

  • RE: SPLIT RANGE TOOK 10 HRS to Complete

    What was the status of the log file when you ran the command? How large was the log, how much space was free, and what was the Autogrowth amount?

    Be...

  • RE: Calculate weekend

    CELKO (12/1/2012)

    Please learn to use the ISO-8601 date formats; it is the only one allowed in Standard SQL and the other ISO Standards. Use the DATEADD() function for this.

    Or,...

  • RE: Exercises in t-SQL

    CELKO (12/1/2012)

    CHECK (test_nbr BETWEEN 1 AND 3),

    Seriously, test_nbr limited to 3? What about previous classes? And classes for the next semester? Test_nbr would be identifier,...

  • RE: Exercises in t-SQL

    Jeff Moden (11/30/2012)


    ScottPletcher (11/30/2012)


    Jeff Moden (11/30/2012)


    ScottPletcher (11/30/2012)


    Jeff Moden (11/29/2012)


    That's a good test question, Scott. The only thing I might change is requiring them to do it "in a single...

  • RE: Exercises in t-SQL

    CELKO (12/1/2012)


    I use this query as extra credit for my students when I teach a SQL class. ... This is much trickier than it sounds at first....

Viewing 15 posts - 7,021 through 7,035 (of 7,597 total)