Forum Replies Created

Viewing 15 posts - 2,776 through 2,790 (of 2,838 total)

  • RE: Selecting the earliest month wrapping January to December

    scott.pletcher (6/11/2010)


    >> but when you post junior level code (non-SARG-able queries anyone?) <<

    Yes, I took the short-cut, because as *I* pointed out the code will result in full scan anyway.

    When...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: Selecting the earliest month wrapping January to December

    If you only have 3 months in your db per person at a time, then the following should work

    SELECT Person,

    CASE MonthTot

    WHEN 6 THEN 1

    WHEN 9 THEN 2

    WHEN 12 THEN 3

    WHEN...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: Are the posted questions getting worse?

    I worked for a company that had a subscription to Experts Exchange and it was rare that I'd find any worthwhile answers there. Even rarer that I'd find an answer...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: How many Records Will Get Selected

    UMG Developer (6/11/2010)


    My initial reaction was that it would return one row, but I thought this is too easy for a question worth 3 points. So I looked a little...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: How many Records Will Get Selected

    So will future "questions of the day" just be proofreading? Find the misspelled word! I think of questions of the day as testing knowledge of concepts, not spellchecks. I know...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: Are the posted questions getting worse?

    Richard Gardner-291039 (6/10/2010)


    There's no antagonism, just call football football and gay rugby gay rubgy (or hand egg), that's not a lot to ask, I think, it is logically consistent after...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: Are the posted questions getting worse?

    Richard Gardner-291039 (6/10/2010)


    Football doesn't need a new name, it has one, and has had since it was invented, giving it a new one because you've hijacked it for handegg (or...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: Are the posted questions getting worse?

    Richard Gardner-291039 (6/10/2010)


    Oh, you're talking about Hand Egg? I thought you were talking about Football....

    http://www.dailyhaha.com/_pics/hand_egg.jpg

    I would recommend you actually start watching the football, the USA actually have more than a...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: Are the posted questions getting worse?

    GilaMonster (6/9/2010)


    Stefan Krzywicki (6/9/2010)


    GilaMonster (6/9/2010)


    Am I missing something here? http://www.sqlservercentral.com/Forums/Topic934829-146-1.aspx

    Not that I can see. Base on the limited and incomplete information being provided, it does seem as if he or...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: can't add ADD CONSTRAINT

    Krasavita (6/9/2010)


    The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Base_CatalogHP". The conflict occurred in database "database1", table "dbo.Base_table1", column 'id'.".

    I get this error. I am trying to copy table...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: Are the posted questions getting worse?

    GilaMonster (6/9/2010)


    Am I missing something here? http://www.sqlservercentral.com/Forums/Topic934829-146-1.aspx

    Not that I can see. Base on the limited and incomplete information being provided, it does seem as if he or she is getting...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: Are the posted questions getting worse?

    CirquedeSQLeil (6/9/2010)


    Stefan Krzywicki (6/9/2010)


    CirquedeSQLeil (6/9/2010)


    Stefan Krzywicki (6/9/2010)


    Steve Jones - Editor (6/9/2010)


    Whoever has Cutler can keep him.

    As a Packers fan, I'm fine with him right where he is.

    Ship him to Green...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: exclude one column

    I would suggest explicity stating each column you want to return in the query even if you want to return all 20. Using * is sloppy and can give you...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: Are the posted questions getting worse?

    CirquedeSQLeil (6/9/2010)


    Stefan Krzywicki (6/9/2010)


    Steve Jones - Editor (6/9/2010)


    Whoever has Cutler can keep him.

    As a Packers fan, I'm fine with him right where he is.

    Ship him to Green bay or Minnesota...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

  • RE: Are the posted questions getting worse?

    Steve Jones - Editor (6/9/2010)


    Whoever has Cutler can keep him.

    As a Packers fan, I'm fine with him right where he is.

    Steve Jones - Editor (6/9/2010)


    I just can't see women playing...

    --------------------------------------
    When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
    --------------------------------------
    It’s unpleasantly like being drunk.
    What’s so unpleasant about being drunk?
    You ask a glass of water. -- Douglas Adams

Viewing 15 posts - 2,776 through 2,790 (of 2,838 total)