Introduction to Relational Databases in SQL
Timo Grossenbacher
Data Journalist


professors, universities, companiescompanies jen jeden záznamprofessor může působit na více universities a companies, company může zaměstnávat více professorsPotřebujete: základní znalost SQL, viz kurz Introduction to SQL.
SELECT table_schema, table_name
FROM information_schema.tables;
table_schema | table_name
-------------------+------------------------------
pg_catalog | pg_statistic
pg_catalog | pg_type
pg_catalog | pg_policy
pg_catalog | pg_authid
pg_catalog | pg_shadow
public | university_professors
pg_catalog | pg_settings
...
SELECT table_name, column_name, data_type
FROM information_schema.columns
WHERE table_name = 'pg_config';
table_name | column_name | data_type
-----------+-------------+-----------
pg_config | name | text
pg_config | setting | text
Introduction to Relational Databases in SQL