POSTGRESQL DATABASE INTERVIEW QUESTIONS

Course:PostgreSQL
Chapter:Chapter 7 - DQL (Data Query Language)
Questions Count:10
1

What is the ROUND() function in PostgreSQL, and how do you use it with numeric values?

Explanation:
2

How does the CEILING() function work in PostgreSQL?

Explanation:
3

Explain the use of the FLOOR() function in PostgreSQL.

Explanation:
4

What does the MOD() function do in PostgreSQL, and can you provide an example?

Explanation:
5

Describe the purpose of the TRUNC() function in PostgreSQL and how it differs from ROUND().

Explanation:
6

How would you use the POWER() function in PostgreSQL to calculate the square and cube of a number?

Explanation:
7

How does PostgreSQL handle division of two integers when using the DIV() function, and what should you be aware of?

Explanation:
8

Explain how the SIGN() function is used in PostgreSQL and provide an example where it might be useful.

Explanation:
9

How would you use the LN() function in PostgreSQL to compute the natural logarithm, and why is it important in certain calculations?

Explanation:
10

In PostgreSQL, how would you calculate the standard deviation of a numeric column using built-in functions, and why is this metric important?

Explanation: