Forum Replies Created

Viewing 15 posts - 46 through 60 (of 76 total)

  • RE: Aggregate Query question

    Chris,

    OK. I have to give a bit more info while trying to keep the complexity from exploding. Essentially, what I'm looking for can be expressed against ColdCase's DDL with...

    DECLARE @Quantity_Limit...

  • RE: Aggregate Query question

    So, I tried adding a Constant, but no tuples are returned...

    IF OBJECT_ID('TempDB..#Temp') IS NOT NULL

    DROP TABLE #Temp;

    CREATE TABLE #Temp

    (

    iD ...

  • RE: Aggregate Query question

    CC - the problem is that they don't have a common ID to group on, which is why I was struggling with the HAVING clause. I've considered adding a 'constant'...

  • RE: Aggregate Query question

    >>Are you looking for ANY combination of Items where the quantity = 10 (or whatever number), or per-item?

    Any combination of Items.

    >>Also, would you consider it valid, if looking for...

  • RE: Overusing Identities

    So, in debugging a report to find a needle in a haystack last week, I was reminded of this topic/thread. One of the LOB apps our PUD uses tracks Utility...

  • RE: The Missing Certification

    Jack Corbett (3/24/2010)


    Les Cardwell (3/24/2010)

    If you are doing a platform agnostic cert then Celko would work, but for a SQL Server specific cert, then he might not be the best...

  • RE: The Missing Certification

    Steve Jones - Editor (3/24/2010)

    I'd like to see this start going, though I think we need a forum, and a long debate on the PASS site. We probably also need...

  • RE: The Missing Certification

    I got tired of the Certification merry-go-round back in the early 2000's (which can become insane and a significant $ drain) and decided in stead to spend my $ on...

  • RE: Denormalization Strategies

    Thx Lynn... good to know. Still, alligators and all that... :unsure:

  • RE: Denormalization Strategies

    Actually, this:

    WHERE P_MS.DateReceived > getdate() - 365

    can use an index on DateReceived. The function call is on the right of the conditional and will only be calculated...

  • RE: Denormalization Strategies

    Also, this:

    DECLARE @selectDate = getdate()-365

    won't work. In SQL Server 2008 it needs to be like this:

    DECLARE @selectDate datetime = getdate()-365

    For what it's worth, it doesn't work in 2005 either.

    Cannot...

  • RE: Denormalization Strategies

    In spite of the criticism, it was still a simple example of minimal denormalization to achieve an end result rather than a full-on explosion of wide rows to reduce the...

  • RE: Overusing Identities

    roger.plowman (3/3/2010)


    David and Len (Les actually :cool:) seem to be from a mathematics background. From that perspective their points about the relational model are entirely valid.

    Well, initially music on my...

  • RE: Overusing Identities

    RalphWilson (3/2/2010)


    Actually, A PK (or Primary Key) is the primary means within the database for identifying the row in question. Its main use is in PK-FK linkages or in...

  • RE: Overusing Identities

    RalphWilson (3/2/2010)


    Excuse me but what DBMS allows you to create a P that is NO unique and why are you using it?

    In most DBS's that I have used, a PK,...

Viewing 15 posts - 46 through 60 (of 76 total)