update view
This commit is contained in:
parent
7a3085c57f
commit
0062f0df0a
3 changed files with 427 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue