Professional Documents
Culture Documents
What's in The Database?: Christina Maimone
What's in The Database?: Christina Maimone
database?
E X P L O R AT O R Y D ATA A N A LY S I S I N S Q L
Christina Maimone
Data Scientist
PostgreSQL
NULL missing
NULL missing
NULL missing
NULL missing
NULL missing
NULL missing
Christina Maimone
Data Scientist
Foreign keys
Via a unique ID
column_1 | column_2
----------+----------
| 10
|
22 |
3 | 4
coalesce
----------
10
22
3
Christina Maimone
Data Scientist
Column constraints
Foreign key: value that exists in the referenced column, or NULL
Numeric Arrays
Character Monetary
Date/Time Binary
Boolean Geometric
Network Address
XML
JSON
and more!
Examples
-- With :: notation
SELECT value::new_type;
Examples