Session Ready
Exercise

Formatting text for colleagues

A website to monitor filming activity in New York City is being constructed based on film permit applications stored in film_permit. This website will include information like an event_id, parking restrictions required for the filming (parking_held), and the purpose of the filming.

Your task is to deliver data to the web development team in a format that will not require the team to perform further cleaning. event_id values will need to be padded with 0s in order to have a uniform length, capitalization for parking will need to be modified to only capitalize the initial letter of a word, and extra spaces from parking descriptions will need to be removed. The REGEXP_REPLACE() function (introduced in one of the previous exercises) will be used to clean the extra spaces.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • Complete the query so that each event_id is always 10 digits in length with preceding 0s added for any event_id less than 10 digits.