Forum Replies Created

Viewing 15 posts - 1,306 through 1,320 (of 3,348 total)

  • RE: SET vs. SELECT

    TomThomson (7/14/2015)


    Hugo Kornelis (7/14/2015)


    Simon Jackson (7/14/2015)


    The answer is right, but I'm not convinced about the reasoning.

    If I replace the SET with SELECT , I get the same result.

    Just from experimenting,...

  • RE: SET vs. SELECT

    Simon Jackson (7/14/2015)


    The answer is right, but I'm not convinced about the reasoning.

    If I replace the SET with SELECT , I get the same result.

    Just from experimenting, it seems to...

  • RE: SQL for 8-year-old Math…But Be Careful of Implicit Type Conversion

    Nice article, David!

    I wrote about exact numerics not being exact a few years ago: http://sqlblog.com/blogs/hugo_kornelis/archive/2007/10/17/so-called-exact-numerics-are-not-at-all-exact.aspx

    When doing math with numeric data types, there are some rules for precision and scale of...

  • RE: Extract the titles from XML

    SQLRNNR (7/13/2015)


    I see stats, memory grant info, cpu requirements, duration, number of pages, cost (granted it is based off some smoke and magic), number of rows, and even an implicit...

  • RE: Extract the titles from XML

    Like it or not (I don't), there are times when as a SQL Developer or SQL DBA you have no choice but to deal with XML (I have).

    I am not...

  • RE: A Case FOR Cursors...

    Jeff Moden (7/3/2015)


    andrew.norris 90251 (6/7/2015)


    Nothing wrong with cursors they have their place and are very useful.

    Do you have examples for something other hierarchies and bin stacking problems?

    A few examples I...

  • RE: Dependency between tables

    julienchappel 38298 (7/1/2015)


    All tree answers are unrelated to the question of your exercise, i.e.: you are asking quote "What does this code return? " unquote and in all of the...

  • RE: Integer lengths (I)

    Stewart "Arturius" Campbell (7/1/2015)


    ArnoKwetters (7/1/2015)


    Is NULL=NULL true ?

    NULL != NULL or anything else.

    NULL is actually a reflection of the state of the field, i.e. there is no value assigned to...

  • RE: Dependency between tables

    I understand the people who claim that the first two answer options are the same, but I do not agree with them.

    I also disagree with the "correct" answer.

    The query returns...

  • RE: What is the Output?

    radek.celuch (6/27/2015)


    This is quite interesting issue. I was curious if short-circuiting is also the case in UNION (ALL)/EXCEPT/INTERSECT operators.

    Below is my testing code.

    As a "let's see what this does" experiment,...

  • RE: What is the Output?

    We cannot find a reference, but apparently the divide by zero doesn't cause an issue in the EXISTS() clause.

    The examples in this question are actually quite common. They are very...

  • RE: Not so obvious COALESCE behaviour

    pparsons (6/17/2015)


    Not quite, it's still the COALESCE. In a comparison such as "select case when coalesce(cast (null as date),'')='' then 'true' else 'false' end" the result is "true" because...

  • RE: Not so obvious COALESCE behaviour

    ArnoKwetters (6/17/2015)


    Now the answer is NEVER.

    Without the RTRIM then the ansewer : IF NULL is right.

    It surprished me a bit when I use this code :

    DECLARE @anyDateTime date = null

    IF...

  • RE: Column manipulation with ALTER TABLE

    I knew the answer, ticked (what I thought) the three correct options, then saw that I got it wrong, and the correct answer was exactly what (I thought) I selected.

    It...

  • RE: What will happen with below code???

    roopa.subbareddy (6/14/2015)


    There is no Single quotes in the Select for the phone number. So it must give an error message.

    Try running the code. You'll see that the integer values...

Viewing 15 posts - 1,306 through 1,320 (of 3,348 total)