I tried creating a view with two values in one column using +
, and the view was created successfully, but when I try selecting all from it it gives me this error:
select *
*
ERROR at line 1:
ORA-01722: invalid number
I tried researching this and the concatenation operator but to my dismay have found no help. Here is the code I used to create the view, and the select also.
CREATE VIEW CombinedNameEmployeePhoneView AS
SELECT (EMPLOYEE.LastName + ' ' + EMPLOYEE.FirstName)
AS EmployeeName, EMPLOYEE.Phone as EmployeePhone
from EMPLOYEE;
select *
from CombinedNameEmployeePhoneView;