I am doing a job for the school, in which they ask me to make a view that collects the following data:
ID of the employee, name and surname, salary, maximum salary and% of the current salary with respect to the maximum (I do not understand the latter very well)
I have decided to go in parts and before creating the view, I wanted to make the corresponding selection. I got here:
select EMPLOYEE_ID, FIRST_NAME, LAST_NAME, SALARY, max(SALARY), SALARY % max(salary)
from EMPLOYEES
group by EMPLOYEE_ID;
Obviously the identifiers would be missing, but the sql developer throws me the following error:
ORA-00911: invalid character 00911. 00000 - "invalid character" * Cause: identifiers may not start with any ASCII character other than letters and numbers. $ # _ are also allowed after the first character Identifiers enclosed by doublequotes may contain any character other than a doublequote. Alternative quotes (q '# ... #') can not use spaces, tabs, or carriage returns as delimiters. For all other contexts, consult the SQL Language Reference Manual. * Action: Error in the line: 1, column: 72
I do not understand why, since I do not have identifiers anywhere ... I've had them, but I've been removing them to rule out errors, but before this error I was throwing an error on issues of grouping data, which does not I'm able to recover since only this one throws me now ...
My question is:
How can I solve the error that throws me? And I would also like know if my query is well done, if not, I would like that someone could tell me how would be the correct way to do it, since I have a bit forgotten the subject of BD, although with a brief soda can I get it out.