Dips > Data Processing > Query Data

# Query Example 3

Follow the same procedure described in Query Example 2, to create the query:

TYPE == joint && SURFACE == rough && SPACING,M <= 1

For the example.dip file, this query should create a new file with 6 rows. Note:

- All entries in the TYPE column are "joint"

- All entries in the SURFACE column are "rough" (in this example we used the == operator instead of the Includes operator used in Query Example 2)

- All entries in the SPACING column are less than or equal to 1

Since we are using the AND operator between Expressions, the order of the 3 expressions used in this example does not matter. This is left as an exercise for the user to verify.

If we are using the OR operator in combination with the AND operator, then we have to be more careful about the ordering of Expressions, and brackets may be necessary. This is discussed in Query Example 6.