Forum Replies Created

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

  • Reply To: EXCEPT

    Carlo Romagnano wrote:

    Of course the isolation level of the database should be as in the image

    1

    Of course! That's obviously clear from the questionđŸ˜‹

  • Reply To: EXCEPT

    I would argue that in principle the explanation is correct. However, in the example given, this would result in zero rows, unless a very specific set of conditions are met....

  • Reply To: Changing the TDE Encryption

    Maybe it's a good idea to refrain from answering this until the correct answer has been reviewed...

  • Reply To: My New Resolution

    leonardo.ssantos79 wrote:

    But the question was ONLY the year, and the year function (getdate()) doesn't do that?

    It does, but there are two problems with that:

    1. It's not among the given alternatives
    2. ...

  • Reply To: My New Resolution

    Easy enough. But I would personally assign whoever created that table with DATETIME instead of DATE to toilet cleaing duty for a week...

  • Reply To: My New Resolution

    Well, there's usually not much real body to New Year's resolutions...

  • Reply To: Database Snapshot Sparse Files

    Brilliant! So now those of us who answered master_files are flagged as giving a completely incorrect answer, rather than an equally correct alternate answer.

  • Reply To: Database Snapshot Sparse Files

    I concur.

  • Reply To: Default Masking

    Dearie me!

    Reading the exact same doccumentation pointed out in the reference, I deduced that the result should be 'x' for the single char column, and 'xxxx' for the longer column,...

  • Reply To: Concatenating Dynamic SQL

    Yeah, I think I'll sit this one out for a bit...

  • Reply To: Index fragmentation on all databases

    Ooops!

     

    This isn't the first time I've accidentally clicked on the "Featured Script" link instead of the "Question of the Day" link. And to add to my confusion, I misread  "Can...

  • Reply To: Index fragmentation on all databases

    You know, I kind of prefer the kinds of questions where there is a way to answer the question đŸ˜€

  • Reply To: Sorting in R

    Well, this doesn't make sense. If 'radix' sort is named the fastest method for vectors of integers, and this is the method selected for those when 'auto' is specified, then...

  • Reply To: How Many Rows Inserted?

    Interesting.

    How I parsed this is :

    • The explicit BEGIN TRAN increases the @@TRANCOUNT to 1.
    • The INSERT increases it to 2.
    • The COMMIT decreases it to 1
    • The SELECT ......
  • Reply To: Finding the last month's values

    As far as I can tell, there are actually two correct answers to this one. Both

    LEAD(currMonthSales) OVER (ORDER BY saleyear DESC, salemonth DESC) AS prevSales

    and

                

    February 16, 2021 at 7:30 am

    #3845521

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