Write an SQL query to fetch the list of employees with different salaries.

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
1.
Write an SQL query to fetch the list of employees with
different salaries.
2.
Write an SQL query to show the second highest salary
from a table.
3.
Write two SQL queries that remove all data inside a
table.
4.
Use two ways to get all information about the employee
with the lowest salary in employee table.
5.
Create a table that copy all employees table attributes
but only copy department 80 employees.
6.
Define a sequence that starts from 20210001 and insert
one row with this sequence.
7.
Write an SQL query to Show average salaries with two
decimal point for each department in employee's table.
8.
Write and sql query to modify all null values in
commission_pct column and make it 0.01.
9.
Write an SQL query to show the name of department
that has the maximum salary among all departments and also
show that salary.
10.
Write and SQL query to show all employees information
that has higher salary than all employees in department 80.
11.
Write an SQL query to show the employees with lowest
10 salaries of employee's table
12.
Create a view that shows the name and the salary for the
employees at IT department only.
Mr. Ahmed Alhessi
قواعد بيانات الأجهزة الذكية والويب
13.
Use right Padding function to add a hash ( #) to all
employees if their names have less than 20 characters.
14.
Write and SQL query to show all employees information
that has higher salary than any employee in department 80.
Merge the employee_ID and name columns from
employee table and make them look like this [first last : id]
and call it "Employee Info".
15.
Transcribed Image Text:1. Write an SQL query to fetch the list of employees with different salaries. 2. Write an SQL query to show the second highest salary from a table. 3. Write two SQL queries that remove all data inside a table. 4. Use two ways to get all information about the employee with the lowest salary in employee table. 5. Create a table that copy all employees table attributes but only copy department 80 employees. 6. Define a sequence that starts from 20210001 and insert one row with this sequence. 7. Write an SQL query to Show average salaries with two decimal point for each department in employee's table. 8. Write and sql query to modify all null values in commission_pct column and make it 0.01. 9. Write an SQL query to show the name of department that has the maximum salary among all departments and also show that salary. 10. Write and SQL query to show all employees information that has higher salary than all employees in department 80. 11. Write an SQL query to show the employees with lowest 10 salaries of employee's table 12. Create a view that shows the name and the salary for the employees at IT department only. Mr. Ahmed Alhessi قواعد بيانات الأجهزة الذكية والويب 13. Use right Padding function to add a hash ( #) to all employees if their names have less than 20 characters. 14. Write and SQL query to show all employees information that has higher salary than any employee in department 80. Merge the employee_ID and name columns from employee table and make them look like this [first last : id] and call it "Employee Info". 15.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Single Table
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
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
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr