sql
SELECT * FROM products WHERE updated_at current_price < previous_price;
g
garyaustin
03/22/2022, 4:00 PM
Please in the future try and post your question as a single message (use shift return if needed) or start a thread.
You would need to do that thru an rpc call with a function returning setof records or setof products.