diff --git a/agoncharov/clickhouse/greenplum/postgresql/create_table_insert_into.sql b/agoncharov/clickhouse/greenplum/postgresql/create_table_insert_into.sql new file mode 100644 index 0000000..1deac46 --- /dev/null +++ b/agoncharov/clickhouse/greenplum/postgresql/create_table_insert_into.sql @@ -0,0 +1,12 @@ +-- Этап 1: Создание таблиц и связей +-- Создай все таблицы в SQL +-- Заполни данными (INSERT) +-- Настрой внешние ключи +--Таблица 1: + CREATE TABLE agoncharov.courses ( + id int4 NOT NULL, + title varchar(50) NOT NULL, + category varchar(50) NOT NULL, + created_at date NOT NULL, + CONSTRAINT courses_pkey PRIMARY KEY (id) +); \ No newline at end of file diff --git a/agoncharov/clickhouse/greenplum/postgresql/petproject_stage1_createtable.sql b/agoncharov/clickhouse/greenplum/postgresql/petproject_stage1_createtable.sql deleted file mode 100644 index b85585e..0000000 --- a/agoncharov/clickhouse/greenplum/postgresql/petproject_stage1_createtable.sql +++ /dev/null @@ -1 +0,0 @@ -create table users \ No newline at end of file