SQL1: select name from emp where empid in (select manager_id from depart); SQL2: select name from emp e, depart d where e.empid%3Dd.manager_id; Select one: O True O False

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

database multiple choice questions i need help with please

Given the tables: emp [eid, ename, salary, d_id], depart [d_id, dname, manager_id]
The result o the following two SQL statements are the same:
SQL1:
select name
from emp
where empid in (select manager_id
from depart);
SQL2:
select name
from emp e, depart d
where e.empid%=d.manager_id;
Select one:
O True
O False
Transcribed Image Text:Given the tables: emp [eid, ename, salary, d_id], depart [d_id, dname, manager_id] The result o the following two SQL statements are the same: SQL1: select name from emp where empid in (select manager_id from depart); SQL2: select name from emp e, depart d where e.empid%=d.manager_id; Select one: O True O False
Given the table: emp [eid, ename, salary, d_id]
The following sql statement retrieves:
select max(sum(salary))
from emp
group by d_id;
Select one:
a. sum of salaries of all departments - retrieve several values
O b. maximum salary of all departments - retrieve several values
O c. max salary of each department - retrieve only one value
O d. maximum sum of salaries of the departments in the company - retrieve one value
Transcribed Image Text:Given the table: emp [eid, ename, salary, d_id] The following sql statement retrieves: select max(sum(salary)) from emp group by d_id; Select one: a. sum of salaries of all departments - retrieve several values O b. maximum salary of all departments - retrieve several values O c. max salary of each department - retrieve only one value O d. maximum sum of salaries of the departments in the company - retrieve one value
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Hyperlinks
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
  • SEE MORE QUESTIONS
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