Skip to content

Commit

Permalink
fix consistency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Baldwin committed Aug 1, 2024
1 parent 8e2d66a commit 63297de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-07-30-everythings-a-case-statement.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ For example, I've used `CHOOSE` in the past to act as a sort of "round-robin" pi

```tsql
DECLARE @RandEventTypeID int;
SELECT @RandEventTypeID = CHOOSE(ABS(CHECKSUM(NEWID())%5)+1, 3, 6, 7, 11, 21)
SELECT @RandEventTypeID = CHOOSE(ABS(CHECKSUM(NEWID())%5)+1, 1, 2, 5, 7, 21)
SELECT @RandEventTypeID
```

Expand Down

0 comments on commit 63297de

Please sign in to comment.