Template1=#\c devdw using \c to connect to the database Connected to Database "DEVDW" as User "Gpadmin". devdw=# CREATE TABLE tab_01 (id int); Create a table Notice:table doesn ' t has ' distributed by ' clause--Using column named ' ID ' as the greenplum Database data distribution Key for this table. Hint:the ' distributed by ' clause determines the distribution of data. Make sure column (s) chosen is the optimal data distribution key to minimize skew. CREATE TABLE devdw=# \d using \d to view table information List of relations Schema | Name | Type | Owner | Storage --------+--------+-------+---------+--------- Public | tab_01 | Table | Gpadmin | Heap (1 row) devdw=# INSERT into TAB_01 values (101); inserting data into a table INSERT 0 1 devdw=# select * from tab_01; Querying the information in a table Id ----- 101 (1 row) template1=# CREATE database col_devdw template DEVDW; To create a clone database using devdw as a template CREATE DATABASE template1=# \l using the \l command to view all current databases List of databases Name | Owner | Encoding | Access Privileges -----------+---------+----------+--------------------- COL_DEVDW | Gpadmin | UTF8 | DEVDW | Gpadmin | UTF8 | Postgres | Gpadmin | UTF8 | Template0 | Gpadmin | UTF8 | =c/gpadmin : Gpadmin=ctc/gpadmin template1 | Gpadmin | UTF8 | =c/gpadmin : Gpadmin=ctc/gpadmin TESTDW | Gpadmin | UTF8 | (6 rows) template1=# \c COL_DEVDW Connected to Database "COL_DEVDW" as User "Gpadmin". col_devdw=# \l List of databases Name | Owner | Encoding | Access Privileges -----------+---------+----------+--------------------- COL_DEVDW | gpadmin | UTF8 | DEVDW | Gpadmin | UTF8 | Postgres | Gpadmin | UTF8 | Template0 | Gpadmin | UTF8 | =c/gpadmin : Gpadmin=ctc/gpadmin template1 | Gpadmin | UTF8 | =c/gpadmin : Gpadmin=ctc/gpadmin TESTDW | Gpadmin | UTF8 | (6 rows) col_devdw=# \d List of relations Schema | Name | Type | Owner | Storage --------+--------+-------+---------+--------- Public | tab_01 | Table | Gpadmin | Heap (1 row) |