Question: 1. How do I just the last 4 digits only instead of the front digit? --Look at the SalesOrderHeader table. Return the last group of

1. How do I just the last 4 digits only instead of the front digit?

--Look at the SalesOrderHeader table. Return the last group of digits out from AccountNumber column. Select RIGHT(AccountNumber,4) as AccountNumber From [Sales].[SalesOrderHeader];

--Use a different string manipulation function. Select LEN(AccountNumber) as AccountNumber From [Sales].[SalesOrderHeader];

--Use a different string manipulation function. Select Reverse (AccountNumber) as AccountNumber From [Sales].[SalesOrderHeader];

Is everything correct?

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!