November 2, 2014 at 1:49 pm
Thanks for the question. However, something about the list of radio button options made me think the only option worth picking was that the queries give the same result, which happened to be correct.
Maybe checkboxes would have made it harder?
Just mt two cents. Thanks again.
- webrunner
-------------------
A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html
November 2, 2014 at 10:36 pm
Eazy.
Thanks & Best Regards,
Hany Helmy
SQL Server Database Consultant
November 2, 2014 at 11:35 pm
I appreciate the question. I seldom, if ever, think to perform the query in the second fashion.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
November 2, 2014 at 11:38 pm
SQLRNNR (11/2/2014)
I appreciate the question. I seldom, if ever, think to perform the query in the second fashion.
+1, didn't really know its possible (well just never thought of it)
Are there any performance concerns of the second query though?
November 2, 2014 at 11:55 pm
DrKiller (11/2/2014)
SQLRNNR (11/2/2014)
I appreciate the question. I seldom, if ever, think to perform the query in the second fashion.+1, didn't really know its possible (well just never thought of it)
Are there any performance concerns of the second query though?
They both produce the same execution plan.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
November 3, 2014 at 1:19 am
This was removed by the editor as SPAM
November 3, 2014 at 2:29 am
+1.
Really a nice question.
November 3, 2014 at 4:48 am
Excellent question. Never really thought about using option 2 before now.
November 3, 2014 at 5:23 am
Good question, Thanks.
---------------
Mel. 😎
November 3, 2014 at 6:24 am
Both Statements have same performance and execution plan
November 3, 2014 at 7:00 am
I learned something, so that makes it a good question, but to echo other concerns -- because of the radio buttons there was only one possible answer.
November 3, 2014 at 7:09 am
Seemed like both would return the same results. I just never use version two.
November 3, 2014 at 7:10 am
Yes, I agree this seemed fairly obvious, but the fact that there are three correct answers (the first three options are all true) and I'm only permitted to choose one of them led me to conclude it must be none of those, since it could not be all of those. Not a well-designed question at all.
-----
a haiku...
NULL is not zero
NULL is not an empty string
NULL is the unknown
November 3, 2014 at 7:40 am
Good question. Never thought about using the second option. I learned something. Thanks!
Viewing 15 posts - 1 through 15 (of 27 total)
You must be logged in to reply to this topic. Login to reply