Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an ORACLE 11g query displaying last_name, department_id, salary, commission_pct aliased as comm_pct, and the commission amount (salary multiplied by commission_pct, when commission_pct is null,

  1. Create an ORACLE 11g query displaying last_name, department_id, salary, commission_pct aliased as comm_pct, and the commission amount (salary multiplied by commission_pct, when commission_pct is null, replace it with a zero) aliased with comm_amt. Show only those records for departments that are located in cities not starting with the letter s. * Note city is not a column in employees table but in locations table and the primary key is not found in the employees table but it is in the departments table. In short l.location_id = d.location_id d_department_id = e.department_id

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago