Q1
True / FalseIn PostgreSQL, the CURRENT_DATE function returns the current date.
CURRENT_DATE is a standard SQL function supported by PostgreSQL that returns the current date as a date value.
Q2
True / FalseIn PostgreSQL, the AGE function can calculate the difference between two dates.
The AGE function in PostgreSQL is used to calculate the interval between two dates, providing a precise difference.
Q3
True / FalseIn PostgreSQL, the DATE_PART function can extract parts of a date, such as the year or month.
The DATE_PART function in PostgreSQL allows you to extract specific parts of a date, such as the year, month, day, hour, etc.
Q4
True / FalseIn PostgreSQL, the EXTRACT function cannot be used to retrieve the day of the week from a date.
The EXTRACT function in PostgreSQL can be used to retrieve various parts of a date, including the day of the week.
Q5
True / FalseIn PostgreSQL, the DATE_TRUNC function can be used to truncate a date to a specified precision, like 'month' or 'year'.
The DATE_TRUNC function in PostgreSQL truncates a date or timestamp to the specified precision (e.g., 'month', 'year').
Q6
True / FalseIn PostgreSQL, the TO_DATE function converts a text string to a date using a specified format.
The TO_DATE function in PostgreSQL converts a text string to a date value based on the format specified in the function's arguments.
Q7
True / FalseIn PostgreSQL, the ISODOW keyword in the EXTRACT function returns the ISO 8601 day of the week.
The ISODOW keyword in the EXTRACT function returns the ISO 8601 day of the week, where Monday is 1 and Sunday is 7.
Q8
True / FalseIn PostgreSQL, the INTERVAL keyword can only be used with TIMESTAMP types and not DATE types.
The INTERVAL keyword in PostgreSQL can be used with both TIMESTAMP and DATE types to add or subtract intervals.
Q9
True / FalseIn PostgreSQL, the JUSTIFY_INTERVAL function adjusts intervals to ensure that the months and days are within their normal ranges.
The JUSTIFY_INTERVAL function in PostgreSQL adjusts an interval to ensure that the months and days components are within their normal ranges (e.g., not having 30 days in February).
Q10
True / FalseIn PostgreSQL, the TIMEZONE function can convert a TIMESTAMP with time zone to another time zone.
The TIMEZONE function in PostgreSQL converts a TIMESTAMP WITH TIME ZONE to another time zone, adjusting the time accordingly.