an anonymous user ·· SQL
CREATE TABLE user( id INT AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(100), last_name VARCHAR(100), home_address VARCHAR(100), phone VARCHAR(100) ); CREATE TABLE work ( id INT AUTO_INCREMENT PRIMARY KEY, work_id INT, department VARCHAR(100), salary DECIMAL(8,4), FOREiGN KEY (work_id) REFERENCES user(id) );
Click on the Run button to get started.
The code/input has changed since you last clicked on Run. Click it again to see the updated changes.