Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 26th, 2012  |  syntax: None  |  size: 0.20 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. design: same logical computations needed both in database and in Java
  2. IDEAL_WEIGHT = (height/100) * age
  3.        
  4. WEIGHT_PER_INCH = height / weight
  5.        
  6. Select * from Persons p where IDEAL_WEIGHT(p) < p.weight