Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 The purpose of a HAVING clause in a query is to apply conditions to the groups formed by GROUP BY. a) True b) False

1 The purpose of a HAVING clause in a query is to apply conditions to the groups formed by "GROUP BY".

a) True

b) False

2) A Foreign Key with CASCADE DELETE means that if a record in the referenced table is deleted, then the corresponding records in the referencing table will automatically be deleted too.

a) True

b) False

3) Consider the schema below , Which of the following finds the first name and last name10+ of all employees who are professors with the title as 'assistant professor' and first names starting with the letter W.

image text in transcribed

(a) SELECT fname, lname FROM employee WHERE fname LIKE 'W%' AND ssn IN ( SELECT ssn FROM professor WHERE title = 'assistant professor' );

(b) SELECT fname, lname FROM employee WHERE fname LIKE 'W%' AND ssn = (SELECT ssn FROM professor WHERE title = 'assistant professor');

(c) SELECT fname, lname FROM employee INNER JOIN professor ON employee.ssn = professor.ssn WHERE fname LIKE "W%" AND title = 'assistant professor';

(d) SELECT fname, lname FROM employee WHERE fname LIKE 'W%' AND ssn = (SELECT ssn FROM employee WHERE title = 'assistant professor');

(e) All of these

(d) None of these

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago