Skip to content

Commit

Permalink
[DSC-1448] Fix sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Jan 30, 2024
1 parent a2b5c45 commit 3309cc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-- --
-- Copy raws from nbevent_processed table to qaevent_processed table
-- --
INSERT INTO qaevent_processed as qa (qaevent_id, qaevent_timestamp, eperson_uuid, item_uuid)
INSERT INTO qaevent_processed (qaevent_id, qaevent_timestamp, eperson_uuid, item_uuid)
SELECT nbevent_id, nbevent_timestamp, eperson_uuid, item_uuid UUID
FROM nbevent_processed as nb WHERE NOT EXISTS(
SELECT * FROM qaevent_processed as qa WHERE qa.qaevent_id = nb.nbevent_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-- --
-- Copy raws from nbevent_processed table to qaevent_processed table
-- --
INSERT INTO qaevent_processed as qa (qaevent_id, qaevent_timestamp, eperson_uuid, item_uuid)
INSERT INTO qaevent_processed (qaevent_id, qaevent_timestamp, eperson_uuid, item_uuid)
SELECT nbevent_id, nbevent_timestamp, eperson_uuid, item_uuid UUID
FROM nbevent_processed as nb WHERE NOT EXISTS(
SELECT * FROM qaevent_processed as qa WHERE qa.qaevent_id = nb.nbevent_id
Expand Down

0 comments on commit 3309cc4

Please sign in to comment.