Customer name changes → Just update ```sql UPDATE dim_customer SET name = 'John Smith' WHERE customer_id = 123; ``` Pros: Simple | Cons: Lose history
Scanned 9/10/2026
Install to Claude Code
npx -y skills add snoodleboot-io/prompticorn --skill minimal --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Minimal?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/snoodleboot-io-minimal-76917711)More formats (shields.io, HTML) on the badges page.
# Slowly Changing Dimensions (Minimal)
## Types
### Type 1: Overwrite
Customer name changes → Just update
```sql
UPDATE dim_customer SET name = 'John Smith'
WHERE customer_id = 123;
```
Pros: Simple | Cons: Lose history
### Type 2: Add New Row
Customer name changes → Add new record with effective dates
```sql
-- Old record: end_date = 2026-04-10
INSERT INTO dim_customer
(customer_id, name, start_date, end_date)
VALUES (123, 'John Smith', '2026-04-11', NULL);
```
Pros: Keep history | Cons: More rows
### Type 3: Add Column
```sql
ALTER TABLE dim_customer ADD previous_name VARCHAR;
UPDATE dim_customer SET previous_name = name
WHERE customer_id = 123;
UPDATE dim_customer SET name = 'John Smith'
WHERE customer_id = 123;
```
Pros: Keep previous + current | Cons: Only 2 versions
## When to Use
**Type 1 (Overwrite):** Not important (email, phone)
**Type 2 (New Row):** Important for analytics (address, price)
**Type 3 (Column):** Need previous + current (status change)
## Implementation Pattern
```sql
SELECT fact_id, customer_id, amount
FROM fact_sales fs
JOIN dim_customer dc
ON fs.customer_id = dc.customer_id
AND fs.date_id BETWEEN dc.start_date AND dc.end_date
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
This skill helps you track, analyze, and report on keyword ranking positions over time. It monitors both traditional SERP rankings and AI/GEO visibility to provide comprehensive search performance insights.
Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6...
Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.
Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API
Get current weather and forecasts (no API key required).