PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches

Quick Overview

This question evaluates a candidate's ability to perform date/time data transformation and normalization in SQL or Python, focusing on converting raw numeric dates into standardized quarter labels for aggregation and reporting.

  • Medium
  • Point72
  • Data Manipulation (SQL/Python)
  • Data Scientist

Convert Dates to Calendar Quarter Labels in SQL/Python

Company: Point72

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Technical Screen

Transactions +----+-----------+ | id | trans_dt | +----+-----------+ | 1 | 20230115 | | 2 | 20230402 | | 3 | 20230930 | | 4 | 20231201 | +----+-----------+ ##### Scenario Financial reporting needs quarterly sales aggregation from raw numeric dates. ##### Question Given a table of transactions where the date is stored as an 8-digit integer (YYYYMMDD), write SQL and/or Python code that converts each date into its calendar quarter label (e.g., 20230215 → 2023_Q 1). ##### Hints Convert to date type, extract month, map month to quarter with CASE or arithmetic.

Quick Answer: This question evaluates a candidate's ability to perform date/time data transformation and normalization in SQL or Python, focusing on converting raw numeric dates into standardized quarter labels for aggregation and reporting.

Last updated: Mar 29, 2026

Loading coding console...

PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.

Related Coding Questions

  • Build the auction status table - Point72 (hard)
  • Write SQL for top student per department - Point72 (Medium)
  • Convert integer dates to quarters - Point72 (Medium)
  • Write SQL for recent customer activity - Point72 (Medium)
  • List Departments with Student Counts Including Zero - Point72 (Medium)