title: Why is my SQL FOREIGN KEY clause returning an error?
body: <p>I am new in SQL just started learning yesterday so I can start making back - end applications. This is the code I am using, this doesn't work and returns and error in mySQL</p>
  <pre><code>CREATE TABLE employee (
      employ_id INT PRIMARY KEY,
      first_name VARCHAR(30),
      last_name VARCHAR(30),
      birthday DATE,
      gender VARCHAR(1),
      salary INT,
      super_id INT,
  );
  
  
  CREATE TABLE branch (
      branch_id INT PRIMARY KEY,
      branch_name VARCHAR(40),
      mgr_id INT 
      FOREIGN KEY REFERENCES employee(employ_id) ON DELETE SET NULL,
      mgr_start_date DATE
  );
  </code></pre>