Skip to content

Commit 80c33c5

Browse files
committed
docs: add get_tranco_rank_category
[no ci]
1 parent a587222 commit 80c33c5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/functions/tranco/get-tranco-rank.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,15 @@ D select get_tranco_rank('cloudflare.com') as rank;
3333
13
3434
└───────┘
3535
```
36+
37+
You can use the `get_tranco_rank_category` function to retrieve the category utility column that gives you the rank category of the domain. The `category` value is on a log10 scale with half steps (e.g. top 1k, top 5k, top 10k, top 50k, top 100k, top 500k, top 1M, top 5m, etc.) with each rank excluding the previous (e.g. top 5k is actually 4k domains, excluding top 1k).
38+
39+
```sql
40+
D SELECT get_tranco_rank_category('microsoft.com') as category;
41+
┌──────────┐
42+
│ category │
43+
varchar
44+
├──────────┤
45+
│ top1k │
46+
└──────────┘
47+
```

0 commit comments

Comments
 (0)