Skip to content

Commit

Permalink
fix overrided column name...
Browse files Browse the repository at this point in the history
  • Loading branch information
bandinopla committed Aug 9, 2024
1 parent 657fece commit 8dfc1df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/db/resolvers/rpe.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ export const rpePercentLeftJoin = (alias, rep, rpe)=>{
#
# LEFT JOIN ( SELECT percent AS rpePercent, rep, rpe FROM rpe ) AS ${alias} ON RPE.rep=${rep} AND RPE.rpe=${rpe}
LEFT JOIN (
SELECT percent AS rpePercent, rep, rpe FROM (SELECT rep, rpe, percent FROM rpe_override
SELECT percent AS rpePercent, rep, rpe AS _rpe FROM (SELECT rep, rpe, percent FROM rpe_override
UNION
SELECT rep, rpe, percent FROM rpe ) B
SELECT rep, rpe AS _rpe, percent FROM rpe ) B
GROUP BY rep, rpe
)
AS ${alias} ON RPE.rep=${rep} AND RPE.rpe=${rpe}
AS ${alias} ON RPE.rep=${rep} AND RPE._rpe=${rpe}
`
}

0 comments on commit 8dfc1df

Please sign in to comment.