Apr 17, 2009 #1 hapax Programmer Nov 10, 2006 105 US I need to select using a WHERE clause that contains a list of specific items. What's the syntax? I want to do this: SELECT * from ASSET WHERE AssetId (is in the following list of IDs: 214, 727, 317 or 283)
I need to select using a WHERE clause that contains a list of specific items. What's the syntax? I want to do this: SELECT * from ASSET WHERE AssetId (is in the following list of IDs: 214, 727, 317 or 283)
Apr 17, 2009 1 #2 RiverGuy Programmer Jul 18, 2002 5,011 US Code: SELECT * from ASSET WHERE AssetId IN (214, 727, 317, 283) Upvote 0 Downvote
Apr 17, 2009 Thread starter #3 hapax Programmer Nov 10, 2006 105 US Excellent, thanks. I researched using IN but didn't see an example of this type of case. Upvote 0 Downvote