Question: In the university database, the instructor table contains columns ID , name, dept _ name, and salary. Suppose you need to retrieve the names and

In the university database, the instructor table contains columns ID, name, dept_name, and salary. Suppose you need to retrieve the names and salaries of instructors in the 'Comp. Sci.' department who earn more than $70,000. Which SQL statement would correctly achieve this?
Group of answer choices
SELECT name, salary FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary >70000;
SELECT name, salary FROM instructor WHERE dept_name = 'Comp. Sci.' OR salary >70000;
SELECT name, salary FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary >=70000;
SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary >70000;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!