Sunday, 27 September 2020

Postgresql: Important Queries

 --To get the list of tables in Postresql:

SELECT * FROM information_schema.tables WHERE table_name = 'tablename'


--To get the list of columns in the Postgresql tables:

SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'tablename';

DBT - Models

Models are where your developers spend most of their time within a dbt environment. Models are primarily written as a select statement and ...