generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Derek Roberts <[email protected]>
- Loading branch information
1 parent
492389a
commit 3477c9a
Showing
11 changed files
with
335 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 14 additions & 10 deletions
24
sync/config/SQL/SPAR/POSTGRES_SEEDLOT_GENETIC_WORTH_EXTRACT.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
SELECT | ||
seedlot_number | ||
, genetic_worth_code | ||
, genetic_quality_value genetic_worth_rtng | ||
, REPLACE(entry_userid,'\', '@') as entry_userid | ||
, entry_timestamp | ||
, REPLACE(update_userid,'\', '@') as update_userid | ||
, update_timestamp | ||
, revision_count | ||
sgw.seedlot_number | ||
, sgw.genetic_worth_code | ||
, sgw.genetic_quality_value genetic_worth_rtng | ||
, REPLACE(sgw.entry_userid,'\', '@') as entry_userid | ||
, sgw.entry_timestamp | ||
, REPLACE(sgw.update_userid,'\', '@') as update_userid | ||
, sgw.update_timestamp | ||
, sgw.revision_count | ||
FROM spar.seedlot_genetic_worth sgw | ||
JOIN spar.seedlot s | ||
ON s.seedlot_number = sgw.seedlot_number | ||
WHERE sgw.seedlot_number = %(p_seedlot_number)s | ||
ORDER BY seedlot_number | ||
, genetic_worth_code | ||
AND s.seedlot_status_code != 'PND' | ||
ORDER BY sgw.seedlot_number | ||
, sgw.genetic_worth_code | ||
Oops, something went wrong.