Complete the code to add 5 days to the current date.
SELECT CURRENT_DATE [1] INTERVAL '5 days';
In PostgreSQL, you add intervals to dates using the + operator.
Complete the code to subtract 2 months from the current date.
SELECT CURRENT_DATE [1] INTERVAL '2 months';
Use the minus sign (-) to subtract intervals from dates in PostgreSQL.
Fix the error in the code to add 10 hours to the timestamp '2024-01-01 08:00:00'.
SELECT TIMESTAMP '2024-01-01 08:00:00' [1] INTERVAL '10 hours';
The plus sign (+) correctly adds the interval to the timestamp.
Fill both blanks to subtract 15 days and then add 3 hours to the current timestamp.
SELECT CURRENT_TIMESTAMP [1] INTERVAL '15 days' [2] INTERVAL '3 hours';
First subtract 15 days using '-', then add 3 hours using '+'.
Fill all three blanks to add 1 year, subtract 2 months, and add 10 days to the current date.
SELECT CURRENT_DATE [1] INTERVAL '1 year' [2] INTERVAL '2 months' [3] INTERVAL '10 days';
Add 1 year with '+', subtract 2 months with '-', then add 10 days with '+'.
