skip to Main Content

Postgresql – CREATE TABLE where columns' values are derived from BOOLEAN expression of columns´ in source table

My previous question was not understood well, so I reformulated it here. Having this as the source table: CREATE TABLE response (response_id INT, utime INT, question_id INT, response VARCHAR(500)) INSERT INTO response (response_id, utime, question_id, response) VALUES (5,1459542506,11,1),(5,1459542506,12,0),(5,1459542506,13,0), (5,1459542506,14,0),(5,1459542506,15,0),(7,1458210291,11,0),(7,1458210291,12,1), (7,1458210291,13,1),(7,1458210291,14,0),(7,1458216077,15,1),(10,1458212391,11,1),…

VIEW QUESTION
Back To Top
Search