MulaiMulai sekarang secara gratis

Concatenate strings

House number (house_num) and street are in two separate columns in evanston311. Concatenate them together with concat() with a space in between the values.

Latihan ini adalah bagian dari kursus

Exploratory Data Analysis in SQL

Lihat Kursus

Petunjuk latihan

  • Concatenate house_num, a space ' ', and street into a single value using the concat().
  • Use a trim function to remove any spaces from the start of the concatenated value.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

-- Concatenate house_num, a space, and street and trim spaces from the start of the result
SELECT ___ AS address
  FROM evanston311;
Edit dan Jalankan Kode