Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Which of the following will retrieve the LOWEST value of SALARY in a table called EMPLOYEES? 1 point SELECT LOWEST ( SALARY ) FROM EMPLOYER
Which of the following will retrieve the LOWEST value of SALARY in a table called EMPLOYEES?
point
SELECT LOWESTSALARY FROM EMPLOYER
SELECT MINSALARY FROM EMPLOYEES
SELECT MAXSALARY FROM EMPLOYEES
SELECT SALARY FROM EMPLOYEES WHERE MINIMUMSALARY SALARY
Question
Which of the following queries will return the first name of the employee who earns the highest salary?
point
SELECT MAXSALARY FROM EMPLOYEES
SELECT FIRSTNAME, MAXSALARY FROM EMPLOYEES GROUP BY FNAME
SELECT FIRSTNAME FROM EMPLOYEES WHERE SALARY
SELECT MAXSALARY FROM EMPLOYEES
SELECT FIRSTNAME FROM EMPLOYEES WHERE SALARY IS HIGHEST
Question
Which of the following queries will return the data for employees who belong to the department with the highest value of department ID
point
SELECT FROM EMPLOYEES WHERE DEPID MAXDEPID
SELECT FROM EMPLOYEES WHERE DEPID
SELECT DEPTIDDEP FROM DEPARTMENTS WHERE DEPTIDDEP IS MAX
SELECT FROM EMPLOYEES WHERE DEPID
SELECT MAXDEPTIDDEP FROM DEPARTMENTS
SELECT FROM EMPLOYEES WHERE DEPTIDDEP
MAX SELECT DEPTIDDEP FROM DEPARTMENTS
Question
A DEPARTMENTS table contains DEPNAME, and DEPTIDDEP columns and an EMPLOYEES table contains columns called FNAME and DEPID We want to retrieve the Department Name for each Employee. Which of the following queries will correctly accomplish this?
point
SELECT FNAME, DEPNAME FROM EMPLOYEES E DEPARTMENTS D WHERE EDEPTIDDEP DDEPID
SELECT FNAME, DEPNAME FROM EMPLOYEES, DEPARTMENTS WHERE DEPTIDDEP DEPID
SELECT EFNAME, DDEPNAME FROM EMPLOYEES, DEPARTMENTS
SELECT DFNAME, EDEPNAME FROM EMPLOYEES E DEPARTMENTS D WHERE DEPTIDDEP DEPID
Question
You are writing a query that will give you the total cost to the Pet Rescue organization of rescuing animals. The cost of each rescue is stored in the Cost column. You want the result column to be called TotalCost Which of the following SQL queries is correct?
point
SELECT SUMCost FROM PetRescue
SELECT SUMCost AS TotalCost FROM PetRescue
SELECT SUMTotalCost From PetRescue
SELECT TotalCost FROM PetRescue
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started