title: SQL (Oracle) Problems with foreign key
body: <p>I have a problem with setting a FOREIGN KEY in apex(Oracle). First i created Address table: </p>
  
  <pre><code>CREATE TABLE Address
  (
    AddressID integer NOT NULL PRIMARY KEY,
    Country varchar2( 25 ) NOT NULL,
    City_Village varchar2( 25 ) NOT NULL,
    Street varchar2( 30 ) NOT NULL,
    HomeNumber varchar2( 10 ) NOT NULL,
    Apartment integer NULL
  );
  </code></pre>
  
  <p>I tried to create a table Client:</p>
  
  <pre><code>CREATE TABLE Client
  (
    ClientID integer NOT NULL PRIMARY KEY,
    LastName varchar2( 25 ) NOT NULL,
    FirstName varchar2( 25 ) NOT NULL,
    BirthDate Date NOT NULL,
    Sex char( 1 ) NOT NULL,
    PhoneNumber varchar2( 15 ) NULL,
    Email varchar2( 25 ) NULL,
    IDNP varchar2( 13 ) UNIQUE NOT NULL,
    AddressId integer FOREIGN KEY REFERENCES Address( AddressID )
  );
  </code></pre>
  
  <p>The error is ORA-00907: missing right parenthesis</p>
  
  <p>What's wrong with my code? Can anybody help me?</p>