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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. CorwinFoo

    How to get an accruate sum of the Yes values?

    You can use the Case Stmt with SUM like this: SUM ( CASE WHEN fieldname = 'Yes' THEN 1 WHEN fieldname = 'No' THEN 0 ELSE 0 END ) AS YesCount If you COUNT, you'll get the count of all records.

Part and Inventory Search

Back
Top