Question: Write a SELECT statement that returns these columns from the Orders and Customers table: The first initial of the first name ( using SUBSTRING )

Write a SELECT statement that returns these columns from the Orders and Customers table:
The first initial of the first name (using SUBSTRING) concatenated with Last Name field. Use the alias CustomerName.
CardType
The last four digits of the CardNumber (assume that the length of all is 16). Use SUBSTRING starting at 13 and returning next 4 digits. Use alias Last4Digits.

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 Programming Questions!