This commit is contained in:
kittapath 2025-03-06 15:18:43 +07:00
parent 990d80e64d
commit f38e5b26f0
3 changed files with 108 additions and 108 deletions

View file

@ -51,10 +51,10 @@ import { ViewColumn, ViewEntity } from "typeorm";
ed.degree,
ed.profileId,
ed.level,
ROW_NUMBER() OVER (PARTITION BY ed.profileId ORDER BY ed.level ASC) AS ed_number
ROW_NUMBER() OVER (PARTITION BY ed.profileId ORDER BY ed.level DESC) AS ed_number
FROM profileEducation ed
WHERE ed.isUse IS TRUE
ORDER BY ed.level ASC
ORDER BY ed.level DESC
),
PositionDate AS (
SELECT