SQL To Filter A SubSet Of Data

Posted by Nick LaMarca on Stack Overflow See other posts from Stack Overflow or by Nick LaMarca
Published on 2010-06-02T16:45:38Z Indexed on 2010/06/02 16:54 UTC
Read the original article Hit count: 186

Filed under:
|
|

I have an arraylist that holds a subset of names found in my database. I need to write a query to get a count of the people in the arraylist for certain sections i.e. There is a field "City" in my database from the people in the arraylist of names I want to know how many of them live in Chicago, how many live in New York etc.

Can someone help me how I might set up an sql statement to handle this. I think somehow I have to pass the subset of names to sql somehow.

© Stack Overflow or respective owner

Related posts about c#

Related posts about vb.net