Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Split Full Name Into First and Last

Each full name consists of exactly two words separated by a space. Return the first_name and last_name as separate columns, ordered by id.

Table schema

Users(id INT PRIMARY KEY, full_name VARCHAR(100))

Sample data

id | full_name
1 | Amit Shah
2 | Riya Patil

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.