Closed Jake-Gillberg closed 3 years ago
Changes needed to run the study at Tufts Medical Center
SQL that is closer to conforming to these rules: https://ohdsi.github.io/SqlRender/articles/UsingSqlRender.html#functions-and-structures-supported-by-translate-1
DROP IF EXISTS -> IF OBJECT_ID IS NOT NULL DROP
CREATE TABLE AS -> SELECT INTO
UPDATE table alias FROM join_table -> UPDATE table FROM table INNER JOIN join_table
CEIL -> CEILING
GROUP BY 1 -> GROUP BY coulmn_name
Thanks, I confirmed that this works in Postgres also! Hopefully it will work in the other databases as well.
Changes needed to run the study at Tufts Medical Center
SQL that is closer to conforming to these rules: https://ohdsi.github.io/SqlRender/articles/UsingSqlRender.html#functions-and-structures-supported-by-translate-1
DROP IF EXISTS -> IF OBJECT_ID IS NOT NULL DROP
CREATE TABLE AS -> SELECT INTO
UPDATE table alias FROM join_table -> UPDATE table FROM table INNER JOIN join_table
CEIL -> CEILING
GROUP BY 1 -> GROUP BY coulmn_name