October 26, 2020 at 12:00 am
Comments posted to this topic are about the item A Strange Comparison
October 26, 2020 at 2:14 am
Heh... you're such a "NOTty" boy! 😀 I haven't seen syntax like that in a very long time. Lot's of bloody != but incredibly little !< and !>.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 8:41 am
What is the difference between the second and the third answer?
October 26, 2020 at 2:00 pm
Wolfram Kraus wrote:What is the difference between the second and the third answer?
Well, nothing reading the text for both answers. The fact that both answers were used is probably interesting in itself.
Heh... the only difference appears to be the different number of people that thought it was a correct answer. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 9:17 pm
Typo and an answer got repeated.
October 27, 2020 at 6:06 am
Interesting.. Didn't even know that this was in T-SQL. I got the answer right because I have programmed in C. Is this just a T-SQL thing or is it standard SQL ( whatever that is ) ?
October 28, 2020 at 1:04 pm
I guess you have to read that in English: ! is Not, < is Less, so !< is Not Less than
Great Question!
Regards,Yelena Varsha
November 2, 2020 at 2:46 pm
Thanks for the question, Steve!
The next question would be, what is the best way to write this for readability? Should we be using "NOT" or flip the operator to use ">". Looking through legacy code, I see "!" more often.
WHERE sd.Profit NOT < 10000;
WHERE sd.Profit > 10000;
November 2, 2020 at 5:55 pm
If you flip the operator then it needs to be >=
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply