Skip to content

Instantly share code, notes, and snippets.

@juliarose
Created May 11, 2022 03:51
Show Gist options
  • Save juliarose/247bf705836a0218aa0a5275044a9389 to your computer and use it in GitHub Desktop.
Save juliarose/247bf705836a0218aa0a5275044a9389 to your computer and use it in GitHub Desktop.
Sort paints by highest to lowest value
SELECT paints.rgb1
FROM paints
INNER JOIN bptf_prices
ON bptf_prices.defindex = paints.defindex
WHERE
bptf_prices.craftable = true
ORDER BY
bptf_prices.currency ASC,
bptf_prices.value DESC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment