title: Constraint on subtype attribute (Oracle)
body: <p>If i have a type x_typ and subtype y_typ, is it possible to create a an object table of x_typ but put a constraint on one of the y_typ attributes i.e.</p>
  
  <pre><code>create table x_table of x_typ (
     constraint constr_y check (y_typ.attribute1 &lt; 5);
  );
  </code></pre>
  
  <p>Thanks</p>