Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««12345»»

T-SQL Expand / Collapse
Author
Message
Posted Thursday, January 7, 2010 9:19 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 11:36 AM
Points: 17,710, Visits: 15,583
Steve Jones - Editor (1/7/2010)
I see both sides in this argument. BOL is inconsistent and I have added feedback to that note to various links to have this clarified at the source we use. When I got the QOD and followed the link, Predicate seemed correct. However the more I look at the wording, I can see where operator is a valid argument. My first thought was operator as well, but then I thought it's in the WHERE clause, so predicate made sense.

I have changed the question to include "in (z, y, z, ...)" as the "what is this" portion, which should clear up confusion as to this being a predicate.

I will award back all points to date to people once my password gets reset :) Forgot it over the holidays.


Thanks Steve.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #843650
Posted Thursday, January 7, 2010 1:04 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Saturday, September 18, 2010 11:15 PM
Points: 84, Visits: 69
Now it's even more confusing - the question has changed; the answer has changed from predicate to operator which I don't think is correct with the new question; and, the explanation still lists predicate as the correct answer!
Post #843833
Posted Thursday, January 7, 2010 1:10 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 7:17 AM
Points: 31,080, Visits: 15,526
the answer is predicate. It has not changed. The change from

"IN"

to

"columnX IN (x, y, z, ...)"

Makes it a predicate.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #843835
Posted Thursday, January 7, 2010 1:21 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Saturday, September 18, 2010 11:15 PM
Points: 84, Visits: 69
I'm not sure what is going on but when I went to http://www.sqlservercentral.com/questions/T-SQL/68500/
and answered predicate (to the revised question), the site said:
Sorry - you were wrong

Correct answer: Operator
Explanation: In T-SQL, a PREDICATE allows you to check whether a value or scalar expression evaluates to TRUE, FALSE, or UNKNOWN. The IN clause, with column and values becomes a predicate and checks to see if at least one of the elements in a set is equal to a given value or expression.

T-SQL PREDICATE: http://msdn.microsoft.com/en-us/library/ms189523%28SQL.90%29.aspx
Join the discussion about this question
Contribute a question of your own
Post #843840
Posted Thursday, January 7, 2010 1:36 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Friday, February 4, 2011 7:20 AM
Points: 977, Visits: 1,499
Steve Jones - Editor (1/7/2010)
the answer is predicate. It has not changed. The change from

"IN"

to

"columnX IN (x, y, z, ...)"

Makes it a predicate.


Maybe you should check it again Steve. I checked Predicate less than 10 minutes ago and got it wrong.


Tom Garth
Vertical Solutions

"There are three kinds of men. The one that learns by reading. The few who learn by observation. The rest of them have to pee on the electric fence for themselves." -- Will Rogers
Post #843851
Posted Thursday, January 7, 2010 2:35 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, September 8, 2014 1:18 PM
Points: 2,664, Visits: 830
Jeff Cook-476310 (1/7/2010)
I'm not sure what is going on but when I went to http://www.sqlservercentral.com/questions/T-SQL/68500/
and answered predicate (to the revised question), the site said:
Sorry - you were wrong

Correct answer: Operator
Explanation: In T-SQL, a PREDICATE allows you to check whether a value or scalar expression evaluates to TRUE, FALSE, or UNKNOWN. The IN clause, with column and values becomes a predicate and checks to see if at least one of the elements in a set is equal to a given value or expression.

T-SQL PREDICATE: http://msdn.microsoft.com/en-us/library/ms189523%28SQL.90%29.aspx
Join the discussion about this question
Contribute a question of your own


Ditto - I chose predicate. Even more confusing when I was reading through the comments (thinking "but IN isn't by itself - the whole statement will resolve to TRUE, FALSE or UNKNOWN") until I got to this post and realised the question had been altered - although not the answer it would appear.





Scott Duncan

MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
Post #843892
Posted Thursday, January 7, 2010 2:56 PM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Wednesday, January 5, 2011 9:32 AM
Points: 694, Visits: 89
Scott Duncan-251680 (1/7/2010)
Jeff Cook-476310 (1/7/2010)
I'm not sure what is going on but when I went to http://www.sqlservercentral.com/questions/T-SQL/68500/
and answered predicate (to the revised question), the site said:
Sorry - you were wrong

Correct answer: Operator
Explanation: In T-SQL, a PREDICATE allows you to check whether a value or scalar expression evaluates to TRUE, FALSE, or UNKNOWN. The IN clause, with column and values becomes a predicate and checks to see if at least one of the elements in a set is equal to a given value or expression.

T-SQL PREDICATE: http://msdn.microsoft.com/en-us/library/ms189523%28SQL.90%29.aspx
Join the discussion about this question
Contribute a question of your own


Ditto - I chose predicate. Even more confusing when I was reading through the comments (thinking "but IN isn't by itself - the whole statement will resolve to TRUE, FALSE or UNKNOWN") until I got to this post and realised the question had been altered - although not the answer it would appear.



Same here - was a bit surprised to see Operator as the correct answer when it seemed Predicate was right. Then to be told in the explanation that predicate is correct left me completely confused. Glad to see that I'm not the only one!





Rick
townsends.ca
Post #843911
Posted Thursday, January 7, 2010 3:05 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, September 9, 2011 8:51 AM
Points: 291, Visits: 389
In light of all the confusion, I respectfully apologize to everyone for not making the question more clear in the first place.
Post #843917
Posted Thursday, January 7, 2010 3:32 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 7:17 AM
Points: 31,080, Visits: 15,526
Doh! It's fixed. I must have made a mistake when I changed the question.

It now shows predicate as the answer. I'll fix points.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #843946
Posted Thursday, January 7, 2010 6:06 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 7:17 PM
Points: 5,332, Visits: 25,261
SSSolice
In light of all the confusion, I respectfully apologize to everyone for not making the question more clear in the first place.


1. Do NOT take the belittling comments to heart
2. Do NOT feel bad
3 Do NOT stop submitting QODs...

Goodness knows I have been banged from pillar to post, hopefully you will have learned from this, (I take it this was your first QOD), and your next attempt will be composed keeping in mind all the nit picking that it might be subjected to.


If everything seems to be going well, you have obviously overlooked something.

Ron

Please help us, help you -before posting a question please read

Before posting a performance problem please read
Post #844024
« Prev Topic | Next Topic »

Add to briefcase «««12345»»

Permissions Expand / Collapse