I'm trying to convert the following Oracle code to SQL. Could you please help? I've got no documentation on Oracle functions to explain how they work.
substr(BRANCH, -1, 1) || substr(REGISTERNUMBER, -3, 3);
In Oracle, the BRANCH attribute is a VARCHAR(4) and the REGISTERNUMBER is a VARCHAR(6). The SQL attributes are of the same datatype.
I know that the SQL version s/b SUBSTRING(branch,?,?) + SUBSTRING(registernumber,?,?) but I'm not sure of the proper numbers.
Thanks for any input...
substr(BRANCH, -1, 1) || substr(REGISTERNUMBER, -3, 3);
In Oracle, the BRANCH attribute is a VARCHAR(4) and the REGISTERNUMBER is a VARCHAR(6). The SQL attributes are of the same datatype.
I know that the SQL version s/b SUBSTRING(branch,?,?) + SUBSTRING(registernumber,?,?) but I'm not sure of the proper numbers.
Thanks for any input...