Forum Replies Created

Viewing 15 posts - 736 through 750 (of 1,034 total)

  • RE: T-SQL

    Think this would have been a better question if it had been multiple checkboxes.

    Kind of like

    + is a

    A. Addition Operator

    B. Concatenation Operator

    C. Mathematical Symbol

    D. The fifth letter of the...

  • RE: T-SQL

    Well W3 considers it an operator.

    http://www.w3schools.com/sql/sql_in.asp

    But I could also see the case that you have an IN clause with the IN operator and the results of that clause are the...

  • RE: How to become Master in SQL Server 2005

    Lynn Pettis (1/4/2010)


    A true master knows when they know less than others think they know.

    The trick is knowing where and how to find the answers to the questions where your...

  • RE: Dynamic SQL

    Sorry,

    I have to agree with Lynn.

    If you don't have a table named employees, then of course it won't work.

    Copying and pasting the query code into SSMS and running it is...

  • RE: Customizing Min/Max measures

    Actually came up with something that worked quite well.

    I created a view off of the measures table that just excluded the 0 values. And then brought that in as...

  • RE: String Parsing Hell

    Rob Goddard (11/19/2009)


    mtassin (11/19/2009)


    So far so good... except the CNXN doesn't work still.

    😀

    OK, that's my fault again. You did mention that one and I didn't add it to the...

  • RE: String Parsing Hell

    jcrawf02 (11/20/2009)


    What is this sort order doing? Other than giving you fits?

    It's going into a web based drop down combo/list box for users to select the version of software that...

  • RE: String Parsing Hell

    So far so good... except the CNXN doesn't work still.

    Msg 245, Level 16, State 1, Line 1

    Conversion failed when converting the varchar value 'CNXN' to data type int.

    Originally I wrote...

  • RE: String Parsing Hell

    Hey Rob,

    That actually works awesomely for 858/860 of my records in production.

    I didn't realize how bad this data was until I found two records it doesn't work on. (I tested...

  • RE: String Parsing Hell

    bc_ (11/18/2009)


    Not sure I follow, but what if you got rid of the @'s for sorting:

    select

    *, REPLACE(REPLACE(versionval, '@', ''), '@@', ''), CASE CHARINDEX('.', REPLACE(REPLACE(versionval, '@', ''), '@@', ''))

    WHEN 0...

  • RE: String Parsing Hell

    john scott miller (11/18/2009)


    not fully understanding

    are u saying 10.1.@ would come before 17?

    No... it's not a character comparison... as I said, my query attempt is only semi-working at this point.

    Whatever...

  • RE: T-SQL

    cengland0 (11/17/2009)


    Are you sure about that? Even if you run it in a batch?

    Even in a batch... the odds are about 50/50 that I'll get different results for the...

  • RE: T-SQL

    Lynn Pettis (11/17/2009)


    Okay, I give up. No one is really paying attention to the concept that the question was trying to bring out. Everyone is concentrating on the...

  • RE: T-SQL

    Lynn Pettis (11/17/2009)


    7:00 AM <> 2:00 PM, true

    7:00 AM MST = 2:00 PM UTC, true.

    That is the concept that the question is trying to address.

    Yes, but there are two flaws...

  • RE: T-SQL

    Ray K (11/17/2009)


    Add me to the growing contingent who protests the answer.

    I got . . .

    2009-11-16 10:37:19.917

    2009-11-16 10:37:19.930

    2009-11-16 15:37:19.930

    2009-11-16 15:37:19.930

    Looks like it's FALSE to me!!!

    The question only goes down to...

Viewing 15 posts - 736 through 750 (of 1,034 total)