More Unicode

  • Comments posted to this topic are about the item More Unicode

  • Correct answer:

    Yes, you can run this code, This returns 97

    Explanation:

    You can run this code. The CHAR variable is converted to NCHAR and the first character's value returned. An upper case 'A' is 65. Same as ASCII.

    I think the answer should be:

    Yes, you can run this code, This returns 65


    The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url]

    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs[/url]

  • Felix Pamittan (5/5/2016)


    Correct answer:

    Yes, you can run this code, This returns 97

    Explanation:

    You can run this code. The CHAR variable is converted to NCHAR and the first character's value returned. An upper case 'A' is 65. Same as ASCII.

    I think the answer should be:

    Yes, you can run this code, This returns 65

    Agree.

    "A" is 65 in both ASCII and UNICODE lists.

  • SADSAC (5/5/2016)


    Felix Pamittan (5/5/2016)


    Correct answer:

    Yes, you can run this code, This returns 97

    Explanation:

    You can run this code. The CHAR variable is converted to NCHAR and the first character's value returned. An upper case 'A' is 65. Same as ASCII.

    I think the answer should be:

    Yes, you can run this code, This returns 65

    Agree.

    "A" is 65 in both ASCII and UNICODE lists.

    Agreed

    ...

  • 😎

  • HappyGeek (5/5/2016)


    SADSAC (5/5/2016)


    Felix Pamittan (5/5/2016)


    Correct answer:

    Yes, you can run this code, This returns 97

    Explanation:

    You can run this code. The CHAR variable is converted to NCHAR and the first character's value returned. An upper case 'A' is 65. Same as ASCII.

    I think the answer should be:

    Yes, you can run this code, This returns 65

    Agree.

    "A" is 65 in both ASCII and UNICODE lists.

    Agreed

    Yup - love it when the explanation has the right answer but still marks you wrong...

  • Felix Pamittan (5/5/2016)


    Correct answer:

    Yes, you can run this code, This returns 97

    Explanation:

    You can run this code. The CHAR variable is converted to NCHAR and the first character's value returned. An upper case 'A' is 65. Same as ASCII.

    I think the answer should be:

    Yes, you can run this code, This returns 65

    +1


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    β€”Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • Agree

  • This is a disgrace I demand you give me the points that have been stolen from me in fact I want double points as compensation for the distress caused I'm going to call a lawyer

  • Another borked QotD.

  • I'm confused. Right answer is 65, isnt' it?

  • Stuff it! I got it wrong again!

    Well.. that one got me double-checking and triple checking and actually running the code in 3 different versions of SQL server. Maybe I should read the discussion about the QotD first πŸ™‚

    Hey-ho, all good fun.

  • upper case / lower case confusion?

    SELECT UNICODE(N'a'); ---returns 97

    SELECT UNICODE(N'A'); --returns 65

  • The textual explanation of the answer is right.

    The actual answer set to be right is wrong. πŸ™‚

  • taz.higgins (5/6/2016)


    The textual explanation of the answer is right.

    The actual answer set to be right is wrong. πŸ™‚

    yeah exactly.:-)

Viewing 15 posts - 1 through 15 (of 60 total)

You must be logged in to reply to this topic. Login to reply