Skip to content

Commit

Permalink
Update the buyback numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny77D committed Nov 25, 2024
1 parent cdab856 commit ed2e917
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions models/staging/metaplex/fact_metaplex_buybacks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ buybacks AS (
)
SELECT
b.date,
MAX(b.amount) as buyback_native,
MAX(b.amount * p.price) AS buyback
b.amount as buyback_native,
b.amount * p.price AS buyback
FROM
buybacks b
LEFT JOIN
prices p
ON b.date = p.date
GROUP BY b.date
ORDER BY
b.date DESC

0 comments on commit ed2e917

Please sign in to comment.