SQL में Exploratory Data Analysis
Christina Maimone
Data Scientist
Primary key: यूनिक, NULL नहीं
Unique: NULL को छोड़कर सभी मान अलग होने चाहिए
Not null: NULL अनुमत नहीं: कोई मान होना चाहिए
Check constraints: मानों पर शर्तें
column1 > 0columnA > columnBCommon
Special


Format
-- With the CAST function
SELECT CAST (value AS new_type);
Examples
-- 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;
Format
-- With :: notation
SELECT value::new_type;
Examples
-- Cast 3.7 as an integer
SELECT 3.7::integer;
-- Cast a column called total as an integer
SELECT total::integer
FROM prices;
SQL में Exploratory Data Analysis