update view

This commit is contained in:
Bright 2025-02-24 14:49:30 +07:00
parent 7a3085c57f
commit 0062f0df0a
3 changed files with 427 additions and 3 deletions

View file

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