BaşlayınÜcretsiz Başlayın

Extracting substrings from text data

In this exercise, you are going to practice how to extract substrings from text columns. The Sakila database contains the address table which stores the street address for all the rental store locations. You need a list of all the street names where the stores are located but the address column also contains the street number. You'll use several functions that you've learned about in the video to manipulate the address column and return only the street address.

Bu egzersiz

Functions for Manipulating Data in PostgreSQL

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Extract only the street address without the street number from the address column.
  • Use functions to determine the starting and ending position parameters.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

SELECT 
  -- Select only the street name from the address table
  ___(address ___ ___(' ' ___ ___)+1 FOR ___(___))
FROM 
  address;
Kodu Düzenle ve Çalıştır