Write a Query to get the First Name, Last Name and Salary of the employee who is paid the lowest salary in the company.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

The ER diagram of the database is given above.

Write the following queries.

1. Write a Query to get the First Name, Last Name and Salary of the employee who is paid the lowest salary in the company.

Hint: Use the employees table.

regions
countries
locations
REGION_ ID
COUNTRY_ID
COUNTRY_NAME VARCHAR2(40)
CHAR(2)
LOCATION_ID
STREET ADDRESS VARCHAR2(25)
NUMBER
NUMBER
REGION_NAME
VARCHAR2(25)
REGION_ID
NUMBER
POSTAL CODE
VARCHAR2(12)
CITY
VARCHAR2(30)
STATE PROVINCE VARCHAR2(12)
COUNTRY_ID
CHAR(2)
departments
employees
DEPARTMENT_ID
DEPARTMENT_NAME VARCHAR2(30)
NUMBER
YEMPLOYEE ID
NUMBER
FIRST NAME
LAST_NAME
VARCHAR2(20)
VARCHAR2(25)
VARCHAR2(25)
VARCHAR2(20)
jobs
MANAGER_ID
NUMBER
JOB_ID
LOCATION_ID
NUMBER
EMAIL
VARCHAR2(10)
PHONE_NUMBER
VARCHAR2(35)
MIN SALARY NUMBER
MAX_SALARY NUMBER
JOB_TITLE
HIRE DATE
DATE
JOB_ID
VARCHAR2(10)
SALARY
NUMBER
job_history
COMMISSION_PCT NUMBER
EMPLOYEE_ID
NUMBER
MANAGER_ID
DEPARTMENT_ID
NUMBER
YSTART DATE
job_grades
DATE
NUMBER
END DATE
DATE
GRADE LEVEL VARCHAR2(2)
LOWEST_SAL NUMBER
HIGHEST SAL KUMBER
JOB_ID
VARCHAR2(10)
00
DEPARTMENT_ID
NUMBER
Transcribed Image Text:regions countries locations REGION_ ID COUNTRY_ID COUNTRY_NAME VARCHAR2(40) CHAR(2) LOCATION_ID STREET ADDRESS VARCHAR2(25) NUMBER NUMBER REGION_NAME VARCHAR2(25) REGION_ID NUMBER POSTAL CODE VARCHAR2(12) CITY VARCHAR2(30) STATE PROVINCE VARCHAR2(12) COUNTRY_ID CHAR(2) departments employees DEPARTMENT_ID DEPARTMENT_NAME VARCHAR2(30) NUMBER YEMPLOYEE ID NUMBER FIRST NAME LAST_NAME VARCHAR2(20) VARCHAR2(25) VARCHAR2(25) VARCHAR2(20) jobs MANAGER_ID NUMBER JOB_ID LOCATION_ID NUMBER EMAIL VARCHAR2(10) PHONE_NUMBER VARCHAR2(35) MIN SALARY NUMBER MAX_SALARY NUMBER JOB_TITLE HIRE DATE DATE JOB_ID VARCHAR2(10) SALARY NUMBER job_history COMMISSION_PCT NUMBER EMPLOYEE_ID NUMBER MANAGER_ID DEPARTMENT_ID NUMBER YSTART DATE job_grades DATE NUMBER END DATE DATE GRADE LEVEL VARCHAR2(2) LOWEST_SAL NUMBER HIGHEST SAL KUMBER JOB_ID VARCHAR2(10) 00 DEPARTMENT_ID NUMBER
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education