Forum Replies Created

Viewing 15 posts - 45,136 through 45,150 (of 59,063 total)

  • RE: help me to know

    vaibhav_vasani (2/15/2009)


    I working on my final year project ... no matter if copy code.

    So much for the first rule of DBA's... ethics.

  • RE: Building a view to get summary data from multiple tables

    But, I liked the parenthesis... 😛

  • RE: Sql Query problem

    "IT is working..."

    What is working?

  • RE: Sql Query problem

    Be very careful... the recursive CTE method will be slower than even a poorly formed cursor.

  • RE: count of consecutive value

    Looks fine to me, Andrew. Sorry for the panic, but I went into a panic when I saw that the group numbers weren't unique across items when I was...

  • RE: Need to generate random ID between 1 and 5

    Mark (2/12/2009)


    DECLARE @PerDay INT

    SET @PerDay = 2

    SELECT

    ORDER_DT = DATEADD(d,t1.N-1,DATEADD(yy,DATEDIFF(yy,0,GETDATE())-1,0)),

    ORDER_QTY = ABS(CHECKSUM(NEWID()))%1000+1, --<== Stole from Jeff

    ...

  • RE: count of consecutive value

    Ok... now I trust it... just gotta remember to NOT let the fact that GroupNums aren't unique across items but the combination of Item and GroupNum works as expected when...

  • RE: count of consecutive value

    Yeah... that fixes it... or at least for this particular problem...

    ;WITH

    cteRowNumItem AS

    (

    SELECT SampleDate,

    Item,

    ...

  • RE: count of consecutive value

    Jeff Moden (2/14/2009)


    RBarryYoung (1/31/2009)


    Heh. You know Jeff, I think that this might change that article that you're writing, just a little bit. I bet you don't mind too...

  • RE: how to split following string

    bkDBA (2/14/2009)


    Brian Karcher

    I'm the IT Manager at Progessive Metal.

    Thanks, Brian. My short term memory is pretty well shot... correct me if I'm wrong, please... you weren't one of the...

  • RE: count of consecutive value

    RBarryYoung (1/31/2009)


    Heh. You know Jeff, I think that this might change that article that you're writing, just a little bit. I bet you don't mind too much though....

  • RE: SQL or Oracle

    Max (2/14/2009)


    I thought people got that impression because Unix was a slim, unbloated platform whereas windows was FAT :w00t:

    😛

  • RE: One time update

    It's obvious that you took the path to the dark side or you would have simply said that you used the Identity column. World of hurt awaits you with...

  • RE: Query Tune

    No problem... looking back at it, I can see how someone might mistake it. Thanks for the feedback, Andrew.

  • RE: Group cumulative data

    Nice eye, Milla. Guess I need more coffee.

Viewing 15 posts - 45,136 through 45,150 (of 59,063 total)