Skip to content

Instantly share code, notes, and snippets.

View wakchu's full-sized avatar
📈
Learning

Bordoni Stefano wakchu

📈
Learning
View GitHub Profile
@wakchu
wakchu / SQLCountries.sql
Created October 7, 2025 14:52
SQL query for all the 193 contries members of the united nations (iso_code, name, region, lat, lon, timezone)
CREATE TABLE country (
iso_code CHAR(2) NOT NULL, -- ISO 3166-1 alpha-2 (IT, US, FR, ...)
name VARCHAR(150) NOT NULL,
region VARCHAR(100),
lat DECIMAL(9,6),
lon DECIMAL(9,6),
timezone VARCHAR(50),
inserted_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (iso_code)