Discuss how to create custom stats, reports and HUD profiles and share your creations.
Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators
by 4StarGen » Fri Nov 15, 2024 9:08 am
I'm trying to compress the output of a string counting only the unique values in it, how can I do it?
- Code: Select all
(string_agg(CASE
WHEN expression
THEN some string
ELSE NULL
END, ',' ORDER BY cash_hand_player_statistics.date_played DESC))
-
4StarGen
-
- Posts: 947
- Joined: Sat Mar 08, 2014 6:58 am
-
by Flag_Hippo » Sun Nov 17, 2024 7:49 am
I'm afraid I don't know or have any SQL for that but if I am able to find out anything further I will let you know.
-
Flag_Hippo
- Moderator
-
- Posts: 15215
- Joined: Tue Jan 31, 2012 7:50 am
by Flag_Hippo » Mon Nov 18, 2024 2:04 pm
Can you please post in more detail exactly what you are trying actually to achieve with this.
-
Flag_Hippo
- Moderator
-
- Posts: 15215
- Joined: Tue Jan 31, 2012 7:50 am
by 4StarGen » Tue Nov 19, 2024 6:01 am
it is solved already
-
4StarGen
-
- Posts: 947
- Joined: Sat Mar 08, 2014 6:58 am
-
Return to Custom Stats, Reports and HUD Profiles
Users browsing this forum: No registered users and 15 guests