|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, April 20, 2010 6:15 AM
Points: 5,
Visits: 104
|
|
Answer is : Operator
Predicate Is an expression that evaluates to TRUE, FALSE, or UNKNOWN. Predicates are used in the search condition of WHERE clauses and HAVING clauses, the join conditions of FROM clauses, and other constructs where a Boolean value is required.
IN is the logical operator
Please visit the below one to know all the logical operator
http://msdn.microsoft.com/en-us/library/ms189773.aspx
|
|
|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: Friday, January 11, 2013 12:41 PM
Points: 621,
Visits: 297
|
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Wednesday, May 09, 2012 12:15 PM
Points: 3,021,
Visits: 458
|
|
| Allow me to jump on the bandwagon here and say that 'IN' by itself is a logical operator. 'SomeField IN ( 1, 2, 3 )' would be considered a predicate, but by itself, 'IN' does not evaluate to TRUE, FALSE, or UNKNOWN.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, April 05, 2012 2:35 PM
Points: 2,007,
Visits: 767
|
|
I'll chime in as well to say that IN is an operator. See BOL for list of Logical Operators
http://msdn.microsoft.com/en-us/library/ms189773(SQL.90).aspx
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 11:30 AM
Points: 1,495,
Visits: 1,507
|
|
I can understand the confusion with this question since msdn refers to IN many different ways. A number of msdn links have already been posted to defend different answers and here is another one.
http://msdn.microsoft.com/en-us/library/ms177682.aspx
In the remarks section the first sentence refers to IN as a clause. "...values (many thousands) in an IN clause can..."
Also, the article referenced is specifically for IN (Transact-SQL) not predicates or logical operators.
Dave
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Yesterday @ 7:27 AM
Points: 3,547,
Visits: 920
|
|
| Somehow I had the feeling this question would have a controversial "correct" answer because it was just too obvious that it should be "Operator".
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 9:21 AM
Points: 5,099,
Visits: 20,191
|
|
As one who has been beaten from pillar to post during the discussion of QOD's that I have submitted and which where published ... I am sorry to say that I do not think the author of this QOD performed due diligence in their search for the justification of the supposed correct answer.
But my thoughts do not change the outcome, the only individual empowered to do that is Steve Jones.
Hence let's ask Steve Jones to ajudicate.
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
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Thursday, October 04, 2012 1:29 PM
Points: 99,
Visits: 128
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: 2 days ago @ 3:36 AM
Points: 2,522,
Visits: 3,616
|
|
Dave62 (1/7/2010) I can understand the confusion with this question since msdn refers to IN many different ways. A number of msdn links have already been posted to defend different answers and here is another one.
http://msdn.microsoft.com/en-us/library/ms177682.aspx
In the remarks section the first sentence refers to IN as a clause. "...values (many thousands) in an IN clause can..."
Also, the article referenced is specifically for IN (Transact-SQL) not predicates or logical operators.
Dave
Well yet another term - see here for details with regards to the "logical" IN clause. http://www.articleworld.org/index.php/Clause_%28logic%29 Edit: Just to provide an example, the IN clause in predicate Edit2: added operator to IN clause
fieldx IN (1,2,3) isIN (1,2,3)
Not to mix up with "grammar" clauses like the SELECT or FROM clause.
Best Regards,
Chris Büttner
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 6:16 AM
Points: 2,862,
Visits: 2,464
|
|
This QOD actually has 2 answers that are correct, and should reflect such.
The "IN" statement can be used as both a predicate and an operator. See BOL:
Logical Operator IN - TRUE if the operand is equal to one of a list of expressions. Predicate: Is an expression that evaluates to TRUE, FALSE, or UNKNOWN. Predicates are used in the search condition of WHERE clauses and HAVING clauses, the join conditions of FROM clauses, and other constructs where a Boolean value is required.
Thus, with the answers set up the way that they are, with only one answer being selectable, we should get credit for either answer being correct.
Steve Jimmo Sr DBA “If we ever forget that we are One Nation Under God, then we will be a Nation gone under." - Ronald Reagan
|
|
|
|