I've been trying to create this table but keep getting the following error
Query failed: ERROR: invalid byte sequence for encoding "UTF8": 0x91
The code I've been working with is:
CREATE TABLE test (
clientNo CHAR(4) NOT NULL,
onDate DATE,
atTime TIME,
instructorID CHAR(4) NOT NULL,
centreID CHAR(4) NOT NULL,
status CHAR(4) CHECK ( status IN ('Fail', ‘Pass’, ‘null’) ),
reason VARCHAR(30),
PRIMARY KEY (clientNo, onDate, atTime),
FOREIGN KEY (clientNo) REFERENCES client (clientNo)
ON UPDATE CASCADE
ON DELETE CASCADE,
FOREIGN KEY (instructorID) REFERENCES instructor (instructorID)
ON UPDATE CASCADE
ON DELETE CASCADE,
FOREIGN KEY (centreID) REFERENCES centre (centreID)
ON UPDATE CASCADE,
CONSTRAINT testConstraints UNIQUE (instructorID, onDate, atTime)
);