Forum Replies Created

Viewing 15 posts - 391 through 405 (of 454 total)

  • RE: T-SQL: Why “It Depends”

    Joe Celko (3/16/2010)


    Excellent piece of work!

    I wonder how "MAX(sale_date) OVER (PARTITION BY product_nbr)" would do?

    It depends.

    C'mon, someone had to say it! ; )

    Dave62 (3/16/2010)


    Clearly, the answer "it depends"...

  • RE: What's the count?

    wall str33t (3/11/2010)


    A better question might be is there a difference between count(*) and count(col).

    Many people don't know the subtleties between them.

    Rather than re-answer that question, I'll provide a...

  • RE: Code Writing Code

    From your editorial, I expected Buck Woody's post to be quite different from what it was. His focus is on generic tools that write code (i.e, code written by someone...

  • RE: COUNT_BIG

    sjimmo (3/9/2010)


    Good question - Thought that I knew the answer, and was wrong. Now, I have a question. I ran the following against an existing database to prove/disprove the answer,...

  • RE: How to use Database mail feature in SQL Server 2000

    jinlye (3/9/2010)


    From the article:


    It might take a few more years before all of the existing SQL Server 2000 applications are upgraded to newer versions of SQL Server.

    SQL 2000 SP4...

  • RE: Cast vs. Convert

    Rune Bivrin (3/8/2010)


    Good question, but which alternative is correct depends on how you define platform. If you define "platform" as "versions of SQL Server", then CONVERT works in every version...

  • RE: Cast vs. Convert

    I've done a lot of SQLXML programming with simple queries in XML files and XSLT files to transform those query results to HTML pages. I used CONVERT a lot to...

  • RE: Decoupling in Relational Databases

    shan plourde (3/2/2010)


    Why a surrogate PK in the User/Group table?

    Edit: I misread your question as "tables" and explained why I would want ones in the User and Group tables, respectively....

  • RE: SARGable

    Dietmar Weickert (2/26/2010)


  • No info about indices on the table/view to be queried? Who could potentially know about SARGable operators. And even if there were this information, who is able to...

  • RE: The R2 Penalty

    Elliott W (2/17/2010)


    Clive Chinery (2/17/2010)


    Steve Jones - Editor (2/17/2010)


    I do think it's unfair that we cannot buy an older product that meets our needs.

    I agree.

    Doesn't this exist outside the...

  • RE: SELECT setter

    john.arnott (2/11/2010)


    <rant on> I can't imagine that 85% of respondants actualy knew the result of the SELECT

    where the condition is false would not be assigned to the variable. </rant>

    What...

  • RE: Time Bomb Coding

    Samuel Vella (2/10/2010)


    Storage is cheap, CPU cycles wastes energy!

    I take it you've never compared the power usage of even a small SAN to that of a midsized database server... Storage...

  • RE: Forecasting with SQL

    Martin Vrieze (2/9/2010)


    When these forecasting tools are used to base critical business decisions that impact people's lives and livelihoods, PLEASE be sure and leave this type of work to the...

  • RE: Multi-statement execution

    Very good question. You can find some documentation supporting this behavior here:

    http://msdn.microsoft.com/en-us/library/aa933206(SQL.80).aspx

    Specifically:

    If execute_statement is used with INSERT, each result set (my emphasis) must be compatible with the columns in...

  • RE: Wildcard

    To be strict, the source data was a red herring. A where clause shouldn't be based on the data you have, but the data you want.

    In this case, for example,...

  • Viewing 15 posts - 391 through 405 (of 454 total)