Skip to content

Instantly share code, notes, and snippets.

@bv097
bv097 / etl.sql
Last active March 8, 2026 19:34
SQL
DROP DATABASE IF EXISTS POS;
CREATE DATABASE POS;
USE POS;
DROP TEMPORARY TABLE IF EXISTS temp_customer;
DROP TEMPORARY TABLE IF EXISTS temp_orderline;
CREATE TABLE City (
zip DECIMAL(5,0) ZEROFILL PRIMARY KEY,
city VARCHAR(32),