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: *

  • Users: shajinair
  • Order by date
  1. shajinair

    Summarising 2 Records into 1

    Use DECODE function like, SELECT ACC_CODE,SUM(DECODE(TYPE,'DEBIT',AMOUNT,0)) DEBIT_TOT,SUM(DECODE(TYPE,'CREDIT',AMOUNT,0)) CREDIT_TOT FROM T1 GROUP BY ACC_CODE

Part and Inventory Search

Back
Top