Advanced Analytics interview questions

21 real Advanced Analytics questions from the SQL bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Window frame clause?

Senior
  1. A.the part of a window definition that uses ROWS or RANGE to bound which surrounding rows the calculation includes
  2. B.a function that distributes the partition's rows into a specified number of roughly equal buckets and labels each row with its bucket number
  3. C.a reusable window specification declared once in a WINDOW clause and referenced by name across several functions
  4. D.a function that returns the value from the first row of the current window frame
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Senior
  1. A.Window frame clause — the part of a window definition that uses ROWS or RANGE to bound which surrounding rows the calculation includes
  2. B.Window frame clause — a reusable window specification declared once in a WINDOW clause and referenced by name across several functions
  3. C.Window frame clause — the implicit RANGE bound from the partition start through the current row and its peers used when no explicit frame is written with an ORDER BY
  4. D.Window frame clause — a function giving the relative rank of a row as its rank minus one divided by the number of partition rows minus one
Reveal the answer + AI explanation — free account

4. What is NTILE?

Mid
  1. A.the part of a window definition that uses ROWS or RANGE to bound which surrounding rows the calculation includes
  2. B.a function that returns the value from the first row of the current window frame
  3. C.a reusable window specification declared once in a WINDOW clause and referenced by name across several functions
  4. D.a function that distributes the partition's rows into a specified number of roughly equal buckets and labels each row with its bucket number
Reveal the answer + AI explanation — free account

5. Which term means: "a function that distributes the partition's rows into a specified number of roughly equal buckets and labels each row with its bucket number"?

Mid
  1. A.Named window
  2. B.NTILE
  3. C.PERCENT_RANK
  4. D.Default window frame
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.NTILE — the part of a window definition that uses ROWS or RANGE to bound which surrounding rows the calculation includes
  2. B.NTILE — a function that returns the value from the first row of the current window frame
  3. C.NTILE — the implicit RANGE bound from the partition start through the current row and its peers used when no explicit frame is written with an ORDER BY
  4. D.NTILE — a function that distributes the partition's rows into a specified number of roughly equal buckets and labels each row with its bucket number
Reveal the answer + AI explanation — free account

7. What is FIRST_VALUE?

Mid
  1. A.a function that returns the value from the first row of the current window frame
  2. B.a reusable window specification declared once in a WINDOW clause and referenced by name across several functions
  3. C.a function that distributes the partition's rows into a specified number of roughly equal buckets and labels each row with its bucket number
  4. D.the implicit RANGE bound from the partition start through the current row and its peers used when no explicit frame is written with an ORDER BY
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.FIRST_VALUE — a function giving the relative rank of a row as its rank minus one divided by the number of partition rows minus one
  2. B.FIRST_VALUE — a function giving the cumulative distribution, the fraction of partition rows with a value less than or equal to the current row
  3. C.FIRST_VALUE — a reusable window specification declared once in a WINDOW clause and referenced by name across several functions
  4. D.FIRST_VALUE — a function that returns the value from the first row of the current window frame
Reveal the answer + AI explanation — free account

10. What is CUME_DIST?

Senior
  1. A.a function that distributes the partition's rows into a specified number of roughly equal buckets and labels each row with its bucket number
  2. B.a function giving the cumulative distribution, the fraction of partition rows with a value less than or equal to the current row
  3. C.a reusable window specification declared once in a WINDOW clause and referenced by name across several functions
  4. D.the part of a window definition that uses ROWS or RANGE to bound which surrounding rows the calculation includes
Reveal the answer + AI explanation — free account

11. Which term means: "a function giving the cumulative distribution, the fraction of partition rows with a value less than or equal to the current row"?

Senior
  1. A.Default window frame
  2. B.Named window
  3. C.FIRST_VALUE
  4. D.CUME_DIST
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Senior
  1. A.CUME_DIST — a function giving the cumulative distribution, the fraction of partition rows with a value less than or equal to the current row
  2. B.CUME_DIST — the implicit RANGE bound from the partition start through the current row and its peers used when no explicit frame is written with an ORDER BY
  3. C.CUME_DIST — a function that returns the value from the first row of the current window frame
  4. D.CUME_DIST — a function giving the relative rank of a row as its rank minus one divided by the number of partition rows minus one
Reveal the answer + AI explanation — free account

13. What is PERCENT_RANK?

Senior
  1. A.the part of a window definition that uses ROWS or RANGE to bound which surrounding rows the calculation includes
  2. B.the implicit RANGE bound from the partition start through the current row and its peers used when no explicit frame is written with an ORDER BY
  3. C.a function giving the relative rank of a row as its rank minus one divided by the number of partition rows minus one
  4. D.a function that returns the value from the first row of the current window frame
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.PERCENT_RANK — the implicit RANGE bound from the partition start through the current row and its peers used when no explicit frame is written with an ORDER BY
  2. B.PERCENT_RANK — a function that distributes the partition's rows into a specified number of roughly equal buckets and labels each row with its bucket number
  3. C.PERCENT_RANK — a function giving the relative rank of a row as its rank minus one divided by the number of partition rows minus one
  4. D.PERCENT_RANK — a reusable window specification declared once in a WINDOW clause and referenced by name across several functions
Reveal the answer + AI explanation — free account

16. What is Default window frame?

Senior
  1. A.a reusable window specification declared once in a WINDOW clause and referenced by name across several functions
  2. B.the implicit RANGE bound from the partition start through the current row and its peers used when no explicit frame is written with an ORDER BY
  3. C.the part of a window definition that uses ROWS or RANGE to bound which surrounding rows the calculation includes
  4. D.a function that distributes the partition's rows into a specified number of roughly equal buckets and labels each row with its bucket number
Reveal the answer + AI explanation — free account

17. Which term means: "the implicit RANGE bound from the partition start through the current row and its peers used when no explicit frame is written with an ORDER BY"?

Senior
  1. A.CUME_DIST
  2. B.Default window frame
  3. C.PERCENT_RANK
  4. D.FIRST_VALUE
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.Default window frame — the part of a window definition that uses ROWS or RANGE to bound which surrounding rows the calculation includes
  2. B.Default window frame — a function giving the relative rank of a row as its rank minus one divided by the number of partition rows minus one
  3. C.Default window frame — a function that returns the value from the first row of the current window frame
  4. D.Default window frame — the implicit RANGE bound from the partition start through the current row and its peers used when no explicit frame is written with an ORDER BY
Reveal the answer + AI explanation — free account

19. What is Named window?

Mid
  1. A.a function that distributes the partition's rows into a specified number of roughly equal buckets and labels each row with its bucket number
  2. B.the part of a window definition that uses ROWS or RANGE to bound which surrounding rows the calculation includes
  3. C.a reusable window specification declared once in a WINDOW clause and referenced by name across several functions
  4. D.a function that returns the value from the first row of the current window frame
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.Named window — a function that distributes the partition's rows into a specified number of roughly equal buckets and labels each row with its bucket number
  2. B.Named window — a reusable window specification declared once in a WINDOW clause and referenced by name across several functions
  3. C.Named window — the implicit RANGE bound from the partition start through the current row and its peers used when no explicit frame is written with an ORDER BY
  4. D.Named window — a function that returns the value from the first row of the current window frame
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Advanced Analytics free