Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
use outer join
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Feb 20, 2023
1 parent bdebde5 commit ef5df23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sql/orderbook/batch_rewards.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ reward_data AS (
-- participation
participants
FROM hashed_observations ho
JOIN settlement_scores ss
-- outer joins made in order to detect missing data.
LEFT OUTER JOIN settlement_scores ss
ON ho.auction_id = ss.auction_id
JOIN auction_participants ap
LEFT OUTER JOIN auction_participants ap
ON ho.auction_id = ap.auction_id
)

Expand Down

0 comments on commit ef5df23

Please sign in to comment.