This documentation is archived and is not being maintained.

Neq Element

SharePoint 2003

The Neq element is an arithmetic operator that means "not equal to" and is used in queries.



Element Relationships

Parent ElementsChild Elements
And, Or, Where FieldRef, Value


The following example queries the Status field for cases where the value does not equal Completed or is null, returning the results according to a descending sort on the Modified field. The Where element contains an Or element to group the filters.

    <FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
        <FieldRef Name="Status"></FieldRef>
        <Value Type="Text">Completed</Value>
        <FieldRef Name="Status"></FieldRef>

Related Topics