FastPrepWeekend Appointments for Consular Services Rescheduling
Problems/Weekend Appointments for Consular Services Rescheduling

Weekend Appointments for Consular Services Rescheduling

McKinsey & Company logoMcKinsey & Company● EasyFULLTIMEOA

Updated Nov 2026

QuestionConstraints

Problem statement

Source note: Reported in a McKinsey & Company online assessment. Our version is about 90% the same as the reported question. The screenshot leaves the table layout and sample tables collapsed. We wrote the table, the input limits, and the order for equal emails here. Some of the text in the screenshot is cut off at the right edge.

A consular-services dashboard needs to identify appointments scheduled on weekends so that staff can reschedule them to working days. List all appointments whose scheduled date falls on Saturday or Sunday.

Appointment data

The appointments table contains one row per appointment:

ColumnTypeMeaning
emailtextEmail address of the user who made the appointment.
scheduled_appointmentdateThe appointment's scheduled calendar date.

Required result

  • email: the appointment's email address, unchanged.
  • scheduled_appointment: the English day name Saturday or Sunday.

Include only weekend appointments. Sort by email ascending. For this exercise, email ordering is case-sensitive ASCII order, and equal emails are ordered by the output day name ascending: Saturday before Sunday.

Keep one result row for every matching appointment, including duplicate rows. If no appointment is on a weekend, return an empty result with these two columns. The task only identifies the appointments; do not choose new dates or modify the input.

Table schema

MySQLPostgreSQLPandas

Use the same input data with any supported language. Open the Schema tab in the editor to see the generated SQL setup or Pandas DataFrames.

appointments

ColumnTypeNullableDescription
emailTextNoUnchanged user email address.
scheduled_appointmentDateNoScheduled calendar date without a time or timezone.

Expected result

Your query or function must return these columns.

ColumnTypeNullableDescription
emailTextNo—
scheduled_appointmentTextNo—

Row order: must match exactly. Numeric tolerance: 0.

Constraints

  • 0 <= number of appointments <= 2000.
  • Both columns are non-null.
  • Email values are nonempty ASCII strings of at most 254 characters. Preserve their spelling and case.
  • Scheduled dates are valid Gregorian calendar dates from 2000-01-01 through 2100-12-31. They contain no time or timezone component.
  • The input is not necessarily sorted, and multiple rows may contain the same email or date.

More McKinsey & Company Online Assessment questions

  • Count Repeated Request IDs (Data Science OA)OA · Seen Oct 2026
  • Minimize Adjacent Squared-Difference Cost with One InsertionOA · Seen Oct 2026
  • Minimum Knight MovesOA · Seen Jun 2026

Similar questions at other companies

  • Benchmarking Tool ReportPalantir · OA
  • Prepare Taxi Driver Classification DataBoston Consulting Group · OA
  • Clean the TapeMillennium · OA
  • Summarize Customer RecordsAgoda · OA
  • Latest New JobSphere · ONSITE INTERVIEW
  • Second Highest SalaryHartford Financial Services · ONSITE INTERVIEW
  • In-Memory Database QueriesOpenAI · PHONE SCREEN · ONSITE INTERVIEW
  • Macaron Order with Set DiscountsShopify · OA
  • Build the Task HierarchyPendo · OA
  • Count User Mentions in Chat MessagesRamp · OA
See McKinsey & Company hiring insights