SQLによる探索的データ分析
Christina Maimone
Data Scientist
主キー: 一意、NULLではない
ユニーク: 値はすべて異なる必要があります。ただし NULL {{2}} を除く
Null不可: NULL 使用不可: 値が必要です
制約を確認: 値 {{4}} の条件
column1 > 0columnA > columnB共通
特別


書式設定
-- With the CAST function
SELECT CAST (value AS new_type);
-- Cast 3.7 as an integer
SELECT CAST (3.7 AS integer);
4
-- Cast a column called total as an integer
SELECT CAST (total AS integer)
FROM prices;
書式設定
-- With :: notation
SELECT value::new_type;
例:{}
-- Cast 3.7 as an integer
SELECT 3.7::integer;
-- Cast a column called total as an integer
SELECT total::integer
FROM prices;
SQLによる探索的データ分析