PostgreSQL - Advanced Features
Given the ENUM type and table:
What will the SELECT query return?
CREATE TYPE mood AS ENUM ('happy', 'sad', 'neutral');
CREATE TABLE person (name TEXT, current_mood mood);
INSERT INTO person VALUES ('Alice', 'happy'), ('Bob', 'sad');
SELECT * FROM person WHERE current_mood = 'neutral';What will the SELECT query return?
