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

Recent content by ddt

  1. ddt

    Report to include two count fields!

    you can easily do this with a decode inside a sum function sum(decode(fielda, 'value1', 1,0)) as COUNT_OF_A says everytime fielda = 'value1' add 1 to the sum otherwise add a 0 and name this sum COUNT_OF_A. your other count is sum(decode(fielda, 'value2', 1, 0)) as COUNT_OF_2

Part and Inventory Search

Back
Top