Supercharger Status

ASKED IN INTERVIEW
2pts
Tesla

Problem Statement

Tesla’s network reliability team needs to dispatch technicians to repair faulty Superchargers. They require a real-time list of all charging stations located in the California region that currently have a status of Offline.

Write an SQL query to retrieve these stations.

Rules:

  • The region must be exactly California.
  • The status must be exactly Offline.
  • Output columns: station_id, station_name, last_ping.
  • Sort the results by station_id in ascending order.

Table Schema:

  • Stations: station_id, station_name, region, status (Online, Offline, Maintenance), last_ping.
Tests your understanding of
Basic SQL, Filtering and Logical Operators

Input Tables

Stations
station_id(INTEGER)station_name(VARCHAR)region(VARCHAR)status(VARCHAR)last_ping(TIMESTAMP)
101Palo Alto - University AveCaliforniaOffline2026-02-11 08:00:00
102Los Angeles - Santa MonicaCaliforniaOnline2026-02-11 09:30:00
103Seattle - DowntownWashingtonOffline2026-02-11 07:00:00
104San Diego - Fashion ValleyCaliforniaOffline2026-02-11 06:15:00
105Fresno - Highway 99CaliforniaMaintenance2026-02-11 09:00:00
106Burbank - MagnoliaCaliforniaOffline2026-02-11 09:45:00

Expected Output

station_id(INTEGER)station_name(VARCHAR)last_ping(TIMESTAMP)
101Palo Alto - University Ave2026-02-11 08:00:00
104San Diego - Fashion Valley2026-02-11 06:15:00
106Burbank - Magnolia2026-02-11 09:45:00

Tags

EasyASKED IN INTERVIEWBasic SQLFilteringLogical Operators
5 min
89%

Hints