Projektutvecklingslab/database.sql
2024-02-14 18:35:44 +01:00

14 lines
No EOL
322 B
SQL

CREATE TABLE IF NOT EXISTS Respondents (
name VARCHAR(255) PRIMARY KEY
);
CREATE TABLE IF NOT EXISTS Answers (
answerOne INT,
answerTwo INT,
answerThree INT,
answerFour INT,
name VARCHAR(255),
FOREIGN KEY (name) REFERENCES Respondents(name)
);
INSERT INTO Respondants (name) VALUES ('user1');