If you want to count something inside a group (something the same as auto_increment from mysql), you can use row_number
ROW_NUMBER ()
OVER (PARTITION BY ur_prnt_uid_id ORDER BY ur_chld_uid_id)
Everything Changes
-
I saw a recent tweet (on Bluesky) from SQLDaily highlighting a blog note
that Lukas Eder wrote in 2016 with the title: “Avoid using COUNT() in SQL
when you...
Acum o săptămână
Niciun comentariu:
Trimiteți un comentariu