Wrox Home  
Search P2P Archive for: Go

  Return to Index  

sql_language thread: DECODE Statement


Message #1 by joee@v... on Wed, 12 Feb 2003 22:26:21
That has got to be one of the most complicated queries I have tried to 
understand for a long time!  But I think if hunit is null then age will be 
null too - is that right?

If so, just change this bit:

       SUM(DECODE(sign(NVL(AGE,24) - 23), 1, UNITSQFT, 0)) AGE24

  Return to Index