Why Nostr? What is Njump?
2025-04-16 21:25:25
in reply to

Ret the Folf on Nostr: What can you do about this? Well, not much really. Frustratingly a lot of the ...

What can you do about this? Well, not much really. Frustratingly a lot of the documentation is focussed on avoiding this error and not getting the result you probably want.

In MySQL (the only correct DBMS :blobfoxsmirk: ), one can use the ANY_VALUE() function to wrap those nonaggregated, non-functionally-dependent columns and say *"yeah, I know they'll be random, don't worry about it uwu" :blobfox: *.

You could make the nonaggregated, non-grouped-by columns UNIQUE or PRIMARY KEYs, but that isn't practical in most cases (like here, where the table contains multiple records with the same person).

Rewriting your query in a way that selects full rows based on the aggregated subquery might be the approach to take (that's what I did today).
Author Public Key
npub136mqky5kqr4jxtvulh2dq8egal2408t3tf3rptq0ah0ydufsfx3qzxkh6w