POSTGRESQL DATABASE INTERVIEW QUESTIONS
Course:PostgreSQL
Chapter:Chapter 7 - DQL (Data Query Language)
Topic:DATE FUNCTIONS
Questions Count:10
1
What is the purpose of the CURRENT_DATE function in PostgreSQL?
Explanation:
2
How can you extract the year from a date in PostgreSQL?
Explanation:
3
What does the AGE function do in PostgreSQL?
Explanation:
4
Can you explain how the TO_CHAR function works with dates in PostgreSQL?
Explanation:
5
How does the DATE_PART function differ from the EXTRACT function in PostgreSQL?
Explanation:
6
What is the difference between CURRENT_TIMESTAMP and NOW() in PostgreSQL?
Explanation:
7
How can you calculate the difference in days between two dates in PostgreSQL?
Explanation:
8
What is the function of DATE_TRUNC in PostgreSQL and how is it used?
Explanation:
9
Explain how SET TIME ZONE affects date functions in PostgreSQL.
Explanation:
10
Describe how you can handle different date formats when importing data into PostgreSQL.
Explanation:
