By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 2,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

SQL query to display the Ename of employees in EMP table in lower and uppercase

P: 1
SQL query to display the Ename of EMP table of Dept no 10 in lowercase ,and Dept no 20,30 in uppercase.
Dec 4 '18 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 700
select
case when dept_no=10 then lower(ename)
when dept_no in (20,30) then upper(ename)
else ename
end as ename
from emp;
Mar 15 '19 #2

Post your reply

Sign in to post your reply or Sign up for a free account.