Aan de slagGa gratis aan de slag

Find the time zones

You can expect to utilize your data analysis skills to help developers diagnose code issues.

In this scenario, you are on a web browser development team investigating a bug. The issue is made more challenging because many users do not provide location. However, it is possible to segment users by time zone. Bug reports indicate that the issue affects users residing in time zones with a UTC offset between +5:30 and +5:45; moreover, the affected time zone is thought to have either a 30- or 45-minute offset.

The team lead wants you to provide the names and UTC offsets of the potentially affected time zones.

Deze oefening maakt deel uit van de cursus

Time Series Analysis in PostgreSQL

Cursus bekijken

Oefeninstructies

  • Retrieve the name and utc_offset of time zones having a UTC offset between +5:30 and +5:45 hours, ordered by name from the pg_timezone_names table.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

-- Select the name and utc_offset
SELECT name, ___
FROM ___
-- Filter for offsets between +5:30 and +5:45 hours
WHERE ___
ORDER BY name;
Code bewerken en uitvoeren