Finding Azure SQL Database

  • Comments posted to this topic are about the item Finding Azure SQL Database

  • I get 3 rows returned when recreate the table in sql and run the query...

  • According to the txt you posted, mytext with myid =3 meets the predicate of the WHERE clause.

    MCSE Data Platform; BI
    MCITP Database Developer; BI

  • Hmm, I'm a little bit surprised the explanation.

  • helenlu7 65408 (10/16/2015)


    According to the txt you posted, mytext with myid =3 meets the predicate of the WHERE clause.

    Yes. And the question reads how many rows are returned, not which row. Row with myid=3 is returned, no others - so that is a total of 1 row(s).


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • SQL_kode_kracker (10/16/2015)


    I get 3 rows returned when recreate the table in sql and run the query...

    Can you script this and post the script here? Either (99% chance) you have a typo somewhere, or you ran into an obscure and so far unknown (to me at least) bug.


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • This was removed by the editor as SPAM

  • Easy one. Got it wrong though because I wasn't paying attention. Time for the weekend!

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • I answered expected result 2 but i got notification saying is wrong correct result is 1.

    Therefore,I created this scenario on my local DB and there is also i got 2 result :rolleyes:

    Can someone tell me why is it so ?

  • Mishra

    You probably didn't remove spaces between myid and mytext in row "2 Azure SQL Database is very useful for some applications" when you copied it from QotD.

    Br.

    Mike

  • answer says

    Row 3 doesn't have a space before, so it does not match.

    but it is actually row 2 that does not have the space before, so row 3 is the only row that is returned

    2 Azure SQL Database[ ]is very useful for some applications

    3 Can you use the[ ]Azure SQL Database[ ]for your organization?

    the answer is still 1, as it askes for how MANY rows are returned, not WHICH row is returned

  • Thanks Mike for your prompt reply.

    Yes i got the result as mentioned on the forum.:-P :hehe:

  • andrew_dale (10/16/2015)


    answer says

    Row 3 doesn't have a space before, so it does not match.

    but it is actually row 2 that does not have the space before, so row 3 is the only row that is returned

    2 Azure SQL Database[ ]is very useful for some applications

    3 Can you use the[ ]Azure SQL Database[ ]for your organization?

    the answer is still 1, as it askes for how MANY rows are returned, not WHICH row is returned

    Correct - the answer is right but the explanation has a typo.

  • The explanation for the answer provided is wrong.

    It is Row 2 which does not have a space character before the word "Azure".

    Hence it is Row 3 which is correct, not 2 as implied by the explanation.

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

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