# Complex Comparison Operators

## Overview&#x20;

Now that you’ve learned some basic filter clause operators from this knowledge article: [Basic Comparison Operators](https://docs.silverband.com.au/home/paradigm-knowledge-base/generating-reports/workflows/introduction-to-report-builder/basic-comparison-operators), you can add more complex filters by using the operators mentioned in this article.&#x20;

The following operators are mostly used to compare two fields:

## **Field equal (=)**

Compares the contents of one field if the same or equal to another field.

**Example 1**

> “Country” Field Equals (=) “Billing Country” will return data which has the same country and billing country information

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2FadSM1u8KkpGUpTRvQNUO%2Fimage.png?alt=media&#x26;token=4cbffaee-768f-41be-93c2-a9b845641946" alt=""><figcaption></figcaption></figure>

**Sample Output**

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2FdRTcUWRpdeQacwYs3ZYI%2Fimage.png?alt=media&#x26;token=45c4f136-49d0-4a59-93e3-ef8caf66323e" alt=""><figcaption></figcaption></figure>

## **Field is not equal to (!=)**

Will return data or information with a field not equal to the other field.

**Example 1**

> “Country” Field Not Equals (=) “Billing Country” will return data which has a country not equal or the same as the billing country

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2F33vBmNIZe9cwm8wfruGY%2Fimage.png?alt=media&#x26;token=a28024bb-785a-4c69-8cda-f2077a7ba0b6" alt=""><figcaption></figcaption></figure>

**Sample Output**

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2FW86Zv96cZlnNeMPp7PJi%2Fimage.png?alt=media&#x26;token=1a871da5-0173-4d82-9d9b-f2de54aea53b" alt=""><figcaption></figcaption></figure>

## **Field is greater than (>)**

&#x20;Will return data or information with a field greater than the other field.

**Example 1**

> “Withdrawal Date” Field Greater Than (>) “Dest Census Date will return data which has a withdrawal date greater than the Dest Census Date.

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2F9PQirVZXT1k7GfVccBte%2Fimage.png?alt=media&#x26;token=e44a0ff7-ad7e-4784-bdd1-65cdb9d0c713" alt=""><figcaption></figcaption></figure>

**Sample Output**

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2FRT3kPTlOSy6XjEq95Nzo%2Fimage.png?alt=media&#x26;token=9b35cfbf-e432-47f4-9c77-a928e058fb3d" alt=""><figcaption></figcaption></figure>

## **Field Less Than (<)**

Will return data or information with a field less than the other field.

**Example 1**

> “Amount Paid” Field Less Than (<) “Amount Due” will return data which has an amount paid less than the amount due.

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2F613wZXQpeTgs9Gw5Wqvf%2Fimage.png?alt=media&#x26;token=cec4c6f9-b1d4-477f-9550-83ac74d6f64b" alt=""><figcaption></figcaption></figure>

**Sample Output**

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2FXPIryST3rGQ2dO5lhzPj%2Fimage.png?alt=media&#x26;token=ba741513-a61c-448c-aa6d-fbf8da3b5c0b" alt=""><figcaption></figcaption></figure>

## **Field Greater Than Equal To (>=)**

Will return data or information with a field greater or equal to the other field. The difference between this and the Field Greater Than (>) operator is that this would include the field which is also equal to the other field.

**Example 1**

> “Withdrawal Date” Field Greater Than Equal To (>=) “Dest Census Date will return data which has a withdrawal date greater than or equal to the Dest Census Date.

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2FpiqD3mKBIMy3CEVwC3XN%2Fimage.png?alt=media&#x26;token=7a3f0609-9bcb-4c93-bda8-22354c279361" alt=""><figcaption></figcaption></figure>

**Sample Output**

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2FRuhU1M388iLETIH5EOCx%2Fimage.png?alt=media&#x26;token=cb2dd726-e285-4572-9e9a-16db348769f8" alt=""><figcaption></figcaption></figure>

## **Field Less Than Equal To (<=)**

Will return data or information with a field less than or equal to the other field. The difference between this and the Field Less Than (>) operator is that this would include the field which is also equal to the other field.

**Example 1**

> “Amount Paid” Field Less Than Equal To (<=) “Amount Due” will return data which has an amount paid less than or equal to the amount due.

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2FF1MSqToN8TfouSwod9SZ%2Fimage.png?alt=media&#x26;token=26034308-86e6-4bb6-9cd3-bf6949cb8b67" alt=""><figcaption></figcaption></figure>

**Sample Output**

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2FrE409A2y9j2mvhIOT4oE%2Fimage.png?alt=media&#x26;token=cc3f98f2-241b-476e-bfdc-d61afafaed42" alt=""><figcaption></figcaption></figure>

## Custom

Allows you to put an SQL query inside the **Value** column

**Example 1**

> “Amount Paid” custom query to check paid amount between $500 and $1000 (This will return students with **Amount Paid** in between 500 and 10000).

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2FmTAf42vOF6Xj6mZ9fPCu%2Fimage.png?alt=media&#x26;token=b8590685-b536-45e5-a8ef-906cbcd05d9b" alt=""><figcaption></figcaption></figure>

**Sample Output**

<figure><img src="https://1246578764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC21t2SaV2eKaLxvtR27D%2Fuploads%2FuFFtyE9xFAhTy9d2lSKM%2Fimage.png?alt=media&#x26;token=76c700db-7a0c-4d6c-8cf9-1cc1ec771234" alt=""><figcaption></figcaption></figure>
