Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query help

Status
Not open for further replies.

Cloonalt

Programmer
Jan 4, 2003
354
US
I have a table with multiple instances of Field 1. Field 2 may be 0 or 1, for instance:

Field 1 Field2
ABC Company 1
ABC Company 1
ABC Company 0
DEF Company 0
DEF Company 0
DEF Company 0

Can I write a query to get only Companies where there are all 0s?

Any help appreciated.

Thanks.
 
Denis, I think you missed one.

Having Count(1) = sum(ascii(Field2) % 78)

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top