Forum Replies Created

Viewing 15 posts - 21,256 through 21,270 (of 26,490 total)

  • RE: SQL

    lungy (4/29/2009)


    ja i have removed commented part AND still my front gives me the same error so it does not work

    The original code is this one which gives me this...

  • RE: Are the posted questions getting worse?

    GilaMonster (4/30/2009)


    RBarryYoung (4/30/2009)


    Glad Gail got to him first, she always handles these very professionally. I would have had him two feet off the ground, grasping at his own throat.

    That's...

  • RE: Help on purging old records

    Here is an updated test suite.

    create table #Order (

    OrderId int,

    DeliveryDate datetime,

    Price money,

    UnitId int,

    ...

  • RE: Help on purging old records

    HOWEVER!

    What other status codes are possible, and is it possible that one order may have multiple statuses? I'm sure you only want to delete orders where all the items...

  • RE: Help on purging old records

    Florian Reischl (4/30/2009)


    Apologize twice...

    1st) I didn't see Lynn's answer

    2nd) I forgot the "WHERE Status = 'Completed'" in my statement. Just corrected.

    Greets

    Flo

    Flo,

    No apologies needed. Your solution is the one I...

  • RE: Help on purging old records

    Okay, took a bit of thinking, and it is possible someone else may have a better idea but this works with your test data. You need to test further...

  • RE: SELECT AVG() causing arithmetic overflow?

    pdb DBA (4/30/2009)


    Well here's my thinking (which is probably a bit twisted...) on it and why this didn't occur to me at first...

    Sure, I know it *returns* the same value,...

  • RE: SELECT AVG() causing arithmetic overflow?

    pdb DBA (4/30/2009)


    Yeah, that did it. Odd, though. Seems to me that the function should anticipate something like that.

    the AVG returns the same type as entered. Since...

  • RE: SSC Members Name

    Nope, just would have written it with a CTE instead of a derived table.

  • RE: Find # of active days based on status records

    John Deupree (4/30/2009)


    Lynn Pettis (4/29/2009)


    Are you looking for the date range a customer was active, or are you asking how many days a customer was active given a specified data...

  • RE: Are the posted questions getting worse?

    Yes, Barry, glad to see you back! Take it easy for a few days.

  • RE: Help on purging old records

    trans54 (4/30/2009)


    Sorry, maybe i did not explained correctly or did not provide enough information.

    If any record in the orderid group has unit 89 then completly skip this orderid from purging...

  • RE: Original Theatrical Release of Star Wars

    I was spending a month with a friend in California the summer I graduated from high school and saw it the first time there. I saw several times again...

  • RE: Find # of active days based on status records

    WayneS (4/29/2009)


    John Deupree (4/29/2009)


    What I need to know is how many days each consumer was active between 2 dates. Note that you can go from inactive back to active...

  • RE: restore differential error

    The quick and easy answer is that the full backup you restored was not the base full backup for that particular differential backup.

    When I have to restore a database, usually...

Viewing 15 posts - 21,256 through 21,270 (of 26,490 total)