Select to view content in your preferred language

Simple Definition Query

498
3
02-28-2023 03:26 PM
ChrisMacNeillNCFPD
New Contributor II

Hey all,

I'm trying to create a definition query for a points layer where I only was to display the points in the TYPE field of 1 and 2 and then leave type 3 hidden.  Anyone know how to do this?

 

Tags (1)
0 Kudos
3 Replies
DavidPike
MVP Frequent Contributor

The Syntax does depend on the input data type.  Assuming it's a feature class, use https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/write-a-query-in-the-query-builder.... as an example.

For the interactive selection:

Type is equal to 1

OR

Type is equal to 2

 

for SQL syntax:

TYPE = 1 Or TYPE = 2

NB if the numbers are actually strings(text) then enclose '1' and '2' in quotes.

ChrisMacNeillNCFPD
New Contributor II

Got it! Thanks!

0 Kudos
RhettZufelt
MVP Notable Contributor
TYPE IN (1, 2)