Session Ready
Exercise

Finding gaps between questions and answers

Now we'll join together questions with answers so we can measure the time between questions and answers.

Make sure to explore the tables and columns in the console before starting the exercise. Can you tell how are questions identified in the questions table? How can you identify which answer corresponds to which question using the answers table?

Instructions
100 XP
  • Use an inner join to combine the questions and answers tables using the suffixes "_question" and "_answer", respectively.
  • Subtract creation_date_question from creation_date_answer within the as.integer() function to create the gap column.

If your exercise is timing out, you are likely using the wrong columns for joining, causing the result to be too big! Check the join fields carefully!