CURRENT_TIME
CURRENT_TIMESTAMP
EXTRACT
Returns the current timestamp.
Enter values below to update the example in real time.
order_id
created_at
elapsed
orders
SELECT order_id, CURRENT_TIMESTAMP - created_at AS elapsed FROM orders;