-3

For example, you are given a requirement to create a column based on the following scenario: Get letters of FirstName Column (2,3,5) CONCAT with letters of LastName column (2,3) to create a new column "LETTERS OF NAME".

P.S solution could be in SQL. I am using OBIEE if you have drag n drop solution you are welcome.

user3323487
  • 61
  • 1
  • 1
  • 10

1 Answers1

0

As mentioned by Gordon, you can use SUBSTR()

SELECT SUBSTR(FIRST_NAME,2,2)||SUBSTR(FIRST_NAME,5,1)||SUBSTR(LAST_NAME,2,2) AS LETTERS_OF_NAME 
FROM YOUR_TABLE;
Arun Palanisamy
  • 5,281
  • 6
  • 28
  • 53