Question

OK, I am using SQL Plus and I am trying to view the table and one of the columns I was to view in lower case. This shold be very easy but for some reason it is not work. The code I am using is

SELECT CUSTOMER_NUM, CUSTOMER_ADD (LOWER)CUSTOMER_FIRST, (UPPER)CUSTOMER_LAST
FROM CUSTOMER;

The error I am getting is ORA-00904: "CUSTOMER_LAST": invalid identifier

Was it helpful?

Solution

lower and upper is function call, and you also have a missing coma after CUSTOMER_ADD. proper sql should be

SELECT CUSTOMER_NUM, CUSTOMER_ADD, LOWER(CUSTOMER_FIRST), UPPER(CUSTOMER_LAST) FROM CUSTOMER;

OTHER TIPS

Try lower(customer_first) and upper(customer_last)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top