The query that displays names of employees , sex , and evaluation of the salary for each department : a. select ssn , decode(sex,'M','male','female') ) as sex,decode(salary,salary between 10000 and 29999,'low',salary between 30000 and 39999,'medium','high')"level" from employee; O b. select ssn , decode(sex,'M','male' else 'female') ) as sex,decode(salary,salary between 10000 and 29999,'low',salary between 30000 and 39999,'medium','high')"level" from employee; C. select ssn , decode(sex,'M','male','female') as sex ,case when salary between 10000 and 29999 then 'low' when salary between 30000 and 39999 then 'medium' else 'high' end "level" from employee; d. All the above;
The query that displays names of employees , sex , and evaluation of the salary for each department : a. select ssn , decode(sex,'M','male','female') ) as sex,decode(salary,salary between 10000 and 29999,'low',salary between 30000 and 39999,'medium','high')"level" from employee; O b. select ssn , decode(sex,'M','male' else 'female') ) as sex,decode(salary,salary between 10000 and 29999,'low',salary between 30000 and 39999,'medium','high')"level" from employee; C. select ssn , decode(sex,'M','male','female') as sex ,case when salary between 10000 and 29999 then 'low' when salary between 30000 and 39999 then 'medium' else 'high' end "level" from employee; d. All the above;
Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter8: Advanced Sql
Section: Chapter Questions
Problem 62P
Related questions
Question
hi i have this
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr