Forum Replies Created

Viewing 15 posts - 31 through 45 (of 621 total)

  • RE: Not getting results expected from a Group by query

    Here are the DDL for the tables

    Here is the data for Shelter table:

    Michael, did you read the link I posted yesterday? *All of it*? You are heading in...

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

  • RE: Pivot to produce a timetable

    kevin.phillips

    Thanks again for all the code, but more importantly your reasoning and discussion behind why you did what you did. At least now I'll have some knowledge and some examples...

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

  • RE: Better Way to Perform this Query

    wolfkillj

    it's been about six weeks since my "real" work has allowed me any time to tinker with it.

    Don't you just hate when that happens? I think I'm going for...

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

  • RE: I'm trying to create a proc that will drop and create a function

    CELKO

    You do not know how to program in SQL to the point you are danger to your employer and the public. Please think about that.

    Joe, you do not...

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

  • RE: Pivot to produce a timetable

    dwain.c My personal preferences in cases like this is to combine the calendar (time slot) generation with the Tally table

    Yep, mine is to always keep things as separate and granular...

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

  • RE: Not getting results expected from a Group by query

    Michael, read this article, then post some sample data and ddl. http://www.sqlservercentral.com/articles/Best+Practices/61537/. It's hard to figure out what you are trying to get at without seeing what you...

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

  • RE: Convert space seperated string into rows - but with associated id field

    Oliver, you could try this... http://www.sqlservercentral.com/articles/Tally+Table/72993

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

  • RE: Return the last month's record base on specific day

    Michael Valentine Jones

    Your example doesn't make sense according to your stated requirement.

    The prior month for next month, February, would be Jan 2013, but 4 and 5 are for Jan...

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

  • RE: Return the last month's record base on specific day

    AllHype, is this for a class? You should read this article, http://www.sqlservercentral.com/articles/Best+Practices/61537/

    , then post your sample data, ddl, and what you have tried so far. You do not...

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

  • RE: Better Way to Perform this Query

    Alan.B

    That Levenshtein business is a little more complicated than I thought. I am going to keep at it and I'm dying to see what Dwain puts together.

    I kind of thought...

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

  • RE: Pivot to produce a timetable

    Kevin, also, I did not notice this was your first post, so welcome to the forum, and thank you for posting sample data as you have. You will notice...

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

  • RE: Pivot to produce a timetable

    Kevin, there's some good stuff around about how to make calendar/schedule tables. Anyhow, I have a couple of questions. Do you want to see vacant time slots when...

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

  • RE: what is Scalability of Database

    In addition to the above two explanations, you also need to think about whether or not your code will scale well. For example, you might have a table with...

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

  • RE: Better Way to Perform this Query

    dwain.c

    Looks like you may have beaten me to it.

    Oh, don't worry about that, Dwain. Admittedly, I did look at it thinking it was only a minor tweaking of Alan's...

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

  • RE: TSQL for Financial Settlements

    Oh, I heartily agree with you Jeff...but as long as they keep askin'.

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

Viewing 15 posts - 31 through 45 (of 621 total)