Paul
09/03/2021, 2:33 PMselect id, name, filterType, RANK() OVER (PARTITION BY filterType order by name asc) type_rank from DamFile;
Result:
+----------------------------+------------------+------------+-----------+
| id | name | filterType | type_rank |
+----------------------------+------------------+------------+-----------+
| 01FEP11SA9RM3YGQAKTQGKQB2Y | Folder 1 | folder | 1 |
| 01FEP0VMFZ88YP495J17SG6SN2 | exif_image1.jpg | image | 1 |
| 01FEP0VMGSF5TN5QK7V15BMYB0 | exif_image10.jpg | image | 2 |
ThanksRyan
09/03/2021, 2:40 PMrank.
There’s a feature request for the same here that you can add a 👍 to.Paul
09/03/2021, 2:48 PM