I want to get TOP 2 customers done maximum amount transaction from below the table.I am working on oracle db.
my table transactions:
 tranID       PROD_ID       QTY      PRICE        CID 
      1       100            5         10000      1000  
      2       103            16        5000       1001  
      3       102            8         5000       1003
      4       200            10        9000       1002  
      5       204            8        9000         1002  
      6       207            4         8000        1002  
CUSTOMERS
CID CNAME
1001  X
1002  Y
1003  Z
 
     
     
    