Forum Replies Created

Viewing 15 posts - 1,231 through 1,245 (of 9,707 total)

  • RE: Are the posted questions getting worse?

    Michael L John (12/18/2016)


    I left one thing out. I neglected to tell any of the other departments, like support,the names of the new servers.

    That's not leaving something out. That's...

  • RE: Are the posted questions getting worse?

    TomThomson (12/17/2016)


    Brandie Tarvin (12/12/2016)


    Gah. Less than a week until my parents visit for two weeks and I catch a cold. The last thing I need to do is give it...

  • RE: replace null with another column

    Rasmus Remmer Bielidt (1/5/2017)


    I've had to troubleshoot queries where the developer had forgotten an ELSE clause and the whole thing returned NULL (which was not expected).

    this will yield NULL due...

  • RE: replace null with another column

    Rasmus Remmer Bielidt (1/5/2017)


    Brandie Tarvin (1/5/2017)


    Rasmus Remmer Bielidt (1/5/2017)


    Both options have their uses for sure.

    I didn't see anybody making this point, but COALESCE() absolutely needs a non-null argument or it...

  • RE: replace null with another column

    Rasmus Remmer Bielidt (1/5/2017)


    Both options have their uses for sure.

    I didn't see anybody making this point, but COALESCE() absolutely needs a non-null argument or it will throw an error where...

  • RE: replace null with another column

    drew.allen (1/4/2017)


    CASE is clearly more flexible than COALESCE, because it can perform any conditional test whereas COALESCE only tests whether an expression is NULL, and because it can return any...

  • RE: Non-alphanumeric Search Frustration

    Alan.B (1/4/2017)


    Sorry for the off-topic rant; just some food for thought.

    Not at all off topic. You made some very good points. As did Luis about using the functions.

    Thank you both...

  • RE: Non-alphanumeric Search Frustration

    Eric M Russell (1/4/2017)


    If the user entered codes are not relationally tied to any other table, then what are the ramifications of them being entered "wrong" ?

    As I said, these...

  • RE: Non-alphanumeric Search Frustration

    Just to clarify. The data is coming from a vendor-created database. I cannot make changes to it. I can, however, send emails to the users saying "Fix this item, it...

  • RE: Non-alphanumeric Search Frustration

    Eric M Russell (1/4/2017)


    As a side note, it would be great if all valid codes could be pre-loaded into a primary keyed master table, then data validation could be enforced...

  • RE: Non-alphanumeric Search Frustration

    Luis Cazares (1/4/2017)


    Does this works?

    IF (SELECT OBJECT_ID('tempdb..#MyTemp')) IS NOT NULL

    DROP TABLE #MyTemp;

    CREATE TABLE #MyTemp (QuestionableColumn CHAR(20));

    INSERT INTO #MyTemp (QuestionableColumn)

    VALUES ('ABC1GKUCEEF7AR169582'), --Good value

    ('ABC2G1WG5E37D1157775'), --Good value

    ('BCD3GTU2TEC9FG119962'), --Good...

  • RE: Non-alphanumeric Search Frustration

    Thom A (1/4/2017)


    Brandie Tarvin (1/4/2017)


    Thom A (1/4/2017)


    I'm a little confused,on one part. You stated that "a hyphen is only allowed after the first character", however that the value "ABC-1245Z" is...

  • RE: replace null with another column

    drew.allen (1/4/2017)


    Brandie Tarvin (1/4/2017)


    I like CASE personally because it allows me to alter values being returned (or add new information) where as COALESCE just returns the original value.

    But you can...

  • RE: replace null with another column

    The main differences between CASE and COALESCE() are that COALESCE() is faster to type and CASE gives you other data manipulation options. Otherwise, they are mostly identical in the way...

  • RE: Non-alphanumeric Search Frustration

    Thom A (1/4/2017)


    I'm a little confused,on one part. You stated that "a hyphen is only allowed after the first character", however that the value "ABC-1245Z" is acceptable. The hyphen is...

Viewing 15 posts - 1,231 through 1,245 (of 9,707 total)