Forum Replies Created

Viewing 15 posts - 151 through 165 (of 1,033 total)

  • RE: A case statement in the from clause?

    Pirate92 (1/23/2013)


    SELECT C.FIRSTNAME,C.LASTNAME,A.ADDRESS1,A.ADDRESS2,A.CITY,A.STATE,A.POSTALCODE,A.COUNTRY,

    C.WORKPHONE,C.EMAIL,EH.ENROLLSTATUS

    FROM SYSDBA.EVXENROLLHX EH

    INNER JOIN SYSDBA.EVXEVENT E ON EH.EVXEVENTID = E.EVXEVENTID

    INNER JOIN SYSDBA.EVXEVTICKET ET ON EH.EVXEVTICKETID = ET.EVXEVTICKETID

    INNER JOIN SYSDBA.CONTACT C ON ET.ATTENDEECONTACTID = C.CONTACTID

    CASE

    WHEN DESCRIPTION LIKE 'Shipping%' THEN...

  • RE: SQLSERVER 2010 into 2005

    There is no such thing as SQL 2010. Are you perhaps talking about Visual Studio 2010? If so, is it a database project? You probably could deploy...

  • RE: BIT data type

    mbova407 (1/22/2013)


    Good question but this real doesn't have to do with the data type bit but instead about reading double negatives

    IF NOT EXISTS (SELECT 1 WHERE @BIT IS NOT...

  • RE: SQLSERVER 2010 into 2005

    There is no such thing as SQL Server 2010. I believe you are referring to SQL 2008 R2.

    In either case, you won't be able to detach and attach, or...

  • RE: Number of Rows

    mtassin (1/18/2013)


    Koen Verbeeck (1/18/2013)


    Always hard to answer a question with no documented behaviour without running it 😉

    You can still get it wrong like I did...

    SQL 2008R2 RTM - No...

  • RE: Number of Rows

    Koen Verbeeck (1/18/2013)


    Always hard to answer a question with no documented behaviour without running it 😉

    You can still get it wrong like I did...

    SQL 2008R2 RTM - No rows...

  • RE: TRY...CATCH

    Blah... I hate to get it wrong because I absentmindedly clicked on False and didn't pay attention and clicked submit when I was trying to select True.

    Lol... -1 point for...

  • RE: Ghost Cleanup

    Good question Wayne. Thanks!

  • RE: T-SQL 2012 #2

    Koen Verbeeck (1/14/2013)


    Great question about a new 2012 feature. Thanks Ron!

    I must concur... that's a neat function that I had missed. I got this one right because there was...

  • RE: SubQuery

    Hugo Kornelis (1/11/2013)


    P.S. The article by Pinal Dave that is referenced only compares anti-semi-join with NOT IN, not with NOT EXISTS; they are not always equivalent (when NULL values can...

  • RE: SubQuery

    Thanks for an easy one

  • RE: Precedence in math

    mbova407 (1/10/2013)


    I would have thought

    SELECT @a + @b-2 * @C AS 'Result #4'

    would have been more challenging without the parentheses for most...

  • RE: Precedence in math

    SQLRNNR (1/9/2013)


    I completely disagree.

    Only for the sake of creating discord, malcontent, and to be argumentative because there is nothing in the question to whine about otherwise.

    How about the 2% who...

  • RE: SQL JOINS

    Koen Verbeeck (1/8/2013)


    Not sure what this question tries to teach us.

    I spend 5 minutes looking for a mistake, only to finally decide there wasn't one, all joins seemed legit. I...

  • RE: Coalesce and Conversion

    Koen Verbeeck (1/8/2013)


    Great and very interesting question. Thanks Tom!

    +1 I must agree... was a lot of fun to sit there pondering if all of the various data types would be...

Viewing 15 posts - 151 through 165 (of 1,033 total)