Forum Replies Created

Viewing 15 posts - 361 through 375 (of 621 total)

  • RE: Trouble Creating View based on Max Values and Group By

    Well that's just what I was going to say:) However, a viral infection in my throat made me miss work. Thanks Seth.

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Trouble Creating View based on Max Values and Group By

    Try this

    CREATE VIEW MAX_EXPIRATION AS

    SELECT

    t1.ID,

    t1.MaxExpirationDate,

    m.MemberGroup

    FROM member m,

    ...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Row Count Spool/Lazy spool

    Ok, I'm fairly certain its the NOT IN clause that is the hog. Mainly because it shows the code in the hover box that pops up in the execution...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: cross tab

    Try this

    http://www.sqlservercentral.com/articles/T-SQL/63681/

    It should answer most of your questions.

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Get Missing Data with Tally Table

    Jeff, I lost quite a few brain cells on this one, as it was just a bit over my head, and would be interested to see your solution, using...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: How to Display Data Vertically?

    Garadin (12/22/2008)


    Please provide sample data and table structure. Displaying data *vertically* is not normally an issue, as that's how tables are usually constructed in the first place.

    It seems like...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: debugging stored procedure temp table in Query Analyzer

    Why can't you run the parts of the procedure up to the point the temp table is created and populated, then do a SELECT * from the temp table?

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: compressing / collapsing numbers

    I think they need to start a section for 'Best humor of the day', or maybe month. I gotta say, I'm not sure where I laughed harder...at this post,...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: compressing / collapsing numbers

    Garadin (11/3/2008)


    Trying... to... resist...

    Gah.

    Seth, I was rolling laughing at that. I'm a huge Dilbert fan, so any time I see 'Gah', it elicits strong images of Dilbert struggling against...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: compressing / collapsing numbers

    juergen, this will give you what you want based on your sample data.

    SELECT

    from_idnr = MIN(idnr),

    to_idnr = MAX(idnr),

    ...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: How to print null when no sales is present

    Shree, I tried a direct copy and paste of your code, commented out the WHERE clause, and the result was as follows:

    ABC12344

    DEF45677

    GHI89010

    When you say "print", what exactly do you mean?...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: How to print null when no sales is present

    Try ISNULL(S.Sales,0) in the SELECT.

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Nested loop in a single table

    phillip.hess (10/29/2008)


    I don't mind reading, I just need point in the right direction.

    Thanks

    -Phillip

    Check out 'Expanding hierarchies' in Books Online. If you mess around with the example you might have...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Need help with syntax

    Seth

    Thank you so much for the time and thought you put into this. I tested it against a production table, and it purred like a kitten. It never...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Assigning current of _Cursor to local @variable

    Jeff Moden (10/28/2008)


    Greg Snidow (10/28/2008)


    I know this is a SQL forum, but there are times when I, and this is just me, find it easier to do this kind of...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

Viewing 15 posts - 361 through 375 (of 621 total)