Advanced filtering allows you to build structured queries using a query-like language.
The basic syntax for a query consists of a field, followed by an operator, followed by a value. The query can be combined using the AND or OR operator. Values are case insensitive so MATH and math will match equally.
A query that returns matches that contain the subject MATH in Fall Semester 2019 looks like this:
Term = 201908 AND Subject = MATH
A more complex query that returns matches that contain the subject MATH or SCI looks like this:
Subject = MATH OR Subject = SCI
Quotation marks are required for values that contain spaces. A query that returns matches that contain a course title that equals Intro Financial Accounting looks like this:
Title = “Intro Financial Accounting”
Enrollment Ratio is a percentage and can be represented as either a whole number or a percentage when constructing a query. If a decimal is in the query, the number will read as a decimal percentage. Example: EnrollmentRatio = .85 would return Enrollment Ratio equal to .85%
EnrollmentRatio = 80%
EnrollmentRatio = 80
To filter to 120 level courses, you would need to construct the query like this:
CourseNumber starts_with 120
Use "in" to see if a value is in a specific set of values or attributes. To use this operator, quotation must be used with values separated by commas.
Subject in “ENGL, FREN, SPAN”
CourseNumber in “1100, 1101, 1102”
Setting The Precedence of Operators
You can also use parenthesis to set the precedence of operators. For example, a query that returns matches that have either MATH or SCI subjects and have less than 2 sections would look like this:
(Subject = MATH OR Subject = SCI) AND SectionsOffered < 2
For text fields the following operators are supported:
|Does Not Start With||!starts_with|
For number fields the following operators are supported:
|Greater Than or Equals||>=|
|Less Than or Equals||<=|
Watch and learn a demonstration of advanced filtering!