Question: Use an INSERT INTO statement with a subquery containing a SQL string function to create user names for the volunteers based on their legal names

Use an INSERT INTO statement with a subquery containing a SQL string function to create user names for the volunteers based on their legal names and insert them into the new table.

SELECT substring(LastName, 1,3) as 'Username' from person - WORKS

SELECT substring(FirstName, 1,3) as 'Username' from person - WORKS

SELECT substring(LastName, 1,3) + '' + substring(FirstName, 1,3) as 'Username' from person - DOES NOT WORK

How can I combine the first two lines to make the last one?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!