Aan de slagGa gratis aan de slag

Casting dates

Oftentimes, you will want to conveniently parse a wide variety of date strings with as little code as possible.

In this exercise, you will take on the role of a software engineer at a fintech startup testing a search engine bot. For the purpose of performing financial data aggregation and data quality analysis, you have collected several sample date strings and put them into a table called dc_datestrings.

Deze oefening maakt deel uit van de cursus

Time Series Analysis in PostgreSQL

Cursus bekijken

Oefeninstructies

  • Convert the field datestring in the dc_datestrings table into DATE data type.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

-- Convert the datestring data type
SELECT 
    ___ AS dates
FROM dc_datestrings; 
Code bewerken en uitvoeren