Skip to content

Commit 4b196e2

Browse files
committed
forgottne script
1 parent 4acbc11 commit 4b196e2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/subdivision.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
UPDATE
2+
court_case
3+
SET
4+
subdivision = CASE
5+
WHEN substr(case_number, 5, 1) = '1' THEN
6+
CASE WHEN substr(case_number, 5, 2) = '10' THEN
7+
substr(case_number, 5, 3)
8+
ELSE
9+
substr(case_number, 5, 2)
10+
END
11+
END;
12+

0 commit comments

Comments
 (0)