Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A DEPARTMENTS table contains DEP _ NAME, and DEPT _ ID _ DEP columns and an EMPLOYEES table contains columns called F _ NAME and
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 DFNAME, EDEPNAME FROM EMPLOYEES E DEPARTMENTS D WHERE DEPTIDDEP DEPID
SELECT FNAME, DEPNAME FROM EMPLOYEES, DEPARTMENTS WHERE DEPTIDDEP DEPID
SELECT EFNAME, DDEPNAME FROM EMPLOYEES, DEPARTMENTS
SELECT FNAME, DEPNAME FROM EMPLOYEES E DEPARTMENTS D WHERE EDEPTIDDEP DDEPID
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