d Karachi 20,000 01 02 Sanaullah Peshawar 30,000 02 03 Imran

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter12: Subqueries And Merge Statements
Section: Chapter Questions
Problem 19MC
icon
Related questions
Question

Consider you have the following 2 tables.

Employee_Table

Employee_ID Employee_Name Address Salary in

(Rs)

Department_id

01 Arshad Karachi 20,000 01

02 Sanaullah Peshawar 30,000 02

03 Imran Peshawar 110,000 02

04 Asfahan Peshawar 95,000 01

05 Ayesha Peshawar 95,000 01

Dept_Table

Dept_ID Dept_Name

01 Finance

02 IT

03 HR1. Write SQL Query for finding/displaying names and ids of employees 

whose salary is greater than 50,000 RS in ascending order of their salary 

 

2. Create a View showing Employee names, their department name and 

salary of Employees from Peshawar only. Salary column should be 

displayed as ‘Total Salary’ 

3. Delete employees’ data who are from Karachi. 

4. Write SQL Right Outer Join query and its output on the given two tables.

 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Intermediate SQL concepts
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.
Similar questions
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning