Skip to content
Advertisement

How to create new table with first name only in table

I have some data that looks like this:

JavaScript

I’d like to create a new table with the name column but with the first name only.

Advertisement

Answer

This gets the first substring before the space character in name as first_name.

JavaScript
first_name
Arizona
Emerald
Advertisement