SELECT price_cents FROM products ORDER BY price_cents * ('{"EUR": 2.0}'::jsonb->'EUR')::jsonb::numeric;
Created
May 4, 2022 13:50
-
-
Save pioz/ac18e654bd6f7e2769e8478633049e66 to your computer and use it in GitHub Desktop.
Select products and order by converted price currency
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment