Upper Case in Oracle sql -
i trying create view majors , minors w/ upper case, oracle keeps giving me error. doing wrong?
create view a5t4 as
select studentid, major1, major2, minor
from a5
where upper(major1, major2, minor)
order studentid;
the error is: error report - sql error: ora-00909: invalid number of arguments 00909. 00000 - "invalid number of arguments" *cause:
*action:
the error in clause. if want fields upper case, use function in select clause, not in clause.
try :
create view a5t4 select upper(studentid) "studentid", upper(major1) "major1", upper(major2) "major2", upper(minor) "minor" a5 order upper(studentid);
Comments
Post a Comment